Make this package compatible with brand.yml
unified branding features. Branding can be read from a configuration file, else it will use one of these package built-in themes. Refer to brand.yml documentation.
Usage
brand(file = "_brand.yml", font = c("base", "monospace", "headings"))
Arguments
- file
path to _brand.yml
brand configuration file, normally this file is auto-detected in the working tree, but may be specified here to swap branding dynamically
- font
one of _brand.yml
font families (base
, monospace
, headings
). Uses the brand's base
family by default.
Value
A list of branding elements
Examples
scales::show_col(unlist(brand()$color$palette))
#> No `_brand.yml` config found in the working tree. Loaded built-in `Mel B. Labs` theme instead.
.globals$brand$meta$name
#> Error: object '.globals' not found