Colors
Green is Matrix's brand tone, neutral drives action, coral warns of danger, teal confirms success and gold highlights. Every color on screen is a step of these brand scales; semantic tokens wrap the right step, so product code rarely reaches for a raw number.
Usage
/* Every color is a CSS custom property in styles/tokens.css.
Prefer a semantic role; reach for a raw step only when no role fits. */
color: var(--muted-foreground);
background: var(--card);
border-color: var(--border);// The same roles as Tailwind utilities
<div className="border-border bg-card text-foreground" />Every color has a CSS variable and a Tailwind class with the same name: --card is bg-card, --muted-foreground is text-muted-foreground. Swap the prefix for the property you're styling (bg-, text-, border-, outline-, fill-).
Click any swatch or table name to copy it.
Brand colors
Green
--green-500
bg-green-500
Primary brand tone
Teal
--teal-500
bg-teal-500
Success
Coral
--coral-500
bg-coral-500
Destructive / error
Gold
--gold-400
bg-gold-400
Highlight / accent
Every other color in the system is a lighter or darker step of these hues, plus a warm neutral for structure, text and actions. There are no off-scale values.
Core palettes
Green · primary brand tone
Neutral · structure, text and actions
Highlight
Gold · highlight, accent
Status
Coral · destructive, error
Teal · success
Blue · information
Surfaces and text
Page
--background
bg-background
The default canvas: near-white neutral
Card
--card
bg-card
card-surface: elevated content
Accent
--accent
bg-accent
Hover and selected surfaces: a light neutral
Border
--border
border-border
border-subtle: dividers and borders
Text
--foreground
text-foreground
text-default: primary copy
Subtle text
--muted-foreground
text-muted-foreground
text-subtle: secondary copy
Cards separate by edge, not fill
The page (--neutral-25) and card (--neutral-100) surfaces are close in value, so a card never relies on its fill alone to stand out. Give it a border or a shadow.
Semantic roles
| Role | Tailwind | Use |
|---|---|---|
→ --neutral-25 | Page canvas behind everything. | |
→ --neutral-800 | Body text. 15.02:1 on --background. | |
→ --neutral-100 | Cards, panels and raised surfaces. | |
→ --neutral-25 | Menus, popovers and dialogs. | |
→ --green-500 | Logo and brand moments. Not for actions. | |
→ --neutral-800 | Buttons and the main call to action. | |
→ --neutral-25 | Text and icons on primary. 15.02:1 on --primary. | |
→ --green-700 | Primary button on hover (dark brand green). 7.38:1 on --primary-foreground. | |
→ --neutral-800 | Links and link buttons. Always underlined, so they read as interactive without color. 15.02:1 on --background. | |
→ --green-700 | Links on hover: dark brand green, matching primary hover. 7.38:1 on --background. | |
→ --neutral-25 | Secondary button fill, with a --border edge and shadow-xs (outlined). | |
→ --neutral-800 | Text on secondary. 15.02:1 on --secondary. | |
→ --neutral-50 | Secondary button on hover. | |
→ --accent | Ghost button on hover; the same color as --accent. | |
→ --neutral-200 | Disabled fills and quiet wells inside cards. | |
→ --neutral-600 | Secondary text and captions. 5.64:1 on --card. | |
→ --neutral-100 | Hover and selected surfaces in menus, lists and ghost buttons (shadcn “accent”). Neutral: coral only means danger. | |
→ --gold-400 | Gold highlight for badges and premium moments. Not for text. | |
→ --coral-500 | Delete and other destructive actions (brand coral). | |
→ --coral-600 | Destructive button on hover. | |
→ --neutral-25 | Text on destructive. 4.63:1 on --destructive. | |
→ --coral-600 | Text that reports a failure. 6.25:1 on --card. | |
→ --teal-600 | Text that reports a good outcome. 6.30:1 on --card. | |
→ --gold-700 | Text that asks for attention. 5.99:1 on --card. | |
→ --blue-600 | Informational text. 5.29:1 on --card. | |
→ --neutral-300 | Cards and dividers. | |
→ --neutral-300 | Input and textarea borders. | |
→ --gold-400 | The keyboard focus ring, everywhere (brand gold). |
The Tailwind column shows the usual pairing; any role works with any prefix (border-primary, text-destructive). The full list lives in styles/tokens.css. Status fills (--success, --warning, --info) are for icons, dots and large shapes; use the -text roles for words.
Tints
| Variant | Fill · border · text | On a chip |
|---|---|---|
neutral--tint-neutral-* | → --neutral-100→ --neutral-200→ --neutral-700 | Label9.5:1 |
brand--tint-brand-* | → --green-50→ --green-200→ --green-800 | Label11.7:1 |
success--tint-success-* | → --teal-50→ --teal-100→ --teal-700 | Label9.5:1 |
warning--tint-warning-* | → --gold-50→ --gold-200→ --gold-700 | Label6.2:1 |
destructive--tint-destructive-* | → --coral-50→ --coral-200→ --coral-600 | Label6.1:1 |
info--tint-info-* | → --blue-50→ --blue-100→ --blue-700 | Label8.0:1 |
A tint is a set, not a single color
Fill, border and text travel together: Copy classes gives you all three, e.g. bg-tint-success-fill border-tint-success-border text-tint-success-text. Each set pairs a light step of its scale with a darker text step, so every label stays above 6:1. Use tints for chips, badges and inline banners; never mix parts of two sets.
Guidelines
- Every color is a step of a brand scale. Never use an off-scale value or a hardcoded hex.
- Prefer semantic roles over raw steps:
--muted-foreground, not--neutral-600. - Keep one primary (dark) action per region; other actions are secondary or ghost.
- Reserve coral for destructive actions and errors, so red always means danger.
- Links are neutral and always underlined:
text-link underline underline-offset-4. The underline, not the color, shows they're clickable. - Pair every status color with an icon or a label; color alone never carries meaning.
- Don't use green or coral for regular actions; green is identity, coral is danger.
- Don't remove a link's underline, and don't use blue for links; blue means information.
- Don't set small error text in
--coral-500; use--destructive-text(--coral-600).