Skip to contents

Read and normalize a brand.yml file

read_brand_yml()
Create a Brand instance from a Brand YAML file.
as_brand_yml()
Create a Brand instance from a list or character vector.

brand.yml helpers

brand_use_logo()
Extract a logo resource from a brand
brand_color_pluck()
Extract a color value from a brand object
brand_has()
Check if a brand has a specific nested element
brand_pluck()
Extract a nested element from a brand object
with_brand_yml_path() local_brand_yml_path()
Temporarily set the BRAND_YML_PATH environment variable

brand.yml Sass utilities

brand_sass_color()
Generate Sass variables for brand colors
brand_sass_color_palette()
Generate Sass variables and CSS custom properties for brand color palette
brand_sass_defaults_bootstrap()
Generate Sass variables and layer for Bootstrap defaults
brand_sass_fonts()
Generate Sass variables and CSS rules for brand fonts
brand_sass_typography()
Generate Sass variables for brand typography