Skip to contents

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")

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

Value

A list of branding elements

References

brand.yml

Examples

scales::show_col(unlist(brand()$color$palette))
#> No `_brand.yml` config found in the working tree. Using `mb.theme` brand instead.

.globals$brand$meta$name
#> Error: object '.globals' not found