extract_bslib_palette {Rigma} | R Documentation |
Extract bslib palette
Description
Extract bslib palette
Usage
extract_bslib_palette(design_tibble, version = 5)
Arguments
design_tibble |
A design_tibble returned bu the 'add_color()' function |
version |
Bootstrap version to use for extracting color variables |
Details
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.
Value
List with colors used in high level variables of 'bs_theme()'.
Examples
## Not run:
file_key <- "sFHgQh9dL6369o5wrZHmdR"
file_key %>%
get_file_styles() %>%
as_design_tibble() %>%
add_color() %>%
extract_bslib_palette()
## End(Not run)
[Package Rigma version 0.2.1 Index]