All registry items
tokens/r/tonal-tokens.json
Tonal Design Tokens (tokens.css)
Complete CSS custom properties, Tailwind v4 @theme inline bridge, semantic status tokens, and WCAG contrast matrix.
Tonal Design Tokens (tokens.css)
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Surface Steps
Canvas
--t-bg
Neutral
--t-surface
Muted
--t-surface-muted
Porcelain
--t-surface-warm
Workspace
--t-surface-cool
Sky
--t-surface-sky
Mint
--t-surface-mint
Sand
--t-surface-sand
Ink & Semantic Status
Primary Ink
--t-ink
Secondary Ink
--t-ink-secondary
Action Blue
--t-blue
Success
--t-success
Warning
--t-warning
Danger
--t-danger
Warning Surface
--t-warning-surface
Danger Surface
--t-danger-surface
Verified WCAG Contrast Matrix & Tailwind v4 @theme Bridge
AaPrimary ink on Canvas (Light)
16.1:1 AAAAaAction Blue on Canvas (Light)
5.37:1 AAAaPrimary ink on Canvas (Dark)
14.47:1 AAAAaAction Blue on Canvas (Dark)
8.81:1 AAAAaSuccess on Mint (Light)
5.24:1 AAAaDanger on Rose (Light)
4.92:1 AA@theme inline · bg-t-surface · text-t-ink · rounded-t-card · .t-display
Editorial hierarchy without heavy elevation.
Includes Tailwind v4 @theme inline token utilities, semantic status tokens, and prefers-reduced-motion guards out of the box.
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-tokens.jsonUsage
/* app/globals.css */
@import "tailwindcss";
@import "../styles/tonal-tokens.css";Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| data-tonal-theme | "light" | "dark" | "light" | Switches full light/dark surface and ink hierarchy. |
| data-tonal-mode | "pill" | "commerce" | "pill" | Swaps button radius (9999px vs 6px) and primary CTA ink. |