Skip to content
Design rules for coding agents

Your design system.Still yours, next session.

StyleSeed compiles your rules per task and measures the screens agents build.

npx -y skills add bitjaru/styleseed -a codex claude-code -y --copy

Design languageThis site’s palette
Color rolesExplore palettes
PrimaryAa#0457F8
Highlight
with purpose.

The next action, in your color.

Primary actions · 5.49:1 contrast
Select a role. See the relationship.
The details are the system

Decisions you can see.
Rules your agent can use.

Color has a role. Type has a rhythm. Space has a scale. Keep the choices that make your product yours.

See how rules travel
TypographyInter
Type specimen01 / Inter
A little
clarity.
40
Made to
stay together.
24
One family. Every detail
has its place.
14
Display / Heading / Body500

Change the weight. Keep the hierarchy.

A voice, down to the letter.

Keep the type family and hierarchy coherent. Let scale and weight do different jobs.

Spacing16 px
Component specimen02 / Gap
Shared decisionsRoom for every detail.
gapspace-16

Recorded scale · payments-console

Space that belongs together.

A shared scale makes relationships visible. Measure where a screen starts to drift.

Measure the details

A shared system.
A visible difference.

Compare the screens your agent built against the decisions you kept.

payments-consoleRecorded

spacing base

Baseline 4

index

4px

Shared set

notifications

4px

Shared set

settings

8px

different

Gap diagrams at 4× scale. At rest. Error states are included in the full report.

node engine/.claude/skills/styleseed/workflows/ss-verify/scripts/drift-report.mjs --project-root <project> --states error index.html notifications.html settings.html

These are measurements, not a score. A different value is a question for the owner of the design system.

All 9 axes across 6 screens

1 of 6 screens drift from the baseline on spacing base (settings). Values outside the shared set: radii (index); fonts (index); control heights (notifications, settings). On index, notifications, settings the primary action appears only in a state; the accent was read from the state variant.

Viewports: 1440×900 / 390×844

Computed styles, including error states. Exact values from the recorded run.
AxisBaselineindexindex?state=errornotificationsnotifications?state=errorsettingssettings?state=error
accent#00736bnone#00736bnone#00736bnone#00736b
ink#090c0b#090c0b#4d5150 (different)#090c0b#4d5150 (different)#090c0b#4d5150 (different)
canvas#eff5f4#eff5f4#eff5f4#eff5f4#eff5f4#eff5f4#eff5f4
spacing base448 (different)48 (different)8 (different)8 (different)
spacing scale4, 8, 12, 16, 244, 8, 12, 168, 16, 24, 32 (+32)4, 8, 12, 16, 248, 16, 24, 32, 48 (+32, 48)8, 16, 24, 32 (+32)8, 16, 24, 32, 64 (+32, 64)
type sizes12, 13, 14, 1612, 13, 14, 1612, 13, 14, 16, 24 (+24)12, 13, 14, 1612, 14, 16, 24 (+24)13, 14, 1612, 14, 16, 24 (+24)
radii0, 4, 6, 80, 4, 6, 8, 999 (+999)0, 4, 6, 8, 999 (+999)0, 4, 6, 80, 4, 6, 8, 999 (+999)0, 6, 80, 4, 6, 8, 999 (+999)
fontsPretendard VariablePretendard Variable, ui-monospace (+ui-monospace)Pretendard VariablePretendard VariablePretendard VariablePretendard VariablePretendard Variable
control heights36, 4436, 4436, 4418, 36, 44 (+18)36, 4424, 32, 36, 44 (+24, 32)36, 44
index
accentBaseline: #00736b
none
inkBaseline: #090c0b
#090c0b
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
4
spacing scaleBaseline: 4, 8, 12, 16, 24
4, 8, 12, 16
type sizesBaseline: 12, 13, 14, 16
12, 13, 14, 16
radiiBaseline: 0, 4, 6, 8
0, 4, 6, 8, 999 (+999)
fontsBaseline: Pretendard Variable
Pretendard Variable, ui-monospace (+ui-monospace)
control heightsBaseline: 36, 44
36, 44
index?state=error
accentBaseline: #00736b
#00736b
inkBaseline: #090c0b
#4d5150 (different)
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
8 (different)
spacing scaleBaseline: 4, 8, 12, 16, 24
8, 16, 24, 32 (+32)
type sizesBaseline: 12, 13, 14, 16
12, 13, 14, 16, 24 (+24)
radiiBaseline: 0, 4, 6, 8
0, 4, 6, 8, 999 (+999)
fontsBaseline: Pretendard Variable
Pretendard Variable
control heightsBaseline: 36, 44
36, 44
notifications
accentBaseline: #00736b
none
inkBaseline: #090c0b
#090c0b
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
4
spacing scaleBaseline: 4, 8, 12, 16, 24
4, 8, 12, 16, 24
type sizesBaseline: 12, 13, 14, 16
12, 13, 14, 16
radiiBaseline: 0, 4, 6, 8
0, 4, 6, 8
fontsBaseline: Pretendard Variable
Pretendard Variable
control heightsBaseline: 36, 44
18, 36, 44 (+18)
notifications?state=error
accentBaseline: #00736b
#00736b
inkBaseline: #090c0b
#4d5150 (different)
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
8 (different)
spacing scaleBaseline: 4, 8, 12, 16, 24
8, 16, 24, 32, 48 (+32, 48)
type sizesBaseline: 12, 13, 14, 16
12, 14, 16, 24 (+24)
radiiBaseline: 0, 4, 6, 8
0, 4, 6, 8, 999 (+999)
fontsBaseline: Pretendard Variable
Pretendard Variable
control heightsBaseline: 36, 44
36, 44
settings
accentBaseline: #00736b
none
inkBaseline: #090c0b
#090c0b
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
8 (different)
spacing scaleBaseline: 4, 8, 12, 16, 24
8, 16, 24, 32 (+32)
type sizesBaseline: 12, 13, 14, 16
13, 14, 16
radiiBaseline: 0, 4, 6, 8
0, 6, 8
fontsBaseline: Pretendard Variable
Pretendard Variable
control heightsBaseline: 36, 44
24, 32, 36, 44 (+24, 32)
settings?state=error
accentBaseline: #00736b
#00736b
inkBaseline: #090c0b
#4d5150 (different)
canvasBaseline: #eff5f4
#eff5f4
spacing baseBaseline: 4
8 (different)
spacing scaleBaseline: 4, 8, 12, 16, 24
8, 16, 24, 32, 64 (+32, 64)
type sizesBaseline: 12, 13, 14, 16
12, 14, 16, 24 (+24)
radiiBaseline: 0, 4, 6, 8
0, 4, 6, 8, 999 (+999)
fontsBaseline: Pretendard Variable
Pretendard Variable
control heightsBaseline: 36, 44
36, 44
Command, sources, and reading the report
node engine/.claude/skills/styleseed/workflows/ss-verify/scripts/drift-report.mjs --project-root <project> --states error index.html notifications.html settings.html

Baseline: registry roles from .styleseed/palettes/payments-dashboard.json for colours, majority across screens for the rest. States re-measured: error.

These are measurements of computed styles, not a score. The accent is what filled primary actions are painted with, then what links are coloured with; a screen whose primary action only appears in a state (a save bar, a dialog) reads `none` at rest, so re-measure it with `--states`. A `different` value is a question for the owner of the design system, who may already have approved it. State variants (`?state=…`) count toward the verdict on the accent only; their text and spacing distributions describe the state, not the screen. No page text, screenshots, or URLs beyond the ones passed in are written.

Statuses: `same`, `near` (within a shade of the baseline), `different`, `none` (not derived on that screen), `+values` (present here, absent from the shared set).

Measured with playwright/index.mjs.

## Off-scale spacing per screen
- index?state=error: 12, 4
- notifications?state=error: 12, 4
- settings: 4, 12
- settings?state=error: 12, 4

## Screens
- index — file:///Users/Shared/styleseed-demo-v6/payments-console/index.html
- index?state=error — file:///Users/Shared/styleseed-demo-v6/payments-console/index.html?state=error
- notifications — file:///Users/Shared/styleseed-demo-v6/payments-console/notifications.html
- notifications?state=error — file:///Users/Shared/styleseed-demo-v6/payments-console/notifications.html?state=error
- settings — file:///Users/Shared/styleseed-demo-v6/payments-console/settings.html
- settings?state=error — file:///Users/Shared/styleseed-demo-v6/payments-console/settings.html?state=error
From intent to implementation

Good decisions.
Ready for the next task.

Every rule has an ID. Every invariant has a fail state. Your agent gets the rules that belong to the screen it is building.

folio / project-detail.mdCompiled at build time
  • INV-01

    No fabricated data

    blocks

    Never fabricate data.

  • INV-02

    Status not color only

    blocks

    Status never relies on colour alone.

  • INV-03

    Essential actions visible

    blocks

    Essential actions stay visible and named.

  • INV-04

    Controls operable

    blocks

    Controls keep visible labels, readable contrast, a visible focus state, keyboard order that follows visual order, and a safe way to recover from errors.

  • INV-05

    No unexplained role drift

    blocks

    Semantic roles (accent, status, canvas, type roles) do not change between screens without a recorded decision.

4 more rulesCraft defaults
  • CRAFT

    Control heights

    strong

    Buttons, inputs, and selects in one context share a height.

  • CRAFT

    Functional icons

    strong

    Navigation, status, and action symbols come from the project's icon family with accessible labels; emoji are content, not icons.

  • CRAFT

    Icon family

    strong

    Icons in one navigation, list, or toolbar come from one family; outline and filled variants coexist only to mark state.

  • CRAFT

    Motion family

    strong

    Motion uses one duration and easing family, names the properties it transitions, communicates state or sequence, never delays the first read, and provides a complete reduced-motion result.

Read the full bundle

Provenance and verbatim rules

Compiled from `engine/rules/catalog.json` for grammar operations-console · adapter product-ui · domain productivity · page detail. Invariants bind everywhere; defaults apply to this selection and yield to a recorded project decision. Each line carries its id for checks and reviews; `blocks` is a fail state independent of any score.

# Rules in scope

Compiled from `engine/rules/catalog.json` for grammar operations-console · adapter product-ui · domain productivity · page detail. Invariants bind everywhere; defaults apply to this selection and yield to a recorded project decision. Each line carries its id for checks and reviews; `blocks` is a fail state independent of any score.

## Invariants

- **INV-01-no-fabricated-data** (blocks · inferred): Never fabricate data. Placeholder metrics, invented deltas, and stock content are not evidence; use real product content or fixtures labelled as such. Source: engine/DESIGN-LANGUAGE.md#18
- **INV-02-status-not-color-only** (blocks · inferred): Status never relies on colour alone. Pair every status colour with text, an icon, or a shape that carries the same meaning. Source: engine/DESIGN-LANGUAGE.md#18
- **INV-03-essential-actions-visible** (blocks · inferred): Essential actions stay visible and named. Do not hide the next action behind hover, overflow, or an icon without an accessible name. Checks: SS006. Source: engine/DESIGN-LANGUAGE.md#18
- **INV-04-controls-operable** (blocks · inferred): Controls keep visible labels, readable contrast, a visible focus state, keyboard order that follows visual order, and a safe way to recover from errors. Checks: SS005. Source: engine/DESIGN-LANGUAGE.md#18
- **INV-05-no-unexplained-role-drift** (blocks · inferred): Semantic roles (accent, status, canvas, type roles) do not change between screens without a recorded decision. Unexplained local variation is not a role. Checks: ss-verify/scripts/drift-report.mjs --gate. Source: engine/DESIGN-LANGUAGE.md#18

## Defaults for this selection

- **CRAFT-control-heights** (strong · inferred · any selection): Buttons, inputs, and selects in one context share a height. Touch surfaces provide at least 44px targets; pointer-first dense desktop controls may be smaller when still operable. Exceptions: inline text controls inside dense tables when the row itself is the target. Checks: ss-verify/scripts/drift-report.mjs --gate. Source: engine/CRAFT-BASELINE.md
- **CRAFT-functional-icons** (strong · inferred · any selection): Navigation, status, and action symbols come from the project's icon family with accessible labels; emoji are content, not icons. Exceptions: user content and reactions; approved brand illustrations. Checks: ss-verify/scripts/drift-report.mjs --faults. Source: engine/VISUAL-CRAFT.md
- **CRAFT-icon-family** (strong · inferred · any selection): Icons in one navigation, list, or toolbar come from one family; outline and filled variants coexist only to mark state. Exceptions: coordinated outline and filled variants that mark the selected state; brand marks shown as content. Checks: ss-verify/scripts/drift-report.mjs --faults. Source: engine/CRAFT-BASELINE.md
- **CRAFT-motion-family** (strong · inferred · any selection): Motion uses one duration and easing family, names the properties it transitions, communicates state or sequence, never delays the first read, and provides a complete reduced-motion result. Checks: SS003, SS004, ss-verify/scripts/transition-jumps.mjs. Source: engine/CRAFT-BASELINE.md

Same prompt. Only the rules changed.

Side-by-side product pages: agent defaults with indigo accents and gradient headings on the left; the StyleSeed version with a consistent accent, a product preview, and one focal point on the right.

58 → 86 on our own gate 5.3 points in BENCH-V1 for Codex and Claude Code

These are historical results. A score is not design approval.

A design decision should outlast a chat.

Use both: the official frontend-design skill helps establish visual direction; StyleSeed records your choices in the repo, compiles the rules for each task, and checks the result across screens and sessions.

How the two fit together

Why not just use the official frontend-design skill? Use both. It helps establish visual direction; StyleSeed records your choices in the repo, compiles the rules for each task, and checks the result across screens and sessions. It does not replace a designer. People still decide which differences are intentional.

Put your design decisions in the repo.

Install once. Keep your choices in the project.

npx -y skills add bitjaru/styleseed -a codex -y --copy

Explore the source on GitHub
Advanced: the full one-paste workflow
Install StyleSeed: `npx -y skills add bitjaru/styleseed -a codex claude-code -y --copy`. Use /styleseed in Claude Code or $styleseed in Codex. Help apply our design decisions, not replace our design system. Inspect approved tokens, components, and choices first; report unsupported choices instead of silently remapping them. Resolve the selected artifact's contract when a registry exists; use STYLESEED.md only for a legacy project. Choose only unresolved grammar, adapter, recipe, and palette inputs. If the direction is open, use ss-studio and require my selection; compile unmodeled references with ss-reference. Build from the resolved contract, score to ≥80, and inspect the rendered result and relevant interactions. Report evidence and unresolved decisions; a score is not my approval.

Use this when you need the full workflow in one portable prompt.

Shared judgment. Different products.

Explore 15 examples
  • AI Chatchat

  • Field Notes 04research report

  • Finance Dashboarddashboard

  • Fitness Trackermobile

  • Food Deliverymobile

  • Issue Trackerworkflow

  • Marketing Landingmarketing

  • Music Playermobile

  • After Dark / 25event poster

  • Notes Editoreditor

  • Orbit Launch Deckproduct launch deck

  • Pricingmarketing

  • Settingssettings

  • Signal Resetsocial explainer

  • Mobile Walletmobile

15 products. Their own design language.