| use_vars_template | R Documentation |
Open a SCSS template to modify variables, after use bs_vars_file to import those variables and create a theme.
use_vars_template(
output_file,
theme = c("default", "cerulean", "cosmo", "cyborg", "darkly", "flatly", "journal",
"lumen", "paper", "readable", "sandstone", "simplex", "slate", "spacelab",
"superhero", "united", "yeti"),
open = interactive()
)
output_file |
Path where to create the template, use |
theme |
Base theme to use, e.g. |
open |
Open the newly created file for editing? Happens in RStudio,
if applicable, or via |
After use bs_vars_file to use the template.
# For example, we use a temporary file custom <- tempfile(fileext = ".scss") # this will open a template # to modify variables of the flatly theme use_vars_template( output_file = custom, theme = "flatly" ) # after use bs_vars_file() to use the template # clean up unlink(custom)