Design system
Every token, type step, contrast pair, and tactile component behind rohanrajpal.com. Open to inspect, test live in Day or Night mode, or copy straight into your project.
01 · Point of view
Four rules, zero fluff
- 01
Arcade tactility, zero fog
Hard 2px and 3px borders with offset block shadows that physically depress on press. No decorative glass blur or soft drop-shadow haze on page UI.
- 02
Hyperlegible reading first
Pixelify Sans gives headings and controls personality, while Atkinson Hyperlegible Next holds long-form essays at a disciplined 68ch measure.
- 03
Dual polarity: Day paper, Night city
Every neutral carries a subtle indigo tint (zero raw #000 or pure #fff). Every semantic text and accent pair is verified for WCAG AA or AAA contrast in both themes.
- 04
One source of truth from prose to 3D
The same levels data and accent palette power the plain-HTML timeline, the 2D Pixel Run canvas, and the lazy-loaded WebGL2 + Rust/WASM Sunset Bay city.
02 · Color tokens
OKLCH Dual Polarity
Every neutral carries an indigo tint so surfaces feel intentional instead of sterile. Click any swatch to copy its value.
Surfaces & Neutrals
Semantic Accents
03 · Accessibility
Live WCAG Contrast Matrix
Computed directly from the active Day paper hex values. Toggle the theme above to watch every ratio recalculate live.
Page headings & base canvas
Card copy & buttons
Metadata & subtitles
Prose & nav links
Active buttons & badges
Button hover state
Open World 3D active tab
Technical labels & WASM tags
Pass states & confirmations
04 · Typography
Three voices, 1.25× Major Third scale
var(--font-pixel)Build AI agents that ship fast and stay human.
Display headings, navigation, buttons, chapter numbers, and game HUD.
var(--font-sans)Build AI agents that ship fast and stay human.
Long-form essays, summaries, and UI body copy. Designed by Braille Institute for unambiguous letterforms.
var(--font-mono)Build AI agents that ship fast and stay human.
Code blocks, CSS custom properties, hex/OKLCH values, and CLI output.
Rohan Rajpal
Hero display wordmark
Design system
Page title (desktop)
Ship fast, stay small
Article H1 / mobile hero
The story so far
Major section heading
Spur: scaling up
Chapter title / prose H2
AI agents for WhatsApp and Instagram.
Lead deck / card heading
Built with hard 3px borders, offset shadows, and zero visual fluff.
Body copy (reading measure 68ch)
Stop 10, 2026, now · 52 milestones
Buttons, chips, metadata, captions
WASM · OKLCH · WCAG AAA
Badges, HUD telemetry, token readouts
05 · Space & Elevation
4px Grid & Tactile Hard Shadows
Spacing rhythm
Reading measure caps at 68ch; page wrapper caps at 72rem.
space-14px · Tight icon gaps, badge paddingspace-28px · Chip gaps, inline controlsspace-312px · List item rhythm, button paddingspace-416px · Mobile gutter, card inner spacingspace-624px · Grid gutters, card generous paddingspace-832px · Desktop wrap gutter, header/deck separationspace-1248px · Section vertical cadencespace-1664px · Major chapter breaks and footer separation
Hard-shadow ladder
Zero blur. Interactive controls snap into their shadow in 60ms.
Flat / Pressed
Active depressed button state after translate(3px, 3px).
--shadow-noneSmall (2px)
Compact chips, badges, and stop jump pills.
--shadow-smMedium (3px)
Buttons, mode tabs, and framed thumbnails.
--shadow-mdLarge (5px)
Primary cards, game frame, and article cover art.
--shadow-lgHover Lift (7px)
Interactive cards on pointer hover after translate(-2px, -2px).
--shadow-hover06 · Components
Interactive Component Playground
Rendered with the exact production classes used on the home page, blog, about page, and game chrome. Press, hover, and toggle them.
Buttons
.px-btn · .px-btn-primary · .px-btn-accent · .px-btn-smFilter chips & badges
.px-chip · .px-badgeChapter stops
.px-stopShared across Pixel Run, Open World 3D, and the Story timeline.
Mode tabs & tactile card
Hover or press me
Interactive surface
Lifts by 2px on hover (--shadow-hover) and depresses cleanly on click.
Photo frame & callout
.px-frame
3px border, 3px shadow, explicit focal-point crop via object-position.
Full-border framed callout surface. Replaces decorative side-stripe borders across every essay and documentation block.
07 · Web-to-Game Bridge
Shared palette across 2D, 3D, and Prose
One levels.ts array drives the HTML story cards, the 2D side-scroller, and the 10 neon districts of Sunset Bay 3D.
10 District accents
Stop 1
Kernel Suburbs
Stop 2
Campus Quarter
Stop 3
Open-Source Plaza
Stop 4
Skyway Coast
Stop 5
Civic Arena
Stop 6
Expressway Strip
Stop 7
Launch Boulevard
Stop 8
Summit Promenade
Stop 9
Auditorium Row
Stop 10
Spur HQ Downtown
5 Rohan sprite eras
08 · Export
Use these tokens anywhere
/* rohanrajpal.com Design Tokens (OKLCH, WCAG AA/AAA verified) */
:root {
--paper: oklch(96.7% 0.010 267); /* #f1f4fb */
--paper-2: oklch(99.4% 0.003 265); /* #fcfdff */
--paper-3: oklch(93.6% 0.017 264); /* #e4eaf6 */
--ink: oklch(23.3% 0.047 284); /* #1b1a33 */
--muted: oklch(46.8% 0.057 279); /* #53577a */
--line: oklch(23.3% 0.047 284); /* #1b1a33 */
--hair: oklch(87.6% 0.026 269); /* #cfd6e8 */
--link: oklch(51.2% 0.237 265); /* #1f51eb */
--coin: oklch(85.9% 0.158 86); /* #ffc83d */
--coin-soft: oklch(95.5% 0.065 93); /* #fff0bf */
--sunset: oklch(57.0% 0.206 12); /* #d42655 */
--cyan: oklch(53.0% 0.090 212); /* #0a798a */
--mint: oklch(51.4% 0.125 153); /* #167b42 */
--ink-dark: oklch(23.3% 0.047 284); /* #1b1a33 */
--sunset-ink: oklch(99.4% 0.003 265); /* #fcfdff */
--border-thin: 2px;
--border-ui: 3px;
--shadow-sm: 2px 2px 0 var(--line);
--shadow-md: 3px 3px 0 var(--line);
--shadow-lg: 5px 5px 0 var(--line);
--shadow-hover: 7px 7px 0 var(--line);
--ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='dark'] {
--paper: oklch(18.6% 0.044 279); /* #0f1026 */
--paper-2: oklch(23.0% 0.059 278); /* #171938 */
--paper-3: oklch(27.7% 0.073 277); /* #20234b */
--ink: oklch(95.8% 0.020 280); /* #eef0ff */
--muted: oklch(74.7% 0.055 279); /* #a5aad0 */
--line: oklch(57.3% 0.091 279); /* #6d72ad */
--hair: oklch(32.1% 0.076 277); /* #2a2e59 */
--link: oklch(76.4% 0.120 266); /* #8eb0ff */
--coin: oklch(88.1% 0.142 88); /* #ffd25e */
--coin-soft: oklch(31.8% 0.045 94); /* #3a3216 */
--sunset: oklch(70.0% 0.199 8); /* #ff5c86 */
--cyan: oklch(83.8% 0.132 197); /* #38e4e8 */
--mint: oklch(79.6% 0.174 154); /* #49dc86 */
--sunset-ink: oklch(23.3% 0.047 284); /* #1b1a33 */
} Machine-readable JSON endpoint: /design/tokens.json