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_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.