View source: R/text_data_from_styles.R
text_data_from_styles | R Documentation |
Get text data from styles
text_data_from_styles(design_tibble)
design_tibble |
S3 object of class 'design_tibble_style' returned by queering the 'Figma' API for the published styles. Its design tibble should contain a unique 'file_key' (map for each 'file_key' if more than one exist.) |
Given a design_tibble with exported styles this function retrieves all TEXT style type metadata. It uses the GET file nodes API endpoint and collects all style data.
tibble with text metadata of exported TEXT styles
## Not run: file_key <- "sFHgQh9dL6369o5wrZHmdR" file_key %>% get_file_styles() %>% as_design_tibble() %>% text_data_from_styles() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.