@tokenui
A shadcn/ui registry of interactive documentation components for displaying design tokens, aligned with the W3C Design Tokens Community Group specification (2025.10). Implements ColorToken, SpacingToken, RadiusToken, FontFamilyToken, FontWeightToken, DurationToken, NumberToken, ElevationToken, and TypographyToken — covering most core DTCG types. TypeScript-first with full type inference. Built on shadcn/ui, extensible and framework-agnostic for React-based doc sites. Free and open source. Use for: design system documentation pages that need to render live, interactive token swatches and specs following W3C standards.
Install this registry
npx shadcn@latest add https://www.tokenui.dev/r/registry.json pnpm dlx shadcn@latest add https://www.tokenui.dev/r/registry.json bunx shadcn@latest add https://www.tokenui.dev/r/registry.json curl -s https://www.tokenui.dev/r/registry.json Components
17 totalA button component with multiple variants and sizes.
npx shadcn@latest add https://www.tokenui.dev/r/button.json A tooltip component for displaying contextual information.
npx shadcn@latest add https://www.tokenui.dev/r/tooltip.json A tooltip-based component for documenting design tokens. Includes TokenIndicator for visual value display.
npx shadcn@latest add https://www.tokenui.dev/r/token.json A base token variant that renders an icon next to the token name; use it to build custom icon tokens.
npx shadcn@latest add https://www.tokenui.dev/r/icon-token.json A specialized component for documenting color tokens.
npx shadcn@latest add https://www.tokenui.dev/r/color-token.json A token variant with a layers icon for elevation and shadow values.
npx shadcn@latest add https://www.tokenui.dev/r/elevation-token.json A token variant with a timer icon for animation or transition durations.
npx shadcn@latest add https://www.tokenui.dev/r/duration-token.json A token variant with a ruler icon for spacing, padding, and gap values.
npx shadcn@latest add https://www.tokenui.dev/r/spacing-token.json A token variant with a typography icon for font, size, and line-height values.
npx shadcn@latest add https://www.tokenui.dev/r/typography-token.json A token variant with a layers-2 icon for z-index and stacking contexts.
npx shadcn@latest add https://www.tokenui.dev/r/order-token.json A token variant with a spline icon for border radius values.
npx shadcn@latest add https://www.tokenui.dev/r/radius-token.json A token variant with a type icon for font family values.
npx shadcn@latest add https://www.tokenui.dev/r/font-family-token.json A token variant with a weight icon for font weight values.
npx shadcn@latest add https://www.tokenui.dev/r/font-weight-token.json A token variant with a hash icon for numeric values like line-height.
npx shadcn@latest add https://www.tokenui.dev/r/number-token.json A primitive component for displaying a single color swatch with an optional hover label.
npx shadcn@latest add https://www.tokenui.dev/r/color-swatch.json A component for displaying accessibility contrast algorithms visually inline, natively hooking into ColorSwatch.
npx shadcn@latest add https://www.tokenui.dev/r/color-contrast.json A component for displaying color collections including ramps, scales, and palettes
npx shadcn@latest add https://www.tokenui.dev/r/color-palette.json