Labs

Color

A semantic color system should be evaluated in context, not as isolated swatches. This lab tests neutrals, interaction states, and accents treated as emitted light rather than flat paint — with live WCAG contrast diagnostics to ensure visual polish never comes at the expense of accessibility.

Preview

Preview theme
Preview mode

Design systems that ship.

Tony Walt — product design & front-end engineering. Building the connective tissue between design intent and production code. Select this text to preview the selection token.

or read the case studies →changelog (visited)
Case study

Rosetta design tokens

A cross-platform token pipeline that keeps Figma, iOS and web in lockstep — this lab is part of that system.

Last synced 2 hours ago · text-subtle caption

✓ Selected filter
Archived project (disabled)
// tokens/color.ts
export const accent = #368EF2;
export const radius = 12;

Project velocity

Tokens shipped this quarter across three platforms.

128tokens
94%coverage
ShippedIn reviewNeeds QABlockedDocs →

Status colors

For messages & status only — success/warning/error/info are not UI chrome. Each has a base (text/icon), a subtle background, and a border. Don't use them to color buttons, links or structural elements.

Deploy succeeded — 128 tokens synced.
3 tokens need manual QA before release.
Build blocked — token contract mismatch on iOS.
New import format available for coolors.co URLs.
Slugs can only contain letters, numbers and hyphens.

Interaction states

Hover / active / disabled / focus, derived from tokens — not hand-picked colors.

Primary button
default
hover
active
disabled
Secondary / ghost button
default
hover
active
disabled
Input focus ring
default
focus
Text link
defaultView documentation
hoverView documentation

Overlay & scrim

Modal/drawer backdrop — a translucent scrim that sits between the page and a surface sheet.

Discard changes?

Unsaved edits to this token set will be lost.

Contrast diagnostics — reference only, not part of the design

Raw WCAG ratios for every semantic pair in the active theme. Click a failing row to jump to the control that owns it AND see where it's applied in the System preview. This panel is a measurement tool, not a preview of applied UI.

1 · Neutral temperature

Adjusts the undertone of the neutral palette from cool blue-slate to warm near-black. Spread expands or compresses the contrast steps across backgrounds, surfaces, and borders.

Neutral preset

Neutral ramp — dark theme

Neutral ramp — light theme

text-muted & text-subtle — applied lightness

Applied lightness for secondary and subtle text hierarchy, tuned to guarantee WCAG AA compliance across themes.

text-muted — applied lightnessdark
text-subtle — applied lightnessdark
2 · Primary accent

The core brand accent. Base hue and saturation generate the full 100–900 tint ramp, while applied lightness is tuned per theme for interactive contrast.

base hue & saturation — rebuilds the 100–900 ramp
applied per-theme lightness — the contrast-critical value
Applied shadedark

Tints & shades (100–900) — active theme

accent-subtle provides low-opacity tints for badges, selected states, and code syntax highlights.

3 · Secondary accent

A distinct secondary accent for badges, dual-meter charts, and secondary highlights. Can be chosen independently or harmonized mathematically from the primary hue.

Harmonize

Triadic (±120° from primary) creates clear visual distinction while maintaining color balance.

base hue & saturation — rebuilds the 100–900 ramp
applied per-theme lightness — the contrast-critical value
Applied shadedark

Tints & shades (100–900) — active theme

4 · Card glow (independent effect)

Selects the source color for surface glow effects (primary hue, warm grey, or disabled). Geometric falloff and opacity are handled by the Effect lab.

Card glow source
Sourcedark
Card glow source
5 · Gradient effects

Directional gradients treated as emitted light: gradient-accent powers luminous edge treatments and chart fills, while gradient-surface adds depth to raised panels.

Preview — active theme:

gradient-accent
gradient-surface
6 · Status colors

Semantic messaging colors (success, warning, error, info). Each generates a text/icon base, subtle alert background, and border token tuned for readability.

Success
Lightnessdark
Warning
Lightnessdark
Error
Lightnessdark
Info
Lightnessdark
7 · Links

Dedicated link palette with distinct default, hover, and visited states to ensure text hyperlinks remain clearly distinguishable from standard UI buttons.

8 · Overlay, selection & alpha utilities

Modal backdrop scrims, text selection highlights, and semi-transparent utility tokens calibrated for layered depth across light and dark themes.