Aura Design System

Color Rules

Aura uses a 12-step color scale for both `accent` and `gray` scales. Each step has specific use cases.

Color Rules

Installation

pnpm dlx shadcn@latest add @aura/rule-fundations-colors

12-Step Scale System

Aura uses a 12-step color scale for both accent and gray scales. Each step has specific use cases.

Scale Use Cases

StepUse CaseExamples
1-2App backgroundsMain app background, card background, sidebar, canvas area
3UI element background (normal)Component default state
4UI element background (hover)Component hover state
5UI element background (active/selected)Pressed or selected components
6Subtle bordersNon-interactive borders, separators, sidebars, headers
7UI element bordersInteractive component borders
8Strong borders & focus ringsInteractive component borders, focus rings
9Solid backgroundsPrimary brand color, headers, overlays, accent borders
10Hovered solid backgroundsHover state for step 9 backgrounds
11Low-contrast textSecondary text, muted content
12High-contrast textPrimary text, headings

Color Naming

  • MUST: Use --accent-{step} for accent colors (e.g., --accent-9 for primary brand color).
  • MUST: Use --gray-{step} for neutral colors (e.g., --gray-1 for app background).
  • MUST: Use --accent-a{step} or --gray-a{step} for alpha variants.
  • MUST: Use semantic tokens when available: --primary, --primary-foreground, --accent-surface, --accent-contrast, etc.

Implementation Rules

  • MUST: Steps 1-2 for app and subtle component backgrounds.
  • MUST: Steps 3-5 for interactive component backgrounds (normal, hover, active).
  • MUST: Steps 6-8 for borders (subtle, interactive, focus rings).
  • MUST: Steps 9-10 for solid backgrounds (normal, hover).
  • MUST: Steps 11-12 for text (low-contrast, high-contrast).
  • MUST: Steps 11-12 guarantee Lc 60 and Lc 90 APCA contrast on step 2 backgrounds.
  • SHOULD: Use step 3 for hover state if component has transparent default background.
  • SHOULD: Map --primary to --accent-9 for primary brand color.