Meridian
esc
  • Actions

  • Navigate

navigate selectesc close

Meridian/For AI

Agent edition

The same book, for agents.

Meridian as plain Markdown, built from the same text as these pages. Every rule starts with a stable ID and its level, such as `MER-01.9` [MUST NOT], so an agent can follow the rules and cite exactly the one it means.

~22k tokens

llms.txt

The whole design language: all 52 sections with their specs, tables and code, then how to install it, the 155-component inventory and every token.

~6.7k tokens

rules.md

Just the 281 rules, each with a stable ID and level, grouped by section. Small enough to keep in an agent's context all the time.

MCP server

A remote MCP server at https://design.chopper.dev/mcp: Streamable HTTP, no sign-in, read-only. Agents ask it for the rules, a section, the tokens or a component's source instead of loading the whole book.

  • list_sectionsThe sections, with their rule counts
  • get_sectionOne section in full: specs, tables, code and rules
  • get_rulesEvery rule, grouped by section
  • search_rulesRules matching some words, at a level
  • get_ruleOne rule by ID, with its section for context
  • get_tokensThe tokens as CSS, a Tailwind theme or StyleX
  • list_componentsThe 155 components by group
  • get_componentA component's import and full source
  • get_installPackages, the lint plugin and the Figma library
Claude Code
$ claude mcp add --transport http meridian https://design.chopper.dev/mcp
Cursor, Claude Desktop and other clients · mcp.json
{
  "mcpServers": {
    "meridian": {
      "type": "http",
      "url": "https://design.chopper.dev/mcp"
    }
  }
}
AGENTS.md or CLAUDE.md
## Design

Follow the Meridian design language for all UI: https://design.chopper.dev/rules.md
Cite rules by ID (MER-01.9). Full reference with specs and tokens: https://design.chopper.dev/llms.txt

rules.md

design.chopper.dev/rules.md
# Meridian Design Language: rules digest

> Every rule from the Meridian Design Language v1.0, without the prose, specs and examples. The full reference: https://design.chopper.dev/llms.txt

MUST / MUST NOT are non-negotiable. SHOULD / SHOULD NOT are the default; deviate only with a short comment saying why. MAY is allowed when it helps. AVOID is allowed but a smell. Cite a rule by its ID (MER-01.1). Rules with a tool behind them are enforced by @meridian/eslint-plugin.

## 01. Principles

- `MER-01.1` **MUST** When two good options conflict, let the principle higher on this list win.
- `MER-01.2` **MUST** Content is the interface: chrome recedes so data, logs and code can lead; color is information, not decoration — if everything is highlighted, nothing is.
- `MER-01.3` **MUST** Use one accent per screen; neutrals do the rest.
- `MER-01.4` **MUST** Precise, never cold: pixel-aligned grids and tabular numbers, softened by warm neutrals, generous radii and plain-spoken words.
- `MER-01.5` **MUST** Use warm Graphite grays, not blue-steel.
- `MER-01.6` **MUST** Keyboard first, mouse friendly: make every action reachable from ⌘K and show shortcuts where actions live, so power is discoverable.
- `MER-01.7` **MUST** Design focus states; never leave them at the default.
- `MER-01.8` **MUST** Calm by default, honest under load: motion is quick and purposeful; errors say what happened, why, and what to do next — no blame, no mystery.
- `MER-01.9` **MUST NOT** Exceed 240ms for any duration; durations top out at 240ms.

## 02. Influences

- `MER-02.1` **MUST NOT** Take from Apple: oversized marketing imagery, hidden affordances, gesture-only controls.
- `MER-02.2` **MUST NOT** Take from Laravel Cloud: brand red as UI accent, heavy 3D illustration.
- `MER-02.3` **MUST NOT** Take from Notion: emoji-as-icon, hand-drawn illustration in product UI.
- `MER-02.4` **MUST NOT** Take from Celerium: violet as the main accent, product-specific coined names.

## 03. Color: Graphite neutrals

- `MER-03.1` **MUST** Separate surfaces with a single 1px `border` step or one shade of fill — never both at full strength.
- `MER-03.2` **MUST** Use **text-2** for body copy in dense UI and **text** only for headings, values and primary labels.
- `MER-03.3` **MUST NOT** Use pure `#000` text or pure gray (`#808080`) — they clash with the warm ramp and look printed-on.

## 04. Color: Accent & semantic

- `MER-04.1` **MUST** Use Cobalt only for what you can act on: primary calls to action, links, focus and selection.
- `MER-04.2` **MUST NOT** Use semantic colors to decorate; they are reserved for state.
- `MER-04.3` **MUST** Use accent 500 in the light theme, 600 for hover, 400 in the dark theme, and tint 50 for selected rows.
- `MER-04.4` **MUST NOT** Use Special (violet) for status; it marks what's new or what you own.
- `MER-04.5` **MUST NOT** Communicate state with color alone; every semantic color ships with a label, an icon, or a shape (dot, ring) so it survives color-blindness and grayscale printing.

## 05. Color: Light & dark roles

- `MER-05.1` **MUST** Reference roles in components, never raw ramp values.
- `MER-05.2` **MUST NOT** Change components per theme; themes swap the role mapping only.
- `MER-05.3` **MUST NOT** Build dark as an inversion of light.
- `MER-05.4` **MUST** In dark, make surfaces lighter as they rise, let borders carry more weight than shadows, and shift the accent one step brighter.

## 06. Typography: Families

- `MER-06.1` **MUST** Set anything a computer produced or will consume — IDs, hashes, regions, commands — in mono.
- `MER-06.2` **MUST** Use Inter weights 400 · 500 · 600 in UI; 700 only for marketing.
- `MER-06.3` **MUST** Use tabular numbers (`tnum`) in tables.
- `MER-06.4` **MUST** Size Geist Mono at ~92% of the adjacent sans.
- `MER-06.5` **MUST NOT** Use the Instrument serif in product UI.
- `MER-06.6` **MUST NOT** Use the serif accent more than once per view; it is one italic word in a marketing headline.

## 07. Typography: Scale

- `MER-07.1` **MUST** Keep product UI text between 12 and 20px; only marketing goes larger (up to 72).
- `MER-07.2` **MUST** Tighten tracking as size grows, per the scale.

## 08. Spacing & layout

- `MER-08.1` **MUST** Make every margin, gap and size a step on the spacing scale; if a value isn't on it, the design isn't finished.
- `MER-08.2` **SHOULD** Use the small end (4–16) inside components and the large end (24–96) for layouts.
- `MER-08.3` **SHOULD** Inside a component, make padding ≥ the gap between its children; between sections, double it.
- `MER-08.4` **MUST NOT** Collapse tables to cards at small widths; they scroll horizontally.

## 09. Shape & elevation

- `MER-09.1` **MUST** Scale radius with the size of the thing: small controls crisp, large containers soft.
- `MER-09.2` **MUST** Keep shadows layered and low-contrast, always paired with a hairline ring.
- `MER-09.3` **MUST** Pair the e4 modal elevation with a scrim.

## 10. Motion

- `MER-10.1` **MUST NOT** Use motion as a reward for waiting; nothing should slow the hundredth click.
- `MER-10.2` **MUST** Exit faster than you enter (~70% of the enter duration).
- `MER-10.3` **MUST** Scale from 0.96, never from 0.
- `MER-10.4` **MUST** Honor `prefers-reduced-motion`: swap movement for a 120ms opacity fade.
- `MER-10.5` **MUST NOT** Animate layout on data refresh, bounce buttons, or use skeletons for loads under 300ms.

## 11. Iconography

- `MER-11.1` **MUST** Take icons from `lucide-react` at a 1.5px stroke with round caps and joins.
- `MER-11.2` **MUST NOT** Replace a label with an icon the first time a user meets an action.
- `MER-11.3` **MUST** Match icon color to adjacent text: **text-2** in nav, **text** when active.
- `MER-11.4` **MUST** Give icon-only buttons a tooltip with the label and its shortcut.
- `MER-11.5` **MUST NOT** Mix filled and outline styles, or color icons with the accent for decoration.

## 12. Brand

- `MER-12.1` **MUST** Keep clear space of half the mark's height on every side.
- `MER-12.2` **MUST NOT** Show the mark below 16px on screen; below that use the favicon file, which has thicker strokes.
- `MER-12.3` **MUST** Keep the point Cobalt 400; the tile is ink (inverts in dark) and the arc is the tile's foreground.
- `MER-12.4` **MUST NOT** Recolour the point, rotate the arc, add effects, or place the mark on a busy image.
- `MER-12.5` **MUST** Check trademark and domains before committing to a name.

## 13. Buttons

- `MER-13.1` **MUST** Make the product UI primary button ink.
- `MER-13.2` **MUST** Reserve the Cobalt accent button for the one conversion moment on a page (sign up, deploy, upgrade).
- `MER-13.3` **MUST** Use one primary per view.
- `MER-13.4` **MUST** Label with a verb + object: "Deploy branch", not "OK".
- `MER-13.5` **MUST** Put the primary action on the right of a group.
- `MER-13.6` **MUST** Keep danger outlined; the confirm inside the dialog is the only solid red.
- `MER-13.7` **MUST NOT** Place two accent buttons side by side, or use danger for anything reversible.
- `MER-13.8` **MUST NOT** Disable a button without saying why — show a tooltip or inline reason.

## 14. Inputs & forms

- `MER-14.1` **MUST** Put labels above fields, always visible.
- `MER-14.2` **MUST** Validate on blur, not on keystroke.
- `MER-14.3` **MUST** Set machine values — URLs, keys, CIDRs — in mono inside the field.

## 15. Selection controls

- `MER-15.1` **MUST** Use a switch only for settings that apply immediately, with no submit button.
- `MER-15.2` **MUST** Use checkboxes and radios to collect choices for a form that is saved.
- `MER-15.3` **MUST NOT** Use segmented controls for settings; they switch views.
- `MER-15.4` **MUST** Use tabs to navigate between pages of one object, and segmented controls to change a view's lens.
- `MER-15.5` **SHOULD** Use radio cards for choices that need explanation.

## 16. Badges, status & keys

- `MER-16.1` **MUST** Render badges as soft tints with 6px corners.
- `MER-16.2` **MUST** Always pair status shape with a word.
- `MER-16.3` **MUST** Show keyboard keys wherever the shortcut exists.
- `MER-16.4` **MUST** Draw status as an outlined hexagon, never filled.
- `MER-16.5` **MUST** Write badge labels in sentence case, one or two words.
- `MER-16.6` **MUST** Use OS-native glyphs (⌘ ⇧ ⌥) on macOS and words (Ctrl, Shift) elsewhere.
- `MER-16.7` **MUST NOT** Fill the hexagon, or use status colors anywhere except hexagons, badges and banners.

## 17. Cards & metrics

- `MER-17.1` **MUST** Group one object or one number per card.
- `MER-17.2` **MUST** Make the value the largest thing in the card and the label the smallest.
- `MER-17.3` **MUST** Color deltas by meaning, not direction — a drop in error rate is green.
- `MER-17.4` **MUST** Draw meters in ink, turning amber past 80%.
- `MER-17.5` **MUST** Make the whole card the click target; keep secondary actions in a ⋯ menu.
- `MER-17.6` **MUST** Use tabular numerals so values don't jitter when they update.
- `MER-17.7` **MUST NOT** Nest cards in cards; use a divider or a subtle fill instead.

## 18. Tables

- `MER-18.1` **MUST** Use 44px rows, mono uppercase headers, hairline dividers and right-aligned numbers.
- `MER-18.2` **MUST** On small screens scroll tables horizontally with a pinned first column.
- `MER-18.3` **MUST NOT** Collapse tables into cards.
- `MER-18.4` **MUST** Left-align text, right-align numbers and dates.
- `MER-18.5` **MUST** Show bulk actions in the toolbar only after selection.
- `MER-18.6` **MUST** Use relative time; reveal the exact timestamp on hover.
- `MER-18.7` **MUST NOT** Zebra-stripe; hairlines are enough at 44px.

## 19. Navigation

- `MER-19.1` **MUST** Answer *where am I* with breadcrumbs plus a project switcher, and *what can I look at* with route tabs.
- `MER-19.2` **MUST** Add a left sub-nav only on settings pages; send anything deeper through ⌘K.
- `MER-19.3` **MUST** Make tabs real routes (links with `aria-current`), not client-side tabs.
- `MER-19.4` **MUST** Make the middle crumb the project switcher; add search after 6 projects.
- `MER-19.5` **MUST NOT** Add a third level, or put a sidebar on anything but settings.

## 20. Overlays

- `MER-20.1` **MUST** Let the command menu and dialogs take focus and dim the page.
- `MER-20.2` **MUST NOT** Put a scrim behind menus and tooltips; they float.
- `MER-20.3` **MUST NOT** Put information in a toast that can't be found elsewhere; toasts confirm and offer undo.
- `MER-20.4` **MUST** Rank ⌘K results by recency and current context, not alphabetically.
- `MER-20.5` **MUST** Return focus to the trigger when any overlay closes.
- `MER-20.6` **MUST** Confirm destructive dialogs by typing the resource name.
- `MER-20.7` **MUST NOT** Auto-dismiss toasts that contain an error or an undo.

## 21. Code & terminal

- `MER-21.1` **MUST** Set code blocks on Graphite 950 in both themes.
- `MER-21.2` **MUST** Name the file or language on every code block and offer copy.
- `MER-21.3` **MUST** Start commands with a dimmed prompt that copy excludes.
- `MER-21.4` **MUST** Give inline code a muted fill and a hairline border.

## 22. Application shell

- `MER-22.1` **MUST** In dark mode, step surfaces up in lightness and replace shadows with borders.
- `MER-22.2` **MUST** Use the accent exactly once in a chart (e.g. the highlighted bar).
- `MER-22.3` **MUST** Let status colors carry the screen; everything else is Graphite.

## 23. Staged changes

- `MER-23.1` **MUST NOT** Apply infrastructure edits on blur.
- `MER-23.2` **MUST** Stage infrastructure edits into a plan, show them as a diff, and ship them together from one bar at the bottom of the page.
- `MER-23.3` **MUST** Save personal settings instantly.

## 24. Page states

- `MER-24.1` **MUST** Draw every screen loading, empty, failing, forbidden and stale before calling it finished.
- `MER-24.2` **MUST** Keep the page's layout in each state, say what happened in plain words, and offer exactly one way forward.
- `MER-24.3` **MUST** Show loading skeletons only after 300ms, matching the real rows exactly so nothing jumps when data lands.

## 25. System pages

- `MER-25.1` **MUST** Keep the logo and nothing else on full-page states — no navigation that might also be broken.
- `MER-25.2` **MUST** Include an identifier support can trace on every system page.
- `MER-25.3` **MUST** Include a route back to working ground on every system page.

## 26. Phones

- `MER-26.1` **MUST NOT** Redesign for phones; reflow the same system.
- `MER-26.2` **MUST** On phones shrink the breadcrumb to the switcher, scroll tabs, scroll tables with a pinned first column, and make the staged bar a full-width footer.
- `MER-26.3` **MUST** Grow touch targets to 44px; type to 15px.
- `MER-26.4` **MUST** Pin the identifying column; let the rest scroll.
- `MER-26.5` **MUST** Fade the tab row's edge to show it scrolls.
- `MER-26.6` **MUST** Put the primary action in thumb reach.
- `MER-26.7` **MUST NOT** Turn tables into cards or hide columns silently.

## 27. Marketing pages

- `MER-27.1` **MUST** Set the hero in display-xl, centered, max two lines.
- `MER-27.2` **MUST** Allow one serif italic word in the hero and nowhere else.
- `MER-27.3` **MUST** Use the accent for the conversion CTA, plus a copyable install command as the secondary.
- `MER-27.4` **MUST** Prove with real product UI or terminal output, not abstract 3D.
- `MER-27.5` **MUST NOT** Decorate with anything but a single accent-tinted glow.
- `MER-27.6` **MUST** Space sections at 128px and alternate one dark band per page to reset the eye.
- `MER-27.7` **MUST NOT** Use stock photos, gradient text, or "revolutionary".

## 29. Data visualization

- `MER-29.1` **MUST** Draw most series in Graphite and the one that matters in Cobalt.
- `MER-29.2` **MUST** Draw gridlines as hairlines and set axes in mono.
- `MER-29.3` **SHOULD** Label the current value directly instead of in a legend.
- `MER-29.4` **MUST NOT** Use more than 6 categorical series; beyond that, group into "Other".
- `MER-29.5` **MUST** Use semantic colors only for uptime bars — one bar per day.

## 30. Charts

- `MER-30.1` **MUST** Back every chart with a hidden data table so it is keyboard and screen-reader readable.
- `MER-30.2` **MUST** Draw a compare series (last period) as a dashed Graphite line.
- `MER-30.3` **MUST** Keep 2xx neutral in stacked status areas so the 5xx spike reads.
- `MER-30.4` **MUST** Mark the bar that matters with one Cobalt bar.
- `MER-30.5` **MUST NOT** Colour more than one series Cobalt, or use status colours for anything but state.

## 31. Data table

- `MER-31.1` **MUST** Virtualise large tables so only visible rows are in the DOM, keeping the sticky header, pinned columns and selection working.
- `MER-31.2` **MUST** Pin the identifier column.
- `MER-31.3` **MUST** When rows are selected, set the header checkbox to mixed and replace the toolbar with a bulk bar.
- `MER-31.4` **MUST** Sort with `aria-sort`.
- `MER-31.5` **MUST** Show skeletons while rows are loading.

## 32. Time & terminal

- `MER-32.1` **MUST** Show times relative by default and exact on hover.
- `MER-32.2` **MUST** Switch every timestamp between Local and UTC from one app-wide toggle.
- `MER-32.3` **MUST** Render relative times as a real `<time dateTime>` element.
- `MER-32.4` **MUST** Render the terminal with xterm.js in Meridian's always-dark palette.

## 33. Trees & layout

- `MER-33.1` **MUST** Follow the ARIA pattern for each component's role and exercise it with the keyboard.
- `MER-33.2` **MUST NOT** Make a HoverCard the only path to information.

## 34. Marketing blocks

- `MER-34.1` **MUST** Use one Cobalt CTA per page (the hero); make everything else ink or neutral.
- `MER-34.2` **MUST** Fold MarketingNav links into a sheet on phones.
- `MER-34.3` **MUST** Give the Hero a pill, one serif word, a Cobalt CTA, a copyable command and a product shot with a single glow.
- `MER-34.4` **MUST** Ring exactly one PricingTable tier and align rows across tiers.

## 35. Auth & onboarding

- `MER-35.1` **MUST** Put auth errors on the field they belong to.
- `MER-35.2` **MUST** Use one form-level banner only when the cause isn't a field.
- `MER-35.3` **MUST** Let OtpInput accept a pasted whole code, auto-advance, and set `autocomplete="one-time-code"`.

## 36. Email

- `MER-36.1` **MUST** Build email with inline styles (mail clients ignore classes) and table-based layout.
- `MER-36.2` **MUST** Ship a plain-text version where every link also appears as text.
- `MER-36.3` **MUST** Include the logo as a hosted PNG, a "Why am I getting this?" line, an unsubscribe link and a postal address.
- `MER-36.4` **MUST NOT** Send an alert whose only content is a button; say what happened in the subject and first line.

## 37. Topology

- `MER-37.1` **MUST** Lay topology out deterministically from the data alone: same input, same map, every time.
- `MER-37.2` **MUST NOT** Use force simulation or let the layout jitter on reload.
- `MER-37.3` **MUST** Draw a down link dashed with the word "down".
- `MER-37.4` **MUST** Turn a link at ≥ 80% load amber.
- `MER-37.5` **MUST** Give screen readers a hidden list of every link.

## 38. Racks & ports

- `MER-38.1` **MUST** Draw racks and switch panels schematically, the way an engineer sketches them.
- `MER-38.2` **MUST** Carry port and device state by shape as well as colour.
- `MER-38.3` **MUST** Turn rack space and power meters amber at 80%.
- `MER-38.4` **MUST** Draw ports as: up filled with the speed, down hollow, disabled hatched, error "!", and a bolt for PoE.
- `MER-38.5` **MUST** Put odd ports on top, like the hardware.

## 39. Network inputs

- `MER-39.1` **MUST** Validate every network field on blur.
- `MER-39.2` **MUST** Save network values in their canonical form.
- `MER-39.3` **MUST NOT** Show a generic "invalid value"; explain the problem in the field's own words.
- `MER-39.4` **MUST** Compress pasted IPv6 on blur.
- `MER-39.5` **MUST** Warn about the reserved VLANs 1002–1005.
- `MER-39.6` **MUST** Flag private and documentation ASN ranges.

## 40. Fleet views

- `MER-40.1` **MUST** Give fleet grids a single shared tooltip, one tab stop, and arrow-key travel through every cell.
- `MER-40.2` **MUST** Use a five-step Cobalt ramp for heatmap volume.
- `MER-40.3` **MUST** When heatmap `thresholds` apply, change cell shape too for warn and bad (a notched corner, a slash).
- `MER-40.4` **MUST** In a StatusGrid draw good solid, warn notched, bad slashed, off hollow, unknown dotted.

## 41. Consoles & logs

- `MER-41.1` **MUST** Wrap VNC (noVNC) and serial (xterm.js) consoles in one shared frame.
- `MER-41.2` **MUST** Make every console failure state say why it failed and offer Reconnect.
- `MER-41.3` **MUST** Pause LogStream follow mode when the user scrolls up.

## 42. Config & diff

- `MER-42.1` **MUST** Show config diffs with running on the left and candidate on the right.
- `MER-42.2` **MUST** Report diagnostics with a gutter marker, a wavy underline, and a Problems list that jumps to the line.
- `MER-42.3` **MUST** Bind ⌘S to `onSave` in the code editor.

## 43. Settings

- `MER-43.1` **MUST** Make settings blocks take data and callbacks; they never fetch.
- `MER-43.2` **MUST** Use `SettingsLayout` for the settings-only side nav, which becomes a select on phones.
- `MER-43.3` **MUST** Warn when an API key's expiry is "never".
- `MER-43.4` **MUST** Show an API token only once.
- `MER-43.5` **MUST** Revoke an API key by typing the key's name.
- `MER-43.6` **MUST** Lock built-in roles; only custom roles are editable.
- `MER-43.7` **MUST** Collect every roles edit in the unsaved-changes bar.
- `MER-43.8` **MUST** Show unread notifications by dot and weight.
- `MER-43.9` **MUST** Turn usage meters amber at 80% of what's included, never red.
- `MER-43.10` **MUST NOT** Stop service when usage goes over; going over costs money but stops nothing.

## 44. Lint rules

- `MER-44.1` **MUST** `stylex-import-vars-from-stylex-files`: import variables from `.stylex` entry points (autofix).
- `MER-44.2` **MUST NOT** `no-raw-colors`: use hex, rgb() or named colours in styles.
- `MER-44.3` **MUST** `danger-is-outlined`: use `dangerSolid` only inside a dialog.
- `MER-44.4` **MUST** `one-accent-per-file`: keep Cobalt to the single conversion moment.
- `MER-44.5` **MUST NOT** `status-needs-label`: show colour-only status or an icon-only badge.
- `MER-44.6` **MUST** `icon-button-label`: give icon buttons a `label`.
- `MER-44.7` **MUST** `one-staged-bar`: use one staged-changes bar per page.
- `MER-44.8` **MUST** `no-classname-on-kit`: style kit components with the `style` prop, not `className`.
- `MER-44.9` **MUST** `meter-no-bad-tone`: meters go amber, never red.
- `MER-44.10` **SHOULD** `prefer-longhand`: use `paddingBlock` over `"4px 8px"` shorthand.

## 45. Figma library

- `MER-45.1` **MUST** Generate the Figma library from `palette.stylex.ts` so design and code can't drift.
- `MER-45.2` **MUST** Bind every fill, stroke, padding and radius to a variable.
- `MER-45.3` **MUST** Link every Figma component to its React import.
- `MER-45.4` **MUST** Use each variable's StyleX name (e.g. `colors.surface`) as its code syntax.

## 46. Quality & package

- `MER-46.1` **MUST** Publish `@meridian/ui` uncompiled so each app's StyleX compiler processes it.
- `MER-46.2` **MUST** Run types, unit and accessibility tests, and visual regression in light, dark and at phone width, on every change.
- `MER-46.3` **MUST** Pass Vitest + Testing Library + axe checks for keyboard, focus and ARIA with no violations.

## 47. Voice & copy

- `MER-47.1` **MUST** Write direct, specific and calm copy; assume competence and skip the cheerleading.
- `MER-47.2` **MUST** Always say what happened, why, and what to do next.
- `MER-47.3` **MUST** Be specific over clever: name the resource, the number, the file ("3 migrations ran" beats "All set!").
- `MER-47.4` **MUST NOT** Use exclamation marks, "Oops", or blame in errors.
- `MER-47.5` **MUST** Use sentence case everywhere — buttons, headings, menus; proper nouns keep their capitals.
- `MER-47.6` **MUST** Show the command: if there's a CLI equivalent, put it next to the button.
- `MER-47.7` **AVOID** "Oops! Something went wrong" — prefer "Build failed: `composer install` exited with code 1."
- `MER-47.8` **AVOID** "Are you sure?" — prefer "Delete **api-gateway**? Its 2 databases and 248 deployments will be removed."
- `MER-47.9` **AVOID** "Your awesome app is now LIVE! 🚀" — prefer "Live at `api.example.com` · 1m 18s".
- `MER-47.10` **AVOID** "Click here to learn more" — prefer "Read the rollback guide" (the link names its target).
- `MER-47.11` **AVOID** "Invalid input" — prefer "Use lowercase letters, numbers and dashes."
- `MER-47.12` **AVOID** "Submit" — prefer "Create environment".
- `MER-47.13` **AVOID** "No data" — prefer "No deployments yet. Push to `main` to start one."

## 48. Accessibility

- `MER-48.1` **MUST** Meet WCAG 2.2 AA as the floor.
- `MER-48.2` **MUST** Check accessibility at the token level so components inherit it.
- `MER-48.3` **MUST NOT** Use text-4 for information; it is decorative only.
- `MER-48.4` **MUST** Draw focus as a 2px Cobalt 400 ring with a 2px gap (offset by the background color), shown on `:focus-visible` only.
- `MER-48.5` **MUST** Give every hit area at least 24×24px, and 44×44 on touch.
- `MER-48.6` **MUST** Extend small controls' hit area with padding, not visual size.
- `MER-48.7` **MUST** Make every action keyboard reachable in visual order.
- `MER-48.8` **MUST** Give icon-only buttons an `aria-label`.
- `MER-48.9` **MUST** Announce status changes via a polite live region.
- `MER-48.10` **MUST NOT** Convey state by color alone.
- `MER-48.11` **MUST** Make dialogs trap focus and restore it on close.
- `MER-48.12` **MUST** Make layouts reflow at 400% zoom without loss.
- `MER-48.13` **MUST** Respect reduced-motion and forced-colors.
- `MER-48.14` **MUST** Make logs and code selectable plain text.
- `MER-48.15` **MUST** Let the status word carry the meaning; the hexagon only reinforces it.

## 49. Tokens: StyleX

- `MER-49.1` **MUST** Define every hex value once, as compile-time constants.
- `MER-49.2` **MUST** Make theme-aware variables read from the constants and follow the OS setting by default.
- `MER-49.3` **MUST** Make components read roles only.
- `MER-49.4` **MUST** Import variables straight from the `.stylex.ts` file; StyleX can't follow them through an `index.ts` barrel.
- `MER-49.5` **MUST** Use `media.*` constants as style keys so breakpoints never drift between files.
- `MER-49.6` **MUST NOT** Hard-code a hex value in a component; if a role is missing, add it to the palette and the vars.

## 50. StyleX in use

- `MER-50.1` **MUST** Follow the OS when no theme is applied; spread `theme.dark` or `theme.light` to force one on a subtree.
- `MER-50.2` **MUST** Override component styles through a `style` prop of StyleX styles — no `className`.
- `MER-50.3` **MUST NOT** Import constants (`ramp`, `light`, `dark`) in components.
- `MER-50.4` **MUST** Name roles for what they're for: `colors.surface`, `colors.text2`.
- `MER-50.5` **MUST** Name states with a suffix: `accentHover`, `borderStrong`.
- `MER-50.6` **MUST NOT** Use colour names in components (`blue500`).
- `MER-50.7` **MUST** Keep danger outlined everywhere except the confirm in a dialog.

## 51. Component inventory

- `MER-51.1` **MUST** Ship every pattern as a typed React component in `@meridian/ui`, styled with StyleX, reading only role tokens, and taking a `style` prop for overrides.
- `MER-51.2` **MUST** Make interactive components client components.
- `MER-51.3` **MUST** Build overlays on native `<dialog>`.

## 52. Review checklist

- `MER-52.1` **MUST** Only one accent-colored element is competing for attention.
- `MER-52.2` **MUST** All spacing is on the 4px scale; no one-off values.
- `MER-52.3` **MUST** Radii match size: controls 8, cards 12, dialogs 16.
- `MER-52.4` **MUST** Machine values (IDs, hashes, regions) are in mono.
- `MER-52.5` **MUST** Numbers are tabular and right-aligned in tables.
- `MER-52.6` **MUST** Looks intentional in both light and dark.
- `MER-52.7` **MUST** Every state is designed: empty, loading, error, partial.
- `MER-52.8` **MUST** Primary action is reachable from ⌘K and has a shortcut.
- `MER-52.9` **MUST** Hover, focus-visible and disabled states all exist.
- `MER-52.10` **MUST** Motion ≤ 240ms and respects reduced motion.
- `MER-52.11` **MUST** Destructive actions confirm with the resource name.
- `MER-52.12` **MUST** Tables scroll on mobile; nothing collapses to cards.
- `MER-52.13` **MUST** Sentence case on every label and heading.
- `MER-52.14` **MUST** Buttons are verb + object.
- `MER-52.15` **MUST** Errors say what happened, why, and what to do next.
- `MER-52.16` **MUST** No exclamation marks, emoji or "Oops" in system copy.
- `MER-52.17` **MUST** CLI equivalent shown where one exists.
- `MER-52.18` **MUST** Contrast meets AA; state never relies on color alone.

Building with the kit? Get Meridian has the packages, the lint rules and the Figma library.