Primary
colors.primary
Brand primary — stylex.defineVars docs example
6 offizielle semantische Tokens
6 Farben
StyleX ist Metas CSS-in-JS-Bibliothek zum Definieren statisch analysierbarer Design-Tokens mit defineVars. Tokens liegen bei den Komponenten und werden zu atomarem CSS kompiliert.
Deklarieren Sie Brand-Tokens via stylex.defineVars und wenden Sie sie über die stylex.props-API an. StyleX garantiert deterministisches, konfliktfreies Styling.
colors.primary
Brand primary — stylex.defineVars docs example
colors.secondary
Secondary brand color — docs example
colors.text
Primary text color — docs example
colors.background
Page background — docs example
colors.accent
Accent — docs example (dark: lightblue)
colors.primaryText
Typography token — docs example (dark: white)
Keine passenden Farben
Quelle: StyleX · defineVars docs example