quarto.brand
get_color
function quarto.brand.get_color(mode: string, name: string)
-> string
Get a brand color in the output format, for the brand of the specified mode.
get_color_css
function quarto.brand.get_color_css(mode: string, name: string)
-> string
Get a brand color in CSS format, for the brand of the specified mode.
get_logo
function quarto.brand.get_logo(mode: string, name: string)
-> table
Get a logo resource, for the brand of the specified mode and element name.
Currently the resulting table contains light and/or dark entries, each a table with path and alt.
In the future, we could resolve fully based on mode.
get_typography
function quarto.brand.get_typography(mode: string, name: string)
-> table
Get typography brand options, for the brand of the specified mode and element name.
The options table may have family, size, weight, style, line-height, color, background-color, decoration entries, depending on the element.
has_mode
function quarto.brand.has_mode(mode: string)
-> boolean
Determine whether the current document has a brand of the specified mode.