Back to Landing|
2TOX Design System
System Spec•Living Tokens•Zero Drift

Design system

This site's design system, running live. Every color, size, and curve below is read directly from the CSS the site ships, so this page can't drift from it.

Architecture Spec

The Four Architecture Layers & Audit Gates

Replicating the strict 4-layer taxonomy from mariusz.cc: prose specifications, token values, accessible primitives, and CI enforcement gates.

Layer 1 • SpecProse Contracts
specs/**/*.md

The prose rules. What tokens are called, what constraints they satisfy, and why they exist in the domain.

Layer 2 • TokensOKLCH & CSS Variables
src/styles/tokens.css

The values. Primitives that define the palette and scale, and semantics that assign them purpose.

Layer 3 • ComponentsReact & Radix
src/components/ui/*.tsx

The primitives. Composable, accessible UI units built strictly from tokens with zero hardcoded ad-hoc styles.

Layer 4 • GatesAutomated CI Audits
scripts/*-audit.*

The enforcement. Automated linters that run in CI to prevent token drift and contrast regression.

CI Automated Enforcement Gates (Audit Scripts)
Exit Code: 0 (Passing)
BASH
pnpm audit:tokens
# Scans AST for hardcoded hex/px values
# Invariant: 0 violations found across 42 files
BASH
pnpm audit:contrast
# Validates WCAG AAA 7:1 across 8 surfaces
# Invariant: 100% compliant on dark & light
BASH
pnpm audit:surfaces
# Checks surface ladder monotonic lightness
# Delta L = +0.05 step progression
02 • Palette & Surfaces

One Ground & The 8-Step Surface Ladder

Ground is Void Slate (#141618), not pitch black. Elevation is represented by an 8-step monotonic lightness ladder in OKLCH, guaranteeing predictable contrast and depth.

Monotonic Surface Ladder (OKLCH Lightness Progression)

Surface 1 (Void Ground)14.2:1 AAA
#141618
oklch(0.18 0.025 240)

Body background, full-bleed canvas

Surface 2 (Cards & Modules)12.8:1 AAA
#181A1D
oklch(0.23 0.028 240)

Feature panels, architecture cards

Surface 3 (Popovers & Drawers)10.9:1 AAA
#1E2226
oklch(0.28 0.032 240)

Flyout menus, inspector panels

Surface 4 (Recessed Chrome)9.3:1 AAA
#24282D
oklch(0.33 0.035 240)

Code snippets, terminal backdrops

Surface 5 (Dialogs & Sheets)7.9:1 AAA
#2A2F35
oklch(0.38 0.038 240)

Studio modals, authentication dialogs

Surface 6 (Nested Menus)6.5:1 AA
#31373E
oklch(0.43 0.042 240)

Contextual actions, active selectors

Surface 7 (Tooltips & Badges)5.4:1 AA
#394048
oklch(0.48 0.045 240)

Hover tooltips, telemetry tags

Surface 8 (Active Focus Rings)4.6:1 AA
#414953
oklch(0.53 0.048 240)

Focus states, active stroke highlights

Semantic Color Roles

Brand Primary (Signature Orange)
--color-brand-primary
Primary calls-to-action, key accents, focus rings, hover indicators
#FF6D29
Brand Secondary (Sovereignty Blue)
--color-brand-blue
EU CRA compliance signals, cryptographic verified badges
#0151F7
Page Foreground (Pure White)
--color-foreground
Primary typography and high-contrast structural text
#FFFFFF
Muted Foreground (Slate 400)
--color-muted-foreground
Secondary labels, timestamps, parameter keys, annotations
#9CA3AF
Border Hairline
--color-border
Hairline boundaries strictly replacing diffuse drop-shadows
rgba(255, 255, 255, 0.12)
Status Validated (Emerald)
--color-status-success
BSI C5 passing checks, zero-drift AST invariants, 100% uptime
#10B981
Status Critical (Vermillion Red)
--color-status-destructive
Security boundary alerts, CRA CVE violations, invariant breach
#EF4444
03 • Typography Spec

Typography Budget & Minor Third Scale

Budget: 2 Families (Outfit geometric & Geist Mono telemetry), 3 Weights (400, 500, 700), Minor Third ratio (1.2), snapped to 8px baseline.

Display 90060px (3.75rem)

Deterministic software systems.

Hero punchline
Heading 148px (3rem)

Zero architectural drift in AI systems.

Page headers
Heading 232px (2rem)

EU Cyber Resilience Act CRA 2024 compliance.

Section master titles
Heading 320px (1.25rem)

Modular adaptive intelligence governance.

Feature cards
Body Large16px (1rem)

Engineering high-throughput systems with strict formal verification.

Lead text
Mono Code12px (0.75rem)

APA_GUARDRAIL_ASSERT(ast_invariant == GUARANTEED)

Telemetry & code
04 • Layout Topology

8px Baseline, 24px Gutter & 12-Column Grid

Fixed 8px baseline snap (--baseline: 8px), 24px gutters, 72px column modules, and responsive breakpoint collapses.

Baseline Grid8px

All padding, gaps, and line-heights snap to multiples of 8px.

Gutter Spacing24px

Strict 24px column gutters across all viewports > 768px.

Max Page Width1440px

Sovereign layout container centered with horizontal edge padding.

Keyboard ShortcutShift + G

Press anywhere on the page to toggle the diagnostic grid overlay.

05 • UI Primitives

Deterministic Component Sandbox

Button variants (primary, default, outline, secondary, ghost, link, destructive, hero, glass), input fields, and status badges.

Button Variant Taxonomy

Regulatory & Status Badges

BSI C5 VerifiedEU CRA 2024 CompliantDeterministic InvariantGDPR Air-Gapped
06 • Elevation & Radii

Surfaces, Elevation Levels & Radius Hierarchy

Elevation without muddy drop-shadows. Elevation is achieved via monotonic lightness increase and 1px crisp borders. Radiuses strictly enforce the industrial 0px invariant.

Elevation 0 (Base)
#141618

Page substrate

Elevation 1 (Card)
#181A1D

Standard cards

Elevation 2 (Popover)
#1E2226

Floating dropdowns

Elevation 3 (Dialog)
#2A2F35

Modal overlays

07 • Motion Tokens

Easing Curves & Animation Test Suite

Four standard easing curves: out-quart, out-quint, out-expo, and drawer.

out-quartModals & cards
cubic-bezier(0.25, 1, 0.5, 1)
out-quintPage transitions
cubic-bezier(0.22, 1, 0.36, 1)
out-expoSnap menus
cubic-bezier(0.16, 1, 0.3, 1)
drawerBottom sheets
cubic-bezier(0.32, 0.72, 0, 1)
08 • Interactive Canvas Shader

CursorGrid Background Shader Studio

The interactive cursor shader reverse-engineered from work.mariusz.cc/design-system. Move your mouse or click anywhere on this page to trigger radial shockwave pulses.

Real-Time Shader Parameter Matrix
Highlight Mode:Outline Only (No Fill)
Noise Texture Layer:Disabled
Composite Blend Mode:source-over
Cell Size (shrink down):20px
Max Threshold (Doubled):1.00x
Fade Duration:480ms
Influence Radius:130px
TSX
import CursorGridCanvas from "@/components/landing/cursor-grid-canvas"

// Embedded in 2TOX Footer & Hero:
<CursorGridCanvas
  mode="dark-footer"
  cellSize={20}
  fillMode="outline"
  noiseTexture={false}
  blendMode="source-over"
  maxOpacity={1}
  fadeDuration={480}
  clickPulse={true}
/>