View source: R/extract_bslib_palette.R
extract_bslib_palette | R Documentation |
Extract bslib palette
extract_bslib_palette(design_tibble, version = 5)
design_tibble |
A design_tibble returned bu the 'add_color()' function |
version |
Bootstrap version to use for extracting color variables |
This function filters for bslib high level color variables published as styles of a Figma file and/or team. The color should be extracted and added as a variable to the retrieved data.
List with colors used in high level variables of 'bs_theme()'.
## Not run: file_key <- "sFHgQh9dL6369o5wrZHmdR" file_key %>% get_file_styles() %>% as_design_tibble() %>% add_color() %>% extract_bslib_palette() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.