View source: R/use_vars_template.R
bs_vars_file | R Documentation |
Bootstrap variables from a file
bs_vars_file(input_file)
input_file |
Path to SCSS file containing variables to use for creating a theme. |
a list
that can be used in create_theme
.
my_vars <- file.path(tempdir(), "custom-vars.scss")
my_theme <- file.path(tempdir(), "theme.css")
# Open template and edit variables
use_vars_template(
output_file = my_vars,
theme = "flatly"
)
# Create new theme based on the modified template
create_theme(
theme = "flatly",
bs_vars_file(input_file = my_vars),
output_file = my_theme
)
# Clean up
unlink(my_vars)
unlink(my_theme)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.