Skip to main content

Design Tokens

Design tokens are named constants that encode your design decisions. PrismUI uses six token families to keep your UI consistent across every component and platform.

ColorToken

Semantic color tokens map to purposes, not hues. The active PrismTheme resolves each token to a concrete Color.
ColorToken Cases
Using Color Tokens

SpacingToken

A consistent spacing scale based on a 4pt grid:
Using Spacing Tokens

TypographyToken

Type scale tokens for consistent text sizing:
Using Typography Tokens

RadiusToken

Corner radius scale for consistent roundness:
Using Radius Tokens

ElevationToken

Shadow/elevation levels for depth hierarchy:
Using Elevation Tokens

MotionToken

Animation timing presets for consistent motion:
Using Motion Tokens
Every PrismUI component uses these tokens internally. When you change your theme or token values, the entire component library updates automatically.