TTheme
type
Theme & Tokens
Runtime brand name applied to the <html data-theme="…"> attribute or to a sub-tree via OrigamThemeProvider. Orthogonal to the light/dark mode axis.
TypeScript
Définition
La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Acceptées
Valeurs
Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.
- auto
- No data-theme attribute is set. Children resolve against the closest ancestor theme, or the default brand at the document root.
- TAnyString
- dark
- Legacy alias kept for backwards compatibility. As of the two-axis model, prefer setting mode="dark" on OrigamThemeProvider.
- light
- Legacy alias kept for backwards compatibility — was the default brand before the two-axis theming model.
- (custom string)
- Any other string is treated as a custom brand theme (e.g. "sobre", "brand-a"). The matching CSS token file must be loaded by the consumer.
Écosystème
Utilisé par
Composants et props qui acceptent ce type comme valeur.
Usage
Exemples
Extraits de code prêts à coller utilisant ce type.
Sub-tree with a custom brand theme