Primary
colors.primary
Brand primary — stylex.defineVars docs example
6 official semantic tokens
6 colors
StyleX is Meta’s CSS-in-JS library for defining statically analyzable design tokens with defineVars. Tokens are colocated with components and compiled to atomic CSS.
Declare brand tokens via stylex.defineVars and apply them through the stylex.props API. StyleX guarantees deterministic, conflict-free 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)
No matching colors
Source: StyleX · defineVars docs example