rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
490 stars 58 forks source link

Provide tab completion for Bootstrap Sass variables #190

Open cpsievert opened 3 years ago

cpsievert commented 3 years ago

Using ?utils::rc.options, and maybe borrow some ideas from https://github.com/jimhester/completeme

cpsievert commented 3 years ago

Also, if completion isn't possible, we should throw an error/warning if we receive a variable name that we don't recognize.

cpsievert commented 3 years ago

Maybe the best way to handle this is to just provide a bs4_theme() and bs3_theme() which explicitly list all the variables in their arguments (and we'd have the update script to automatically parse Sass vars and transpile into functions)

schloerke commented 3 years ago

(and have the function start with ...)