Velvet Studio 2.0
Components Playground Design System Patterns Rust Docs
AREA 04 · DESIGN SYSTEM

Algorithmic Design Tokens with Zero CSS-in-JS

Color math, typography scale, and responsive spacing derived directly from semantic tokens with strict @layer priority.

COLOR ENGINE

OKLCH Relative Color Tokens & Palettes

Derive full WCAG AA/AAA-compliant semantic tokens from a single seed hue

Stepless OKLCH Color Wheel

Real-time token derivation across all surfaces
Stepless Hue Rotation (0° - 360°):
accent · oklch(0.42 0.12 25)light · 25°dark · oklch(0.74 0.10 25)
Select Semantic Seed Palette:
WCAG AA Normal: 4.8:1 (Pass ✓)WCAG AAA High: 7.2:1 (Pass ✓)Midnight Contrast: 12.8:1 (Pass ✓)

Theme Modes

Zero Flash of Unstyled Content
Instant base surface switching:
Color schemes use native light-dark() and CSS color-mix.
TYPOGRAPHY SCALE

Inter & JetBrains Mono Proportional Hierarchy

Strict optical sizing scale ensuring mathematical vertical rhythm and legibility

Display2.25rem (36px) · Line Height 1.2 · Optical Kerning -0.03em
Heading1.50rem (24px) · Line Height 1.3 · Weight 600
Lead1.15rem (18.4px) · Line Height 1.5 · Weight 400
Body0.95rem (15.2px) · Line Height 1.6 · Weight 400
Monospace0.85rem (13.6px) · JetBrains Mono · Tabular Numbers 1
SPACING & SURFACES

Spacing Units & Elevation Tokens

4px baseline grid tokens with four distinct surface elevation levels

Elevation Tokens

Surface Depth Levels
Surface::Flat (0px shadow)Surface::Elevated (4px shadow)Surface::Glass (Backdrop blur)Surface::Sunken (Inset shadow)

Spacing Scale

4px Multiplier System
--space-1: 0.25rem (4px)--space-2: 0.50rem (8px)--space-3: 0.75rem (12px)--space-4: 1.00rem (16px)--space-6: 1.50rem (24px)

Command Palette

PREVIEW VELVET 2.0

Select an item

Select or hover an item to inspect live route details, contracts, and schema bindings.

Route: /components
Latency: < 0.9 ms (SSR)
Contract: Pure Rust
↵ Open Esc Close

Keyboard Shortcuts

Command Palette / Search⌘K / Ctrl+K
Time-Travel Undo (Rollback)Ctrl+Z
Toggle Light / Dark ThemeMod+Shift+L
Cycle Layout ShellMod+Shift+F
Cycle Density ScaleMod+Shift+D
DevTools Drawer⌘I / Mod+I
High Contrast (WCAG AAA)Mod+Shift+C
Reduced MotionMod+Shift+M

Velvet DevTools

WASM Active
Schema, Acts & Autonomous MCP
POST /__act POST /__mcp GET /act.schema.json GET /openapi.json
HomeAct::Ping → island: count
AuthAct::SignIn → island: session-hint
Proc::UserRows → island: user-rows (q: text)
MCP Tools/List → endpoint: /__mcp (JSON-RPC 2.0)
Engine Telemetry & Allocations
0 Heap Allocs / span 0.1 ms Paint 12 800 M/s
Live Session Tape (Flight Recorder)
[0.00s] boot_catalog 12 pages, 16 routes verified
[0.02s] session_init WASM active, 0 heap allocs
Interactive Act Dispatcher
View Schema Ready
Active Island Inspector (DOM Morph Target)
No active islands on current page
Browser Self-Check (what YOUR browser runs)
waiting…
Autonomous MCP Tool Console
View Act Schema
Ready
Color Contrast & Accessibility
Text to Background 14.8:1 (AAA Pass ✓)

Settings

Språk / Language
Theme Mode
Design Style
Color Palette
Layout Shell
Density
Accessibility (WCAG AAA)