Last chance! 50% off unlimited learning
Sale ends in
SCSS variables from a file
vars_file(input_file)
Path to SCSS file containing variables to use for creating a theme.
a list
that can be used in create_theme
.
# NOT RUN {
# Open template and edit variables
use_vars_template(
output_file = "custom.scss",
theme = "flatly"
)
# Create new theme based on the modified template
create_theme(
theme = "flatly",
vars_file(input_file = "custom.scss"),
output_file = "mytheme.css"
)
# }
Run the code above in your browser using DataLab