use_vars_template: Use a template to define SCSS variables

Description Usage Arguments Note Examples

View source: R/use_vars_template.R

Description

Open a SCSS template to modify variable, after use vars_file to import variables and create a theme.

Usage

1
2
3
4
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())

Arguments

output_file

Path where to create the template, use ".scss" as file extension.

theme

Base theme to use, e.g. "cosmo" to start modifying the cosmo theme.

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.

Note

After use vars_file to use the template.

Examples

1
2
3
4
5
6
7
8
# this will open a template
# to modify variables of the flatly theme
use_vars_template(
  output_file = "custom.scss",
  theme = "flatly"
)

# after use vars_file() to use the template

fresh documentation built on Oct. 30, 2019, 11:38 a.m.