get_brand_font() retrieves the names of fonts/typefaces in the
_brand.yml file.
Arguments
- font
A
charactervector indicating the name of fonts/typefaces categories present in thetypographysection of the_brand.ymlfile.
Value
A character vector with fonts/typeface names.
See also
Other utility functions:
get_brand_color(),
get_brand_color_mix(),
get_brand_color_tint()
Examples
get_brand_font("base")
#> [1] "Open Sans"
#> [1] "Open Sans" # Expected
get_brand_font("headings")
#> [1] "Rubik"
#> [1] "Rubik" # Expected
get_brand_font("monospace")
#> [1] "IBM Plex Mono"
#> [1] "IBM Plex Mono" # Expected
get_brand_font("monospace-block")
#> [1] "IBM Plex Mono"
#> [1] "IBM Plex Mono" # Expected
get_brand_font(c("base", "headings"))
#> [1] "Open Sans" "Rubik"
#> [1] "Open Sans" "Rubik" # Expected
