Learn R Programming

bootstraplib (version 0.1.0.9000)

bs_theme_get_variables: Retrieve Sass variable values from the current theme

Description

Useful for retriving a variable from the current theme and using the value to inform another R function.

Usage

bs_theme_get_variables(varnames)

Arguments

varnames

a character string referencing a Sass variable in the current theme.

Value

a character string containing a CSS/Sass value. If the variable(s) are not defined, their value is NA.

Examples

Run this code
# NOT RUN {
bs4_vars <- c("body-bg", "body-color", "primary", "border-radius")
bs_theme_new()
bs_theme_get_variables(bs4_vars)
bs_theme_new(bootswatch = "darkly")
bs_theme_get_variables(bs4_vars)

# }

Run the code above in your browser using DataLab