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.

branded Theming functions

Apply brand.yml themes to plots and tables from popular packages.

theme_brand_flextable()
Create a flextable theme using brand colors
theme_brand_ggplot2()
Create a ggplot2 theme using brand colors
theme_brand_gt()
Create a gt table theme using brand colors
theme_brand_plotly()
Create a plotly theme using brand colors
theme_brand_thematic() theme_brand_thematic_on()
Create a thematic theme using brand colors

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