Foundations

Design Tokens

Prism's foundations are the raw design decisions — colors, type, spacing — encoded as tokens that flow through every component.

Color

Prism uses a structured color palette: a shared neutral base, semantic colors, and three product accent palettes.

Brand

Primary#6C63FF
Primary Dark#4F46E5
Primary Light#8B85FF
Accent#00D4AA
Accent Warm#F5A623

Neutral Palette

Gray 50#F8F9FC
Gray 100#F1F5F9
Gray 200#E5E7EB
Gray 500#9CA3AF
Gray 700#4B5563
Gray 900#0F1B2D

Semantic

Success#22C55E
Danger#EF4444
Warning#F59E0B
Info#3B82F6

Product Palettes

SparkRamp#E8572A
SparkRamp Light#F5A623
StreamOps#2A6BE8
StreamOps Accent#00D4AA
ClarityMap#7B2FD4
ClarityMap Accent#00E5FF
Accessibility

All text/background color combinations in Prism meet WCAG AA contrast ratio (4.5:1 for normal text, 3:1 for large text). Use the semantic surface tokens for accessible surfaces automatically.

Typography

Prism uses Inter as the primary sans-serif and Roboto Mono for code. The scale follows a modular 1.25× ratio.

Display
52px / 900 / -4%
Prism
H1
36px / 800 / -3%
Page Title
H2
24px / 700 / -2%
Section Title
H3
18px / 700 / -1%
Subsection
Body Large
17px / 400 / 0
The quick brown fox jumps over the lazy dog
Body
15px / 400 / 0
The quick brown fox jumps over the lazy dog
Small
13px / 400 / 0
The quick brown fox jumps over the lazy dog
Label / Caption
11px / 600 / +8%
Label Text
Code
13px / Mono / 0
const prism = true;

Spacing

Prism uses a 4px base unit. All spacing values are multiples of 4.

space-1
4px
space-2
8px
space-3
12px
space-4
16px
space-5
20px
space-6
24px
space-8
32px
space-10
40px
space-12
48px
space-16
64px
space-20
80px
space-24
96px

Motion

Motion in Prism is purposeful — used to communicate state changes and guide attention, never decorative.

Token Duration Easing Use
duration-fast 100ms ease-out Hover states, small opacity changes
duration-base 200ms ease Button press, toggle, color transitions
duration-slow 350ms ease-in-out Modal open/close, slide-in panels
duration-slower 500ms cubic-bezier(0.34,1.56,0.64,1) Spring entrance animations
duration-progress 400ms ease Progress bars, loading indicators
Reduced Motion

Always respect prefers-reduced-motion. Wrap non-essential transitions in a media query to disable animations for users who request it.

Elevation

Shadows communicate depth. Prism uses three levels of elevation.

Elevation 1
0 1px 3px rgba(0,0,0,0.06)
Elevation 2
0 4px 16px rgba(0,0,0,0.08)
Elevation 3
0 8px 32px rgba(0,0,0,0.12)

Grid & Layout

Prism uses a 12-column grid with consistent gutters at each breakpoint.

Breakpoint Min Width Columns Gutter Margin
Mobile 0px 4 16px 16px
Tablet 768px 8 24px 24px
Desktop 1024px 12 24px 32px
Wide 1280px 12 32px 48px