Colors

The names components use for colour. Each resolves to a step of a family, per mode; each pair is graded against WCAG live, in the light and the dark mode side by side. When to use which is the Color guideline's.

Surfaces

The grounds everything sits on. The page and its cards share one white; separation is a hairline, never a lift.

  • bg-background

    --background

    The page.

    Light
    Dark
  • bg-card

    --card

    Cards and panels on the page.

    Light
    Dark
  • bg-popover

    --popover

    Menus, popovers and sheets.

    Light
    Dark
  • bg-muted

    --muted

    A quiet fill: chips, grey panels, inputs at rest, skeletons.

    LightAa…
    DarkAa…
  • bg-accent

    --accent

    A hovered or highlighted row.

    Light
    Dark
  • bg-invert

    --invert

    The one dark surface on a light page: tooltips, toasts.

    Light
    Dark

Content

Text and icons, in three strengths. The strongest is for what you read first; the muted one for everything that supports it.

  • text-foreground

    --foreground

    Titles, body text, icons.

    LightAa…
    DarkAa…
  • text-muted-foreground

    --muted-foreground

    Secondary text: metadata, captions, placeholders.

    LightAa…
    DarkAa…
  • text-card-foreground

    --card-foreground

    Text on a card.

    LightAa…
    DarkAa…
  • text-invert-foreground

    --invert-foreground

    Text on the invert surface.

    LightAa…
    DarkAa…

Action

What the member can press. Primary is the one thing to do on a screen; secondary sits beside it without competing.

  • bg-primary

    --primary

    The primary button, links, selected marks.

    LightAa…
    DarkAa…
  • text-primary-accent

    --primary-accent

    The primary as text on the page: links, outline labels.

    LightAa…
    DarkAa…
  • bg-secondary

    --secondary

    Secondary buttons, the selected chip, disabled fills.

    LightAa…
    DarkAa…
  • ring-ring

    --ring

    The focus ring.

    LightAa…
    DarkAa…

Status

Each status means one thing and is never borrowed for decoration. A solid fill for the badge. A notice is a soft ground with an edge, its words in a dark ink of the role and its icon in the accent, so the colour lives in the ground and the icon.

  • bg-success

    --success

    Done and paid: delivered, paid out, verified.

    LightAa…
    DarkAa…
  • text-success-accent

    --success-accent

    The success colour on its tint: a notice's icon, a badge's label.

    LightAa…
    DarkAa…
  • text-success-soft-foreground

    --success-soft-foreground

    Words in a success notice.

    LightAa…
    DarkAa…
  • border-success-border

    --success-border

    A success notice's edge.

    Light
    Dark
  • bg-warning

    --warning

    Needs attention soon: pending, ending, expiring.

    LightAa…
    DarkAa…
  • text-warning-accent

    --warning-accent

    The warning colour on its tint: a notice's icon, a badge's label.

    LightAa…
    DarkAa…
  • text-warning-soft-foreground

    --warning-soft-foreground

    Words in a warning notice.

    LightAa…
    DarkAa…
  • border-warning-border

    --warning-border

    A warning notice's edge.

    Light
    Dark
  • bg-info

    --info

    Worth knowing, nothing to fix: shipped, in transit.

    LightAa…
    DarkAa…
  • text-info-accent

    --info-accent

    The info colour on its tint: a notice's icon, a badge's label.

    LightAa…
    DarkAa…
  • text-info-soft-foreground

    --info-soft-foreground

    Words in an info notice.

    LightAa…
    DarkAa…
  • border-info-border

    --info-border

    An info notice's edge.

    Light
    Dark
  • bg-destructive

    --destructive

    Removes or fails something: delete, dispute, error.

    LightAa…
    DarkAa…
  • text-destructive-accent

    --destructive-accent

    The destructive colour on its tint: a notice's icon, a badge's label.

    LightAa…
    DarkAa…
  • text-destructive-soft-foreground

    --destructive-soft-foreground

    Words in a destructive notice.

    LightAa…
    DarkAa…
  • border-destructive-border

    --destructive-border

    A destructive notice's edge.

    Light
    Dark
  • bg-notification

    --notification

    The unread count, and nothing else.

    LightAa…
    DarkAa…

Lines

Lines that separate without shouting. Fields take a step darker than dividers so they read as fields.

  • border-border

    --border

    Hairlines, dividers, card edges.

    Light
    Dark
  • border-input

    --input

    The edge of a field.

    Light
    Dark