Creates Sass variables for typography settings with the brand_typography_
prefix.
Font size values in pixels are converted to rem units, and color references are resolved.
See also
Other brand.yml Sass helpers:
brand_sass_color()
,
brand_sass_color_palette()
,
brand_sass_defaults_bootstrap()
,
brand_sass_fonts()
Examples
brand <- list(
typography = list(
base = list(
size = "16px",
"line-height" = 1.5
),
headings = list(
weight = "bold",
style = "normal"
)
)
)
brand_sass_typography(brand)
#> $defaults
#> $defaults$brand_typography_base_size
#> [1] "1rem !default"
#>
#> $defaults$brand_typography_base_line_height
#> [1] "1.5 !default"
#>
#> $defaults$brand_typography_headings_weight
#> [1] "bold !default"
#>
#> $defaults$brand_typography_headings_style
#> [1] "normal !default"
#>
#>