JSDoc
Functions
px
functionConvert a DTCG pixel dimension (`"16px"`) to a number for React Native styles. Throws on anything that is not `<number>px` — a wrong unit in a token is a contract violation, not a runtime condition to paper over.
px(dimension: string): number
shadowToBoxShadow
functionRender a multi-layer DTCG shadow token as a CSS `box-shadow` string. React Native >= 0.76 (new architecture) and react-native-web both accept this via the `boxShadow` style prop — one code path on every platform.
shadowToBoxShadow(shadow: { $value: ReadonlyArray<{ color: string; offsetX: string; offsetY: string; blur: string; spread: string; }>; }): stringTypes
BrandColorKey
typeToken group key unions — derive from the schema, never re-declare.
type BrandColorKey = string | number | symbol
NeutralColorKey
typetype NeutralColorKey = string | number | symbol
SemanticColorKey
typetype SemanticColorKey = string | number | symbol
PriorityKey
typetype PriorityKey = string | number | symbol
CategoricalColorKey
typetype CategoricalColorKey = string | number | symbol
GitRailKey
typeGit graph lane index (`"1"`..`"6"`), excluding the `$description` marker.
type GitRailKey = Exclude<string | number | symbol, "$description">
SyntaxTokenKey
typeDev-tool syntax token kind, shared by the light and dark syntax palettes.
type SyntaxTokenKey = Exclude<string | number | symbol, "$description">
StatusKey
typeStatus hue base key (running/waiting/done/error/idle).
type StatusKey = Exclude<string | number | symbol, "$description">
SpaceKey
typetype SpaceKey = string | number | symbol
RadiusKey
typetype RadiusKey = string | number | symbol
FontSizeKey
typetype FontSizeKey = string | number | symbol
FontWeightKey
typetype FontWeightKey = string | number | symbol
ShadowKey
typetype ShadowKey = string | number | symbol
Constants
tokens
constconst tokens: z.infer<any>