resolveThemeVars
Theme
stable
Flatten an IOrigamTheme object into a flat TThemeVars map of --origam-* CSS custom properties. The cssVars escape hatch always wins over vars on key collision.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- themerequisIOrigamTheme
- The theme object to resolve. Its vars property is converted via the token authoring path; its cssVars property provides a raw --origam-* escape hatch that overrides vars on collision.
API
Valeur de retour
La valeur retournée par cet util.
- A flat TThemeVars record mapping --origam-* property names to their CSS values, ready to be applied as inline styles on the theme root element.
Usage
Exemples
Extraits de code prêts à coller.
Flatten a theme object to CSS vars