Color in product

In the product, colour is a signal before it is a style. A handful of semantic colours tell a member what to do and what has happened; neutral does the rest.

Colour carries meaning

Five colours carry meaning, and each one means the same thing on every screen. Under each, the place it shows up most.

  • PrimaryAct
  • SuccessDone
    Paid out
  • WarningAttention
    Pending
  • InfoKnow
    Shipped
  • DestructiveDanger
    Disputed

Neutral carries hierarchy

Grey sets the order things are read in: the item first, what supports it second, what is unavailable last. Hierarchy is a job for neutral, never for a status colour.

  • ForegroundFirst read

    Vintage Levi's 501

  • MutedSupporting

    + €4.50 shipping

  • QuietQuiet or off

Tokens

Components never name a colour. They name a token, and the token resolves to a step of a family for the palette and mode in force. That is what lets a palette change, or dark mode arrive, without touching a component.

Best practices

bg-primary
Name the token: bg-primary, text-muted-foreground.
bg-green-700#2b8a3e
Name a step or a hex: bg-green-700, #2b8a3e.