Learn R Programming

Rigma (version 0.3.0)

extract_bslib_palette: Extract bslib palette

Description

Extract bslib palette

Usage

extract_bslib_palette(design_tibble, version = 5)

Value

List with colors used in high level variables of bs_theme().

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.

Examples

Run this code
if (FALSE) {
file_key <- "sFHgQh9dL6369o5wrZHmdR"
file_key %>%
  get_file_styles() %>%
  as_design_tibble() %>%
  add_color() %>%
  extract_bslib_palette()
}

Run the code above in your browser using DataLab