add_color | R Documentation |
Extracts color for design data collected from the Figma API. Can convert to hex. Infered color data are added in a new column named as 'color'.
add_color(design_tibble, hex = TRUE)
design_tibble |
Tabular data to be augmented with color colomn. |
hex |
logical. If 'TRUE' hex data are added to 'color' column else nested data for 'RGBA' channels. |
Adds color column to 'design_tibble' data
## Not run: file_key <- "sFHgQh9dL6369o5wrZHmdR" resp <- get_file_styles(file_key) %>% as_design_tibble() %>% add_color() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.