Export design tokens as CSS, JSON, TypeScript, or StyleX via the API.
The export endpoints return your tokens transformed into platform-specific formats. All values are fully resolved — color scale references become hex values, primitive references become concrete numbers.
Export as CSS
Returns CSS custom properties with light and dark mode support.
string
default:"--"
CSS variable prefix. For example, --ds produces --ds-color-brand-primary.
string
default:"kebab-case"
Variable naming convention: kebab-case, camelCase, or snake_case.
Returns a zip containing tokens.stylex.ts (stylex.defineVars) and themes.ts
(stylex.createTheme for light and dark). The export uses stable camelCase keys;
CSS prefix and naming query parameters do not apply.