Merlin design system

One kit. Both themes.

The components and tokens behind the Merlin surface. The page is the preview: move the hues and every role, surface, and state follows.

React 19CSS ModulesSemantic tokens

Live theme

The page is the preview.

Two hues rewrite the token layer. Every component on this page reads the same roles.

Icon kit
Corners

Foundations

Roles, scales, and space.

Colour roles

Every role is computed from the two brand hues. The same role has a light and a dark value.

TokenLightDark
--bg-page#f3f4ff#292b34
--bg-surface#f9faff#3a3c49
--bg-muted#e5e7f5#4d4e5e
--text-primary#292b34#f3f4ff
--text-secondary#636575#b4b6c7
--text-muted#7d7f90#989aab
--color-primary#5510fc#5510fc
--color-accent#f3c215#fecb16
--color-error#fc0f44#fb0f44
--color-warning#fc880f#fe8911
--color-success#1aebac#1dfeb9
--border-default#7d7f90#989aab
--focus-ring#574ecf#6e6ced

Palettes

Each role owns a generated scale. The CTA pair sits outside the ramp and is solved for contrast.

primary
accent
neutral
error
warning
success

Type and space

text-xsBuild collaborative agent experiences.
text-smBuild collaborative agent experiences.
text-baseBuild collaborative agent experiences.
text-mdBuild collaborative agent experiences.
text-lgBuild collaborative agent experiences.
text-xlBuild collaborative agent experiences.
text-2xlBuild collaborative agent experiences.
text-3xlBuild collaborative agent experiences.
text-4xlBuild collaborative agent experiences.
0px
2px
4px
6px
8px
12px
16px
20px
24px
32px
40px
48px
64px
80px
96px
Soft
none · 0
sm · 4px
md · 8px
lg · 12px
xl · 16px
full · 9999px
Sharp
none · 0
sm · 0
md · 2px
lg · 4px
xl · 6px
full · 2px
Round
none · 0
sm · 8px
md · 14px
lg · 20px
xl · 28px
full · 9999px

Icon kits

One canonical glyph name, three drawings. The studio swaps the kit without changing the markup.

Phosphor

chat-circlefile-textcubedatabaseshield-checksignaturecpuusers-three

Lucide

chat-circlefile-textcubedatabaseshield-checksignaturecpuusers-three

Pixelarticons

chat-circlefile-textcubedatabaseshield-checksignaturecpuusers-three

Surfaces and motion

panel
well
plate

Depth is one fill step plus one shadow token. Components never invent their own shadow or fill.

one hand curve · reduced motion removes the move

Components

The kit in use.

Every component below imports the public API. The gallery is the contract.

Button

One action per button. Variants carry intent; sizes carry hierarchy.

Badge

Small status labels. The dot adds a live marker without another icon.

PrimaryAccentSuccessWarningError

Input

A labelled field with a visible focus ring. The label is part of the component.

CodeBlock

A quiet well for code and configuration. Token spans carry the syntax roles.

// one process, signed state
export function createAgent(config) {
  return loop('merlin', config);
}

AgentCard

A compact trace of an agent run: role, steps, and the result that follows.

Merlin
live

Reading the launch plan and checking access.

  1. read · launch-plan.docx0.8s
  2. check · team accessnow
  3. draft · rollout

Accessibility

Visible, legible, still.

Focus is never hidden.

The shared focus ring is a token. Every interactive control uses it; the theme lab sliders keep native keyboard behaviour.

Contrast is computed.

The token generator solves CTA text and reports status-hue collisions. The lab surfaces those diagnostics instead of hiding them.

Reduced motion is a first-class state.

The landing story stops scrubbing, the carrier snaps, and the gallery animations stop. No motion is required to read the page.