Interface: ColorResolver
How components spell colours: var(--rv-x, fallback) (default, themable by CSS) or the literal
value (standalone export, readable by tools without CSS variable support).
Properties
font
font: string;
font-family of names and notes, and of column types.
mode
mode: ColorMode;
The colour mode the resolver was made for.
mono
mono: string;
Methods
c()
c(key): string;
How a component spells the colour of key: var(--rv-…, fallback) or the literal value.
Parameters
key
keyof Palette
Returns
string
value()
value(key): string;
The literal colour behind c(key) (an override, else the palette's), for colour maths.
Parameters
key
keyof Palette
Returns
string