Agentic Design System
v3.5.0

Foundations · Colors

Colors

Color carries meaning before anything else on the page loads. This system runs on one editable brand hue, a fixed set of semantic colors that never change meaning, and a neutral scale that flips between dark and light theme. Configure the two editable pieces below; everything else follows automatically.

Brand color

One primary hex drives the whole brand scale - hover/pressed (600), tint and glow are derived automatically. Light theme is set directly below; turn on dark theme to give it its own hue, generated from light as a starting point and fully refinable on its own.

Light theme

Primary *
#

rgb(255, 3, 26)

Derived scale

Background & surface elevation

Three stacked surfaces - page, panel and raised - separate content without relying on shadow. Light theme is set directly below; turn on dark theme to generate a matching set, refinable independently.

Light theme

Page (Primary)
#
Panel (Secondary)
#
Raised (Tertiary)
#

Live preview

Page
Panel
Raised

Semantic & status colors

Success, warning, danger and info - independent of the brand hue, and by default identical in both themes so a red error stays recognizably the same red everywhere. Turn on dark theme only if a status color actually needs its own contrast against dark surfaces; each still defaults to the exact same hue as light until you change it.

Danger's default hex happens to match Brand's default hex (both start as the same red) - that's a coincidence of this system's brand color being red by default, not a link between the two. They're stored and edited completely separately (--danger-500 vs. --red-500): changing Brand's color above does not change Danger, and changing Danger here does not change Brand.

Status color anatomy - the actual recipe differs by component, by design, not one universal foreground/background/icon triplet: Alert uses a 3px status-colored left border plus a status-colored icon, with the banner's own neutral background and default body text untouched (a loud left edge, not a loud fill). Badge's status dot and Table's status cell use a plain solid status-colored dot next to default-colored text - no tint, no border. Tag's status variant is the one place that does tint the background (~12% opacity) with full-strength status-colored text, since a tag is meant to read as a small colored label on its own. Form validation text (Password, Upload, and every required-field error across Project setup/Foundations) uses plain danger-colored text with no icon or background - severity carried by color and the message itself, not by added chrome.

Status is not selection: a selected row/card/option uses Brand (the editable accent above), never a status color - a selected item isn't "successful" or "dangerous," so reusing Danger's red for "selected" would misread as an error state. This system has no chart or data-visualization component yet, so there is no separate data-series palette to keep distinct from status colors today - when one is added, it should use its own set of hues rather than reusing Success/Warning/Danger/Info, so an arbitrary data category never visually implies a severity judgment it doesn't have.

Light theme

Success
#

Confirmations, completed states, positive deltas.

Warning
#

Needs attention but isn't blocking.

Danger
#

Destructive actions, failed states, blocking errors.

Info
#

Neutral, non-urgent context.

Neutral scale

Seven steps of graphite plus one dedicated control border. 950 / 900 / 850 (page / panel / raised) are configured in Background & surface elevation above; the remaining four steps below cover hover fills, dividers, disabled content and control borders. Light is set directly; turn on dark to generate a matching set.

Light theme

800 · Hover fill
#
700 · Resting fill
#
600 · Disabled / divider
#
500 · Placeholder
#
Control border
#

Light & dark theme behavior

Light is the value you set directly. Each section has its own "customize dark separately" checkbox, and turning it on for one section does not change the others.

With dark customization off, Background, Status and Neutral use this system's built-in dark defaults. Brand is your own color, so its dark value is always generated from your light color (and fully editable): it desaturates slightly and picks the darkest lightness that still reaches 7:1 contrast on the dark background, or the best ratio it can find.

The AA/AAA badge under each hex field checks that one color against the page background, primary text or (for Border) the adjacent surface, at 4.5:1, 7:1 and 3:1. Brand also checks its hex as text on its own 8% tint. It does not check how a component actually uses the color, large-text allowances, or other opacities, so a passing badge is a starting point, not a conformance claim.

Prefer --brand-500/-400/-600/-tint/-glow and --surface-page/-panel/-raised in new work: they always equal the matching --red-* and --graphite-* values, so the names stay true after a rebrand. Nothing existing was renamed.

For developers and AI agents: Markdown export and implementation contract

Color tokens - Markdown export

A single Markdown snapshot of every section above - regenerates live the moment you change or save any color, so it's always in sync. Copy it straight into your design system docs or hand it to an AI/agent workflow.

Implementation contract

Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.

User and task flow

Set brand, surfaces, statuses and neutrals independently. Inspect light/dark applied pairs, save valid choices, then copy the current configuration. Enabling dark editing is durable and does not couple Danger to Brand.

Roles and states

Brand communicates selection/actions; Success, Warning, Danger and Info communicate severity. Charts use a separate series palette. Foreground is selected per actual primary-button state. Status text uses an accessible semantic foreground against its real surface, not an untested raw hue.

Accessible pairs

Normal text requires 4.5:1 and large text 3:1; essential non-text boundaries require 3:1. Decorative lines and disabled controls have different scope. Calculate alpha-composited backgrounds first. Recheck current Typography colors after surface edits. A passing swatch is not certification of every component.

Derivation and hierarchy

Resolver version 1 derives hover by mixing brand with 25% white and pressed by mixing with 18% black; tint is 8% brand and glow 35%. Semantic readable foregrounds move toward black or white until the actual surface pair passes 4.5:1. Highly customized surfaces can collapse the page/panel/raised hierarchy: use a neutral border or restore separation deliberately; luminance order alone is not a universal hierarchy guarantee.

Compatibility mapping

Existing red-* tokens represent brand/action; danger-* represent severity. type-*-color represents text by role; graphite-950/900/850 represents page/panel/raised surfaces. Prefer the exported color-brand, color-action, color-text and color-surface aliases for new consumers. Compatibility names retain their existing meaning and are not a license to use a brand hue for error feedback.

Examples and recovery

A red brand with a red Danger is two independent choices. White text on default red can fail; use the resolved on-brand foreground. For a tinted Tag calculate status text versus its tinted surface. Use label/icon/message in addition to hue. Keep full hex validation and the last valid value while typing.

Responsive and interaction

Picker numeric controls remain keyboard accessible. Escape returns focus to the trigger; outside dismissal does not trap focus. At narrow/zoomed widths keep fields and popup inside the content viewport. Use forced-color system colors rather than relying on tinted fills.

Agent and export

Use semantic aliases and resolved light/dark values. Never infer status from brand hue or declare AA from a color alone. Export the pair, opacity, state, surface and verification result.

Save and edit

Selections preview immediately. Save foundation commits valid settings in this browser and locks the editor. Select Edit foundation to revise saved settings; Cancel retains the saved settings. Storage failure keeps the draft editable.

Machine contract: section rules, storage, units and acceptance
{
  "schemaVersion": 1,
  "authority": "Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.",
  "governance": {
    "owners": "Design System Lead owns token and compatibility policy. Designers own specimens and interaction contracts. Developers own resolver/export/import parity. QA and Accessibility own release evidence. Product teams own domain-specific confidence, privacy and retention policies.",
    "changes": "Change the JSON contract first, regenerate documentation/defaults/catalog/tokens, then run model, DOM and recipient checks. Link the changed finding IDs and evidence in the release review.",
    "compatibility": "Keep hue-named CSS tokens as compatibility aliases while semantic consumers migrate. Additive tokens retain schemaVersion 1. A removed/renamed key or changed stored meaning requires a schema migration, a version bump and a documented replacement before release. Keep the prior reader fixture until the migration is verified.",
    "deprecation": "Record old key, replacement, reason, introduced version, planned removal version and affected consumers. Do not remove a token while an active consumer still uses it. Future records are preserved rather than coerced.",
    "scope": "This is a web design system with one shared workspace profile. Native dp/sp adaptation and real agent execution require separate adapters and acceptance. User-defined colors and responsive exceptions require product-specific rendered verification."
  },
  "storage": {
    "version": 1,
    "legacy": "Unversioned valid records migrate in memory. Typography headingScaleVersion 2 applies the smaller six-heading scale once to older records, retaining other roles and existing font/color/style metrics. Later custom size edits are retained. Unsupported future records are preserved. The next successful write stamps the migrated version.",
    "future": "Reject unsupported future versions. Preserve raw data. Offer backup and explicit reset.",
    "invalid": "Foundation selections preview locally until Save foundation succeeds. Saved Foundation editors require Edit foundation before changes. Cancel discards the preview. Invalid drafts never replace saved records; storage failures retain the editable preview and the last durable record.",
    "concurrency": "A storage event refreshes applied tokens and disables stale editor controls until reload. Never merge simultaneous edits silently."
  },
  "units": {
    "base": "1rem = 16px at default browser settings. Do not fix the root font size.",
    "use": "Prefer rem for typography, spacing and control dimensions. Hairline borders and viewport thresholds may use px. Both equivalents appear in Markdown. SVG strokes use viewBox units. Ratios, percentages, columns, timing and weights are unitless or retain their own units.",
    "native": "Web CSS px/rem are not native dp/sp. A native adapter must map semantic roles, support text scaling and test device density. Native rendering is not shipped by this web library."
  },
  "acceptance": [
    "Compare page, applied tokens, durable record, Machine View and exported instructions.",
    "Test valid, unfinished, invalid, missing, malformed, legacy and future records. Exercise storage failure, reset, reload and another tab.",
    "Test 320, 375, 768, 1024 and 1440px widths, 200% zoom, text-spacing overrides, RTL and long/localized labels.",
    "Use keyboard and screen reader. Confirm focus return, names, values, error associations and status announcements.",
    "Verify actual rendered text/surface pairs, forced colors, reduced motion, print and exported recipes in a recipient fixture. Source or DOM checks alone are not rendered acceptance."
  ],
  "layers": {
    "content": 0,
    "sticky": 20,
    "popover": 40,
    "scrim": 60,
    "dialog": 70,
    "toast": 80,
    "tooltip": 90,
    "rules": "Each overlay gets an explicit owner and close/focus-return path. Portal menus out of clipped scroll containers. Nested dialogs stack one scrim per modal owner. Escape closes the top dismissible layer. Tooltips never block actions. Test collision and zoom; do not infer stacking order from shadow size."
  },
  "section": {
    "title": "Colors",
    "rules": {
      "User and task flow": "Set brand, surfaces, statuses and neutrals independently. Inspect light/dark applied pairs, save valid choices, then copy the current configuration. Enabling dark editing is durable and does not couple Danger to Brand.",
      "Roles and states": "Brand communicates selection/actions; Success, Warning, Danger and Info communicate severity. Charts use a separate series palette. Foreground is selected per actual primary-button state. Status text uses an accessible semantic foreground against its real surface, not an untested raw hue.",
      "Accessible pairs": "Normal text requires 4.5:1 and large text 3:1; essential non-text boundaries require 3:1. Decorative lines and disabled controls have different scope. Calculate alpha-composited backgrounds first. Recheck current Typography colors after surface edits. A passing swatch is not certification of every component.",
      "Derivation and hierarchy": "Resolver version 1 derives hover by mixing brand with 25% white and pressed by mixing with 18% black; tint is 8% brand and glow 35%. Semantic readable foregrounds move toward black or white until the actual surface pair passes 4.5:1. Highly customized surfaces can collapse the page/panel/raised hierarchy: use a neutral border or restore separation deliberately; luminance order alone is not a universal hierarchy guarantee.",
      "Compatibility mapping": "Existing red-* tokens represent brand/action; danger-* represent severity. type-*-color represents text by role; graphite-950/900/850 represents page/panel/raised surfaces. Prefer the exported color-brand, color-action, color-text and color-surface aliases for new consumers. Compatibility names retain their existing meaning and are not a license to use a brand hue for error feedback.",
      "Examples and recovery": "A red brand with a red Danger is two independent choices. White text on default red can fail; use the resolved on-brand foreground. For a tinted Tag calculate status text versus its tinted surface. Use label/icon/message in addition to hue. Keep full hex validation and the last valid value while typing.",
      "Responsive and interaction": "Picker numeric controls remain keyboard accessible. Escape returns focus to the trigger; outside dismissal does not trap focus. At narrow/zoomed widths keep fields and popup inside the content viewport. Use forced-color system colors rather than relying on tinted fills.",
      "Agent and export": "Use semantic aliases and resolved light/dark values. Never infer status from brand hue or declare AA from a color alone. Export the pair, opacity, state, surface and verification result.",
      "Save and edit": "Selections preview immediately. Save foundation commits valid settings in this browser and locks the editor. Select Edit foundation to revise saved settings; Cancel retains the saved settings. Storage failure keeps the draft editable."
    }
  }
}