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.

Swatches copy as

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

RoleTailwindUse
→ --neutral-25Page canvas behind everything.
→ --neutral-800Body text. 15.02:1 on --background.
→ --neutral-100Cards, panels and raised surfaces.
→ --neutral-25Menus, popovers and dialogs.
→ --green-500Logo and brand moments. Not for actions.
→ --neutral-800Buttons and the main call to action.
→ --neutral-25Text and icons on primary. 15.02:1 on --primary.
→ --green-700Primary button on hover (dark brand green). 7.38:1 on --primary-foreground.
→ --neutral-800Links and link buttons. Always underlined, so they read as interactive without color. 15.02:1 on --background.
→ --green-700Links on hover: dark brand green, matching primary hover. 7.38:1 on --background.
→ --neutral-25Secondary button fill, with a --border edge and shadow-xs (outlined).
→ --neutral-800Text on secondary. 15.02:1 on --secondary.
→ --neutral-50Secondary button on hover.
→ --accentGhost button on hover; the same color as --accent.
→ --neutral-200Disabled fills and quiet wells inside cards.
→ --neutral-600Secondary text and captions. 5.64:1 on --card.
→ --neutral-100Hover and selected surfaces in menus, lists and ghost buttons (shadcn “accent”). Neutral: coral only means danger.
→ --gold-400Gold highlight for badges and premium moments. Not for text.
→ --coral-500Delete and other destructive actions (brand coral).
→ --coral-600Destructive button on hover.
→ --neutral-25Text on destructive. 4.63:1 on --destructive.
→ --coral-600Text that reports a failure. 6.25:1 on --card.
→ --teal-600Text that reports a good outcome. 6.30:1 on --card.
→ --gold-700Text that asks for attention. 5.99:1 on --card.
→ --blue-600Informational text. 5.29:1 on --card.
→ --neutral-300Cards and dividers.
→ --neutral-300Input and textarea borders.
→ --gold-400The 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

VariantFill · border · textOn a chip
neutral--tint-neutral-*→ --neutral-100→ --neutral-200→ --neutral-700Label9.5:1
brand--tint-brand-*→ --green-50→ --green-200→ --green-800Label11.7:1
success--tint-success-*→ --teal-50→ --teal-100→ --teal-700Label9.5:1
warning--tint-warning-*→ --gold-50→ --gold-200→ --gold-700Label6.2:1
destructive--tint-destructive-*→ --coral-50→ --coral-200→ --coral-600Label6.1:1
info--tint-info-*→ --blue-50→ --blue-100→ --blue-700Label8.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).