Skip to content
v2.0 OKLCH WCAG AA/AAA

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.

tokens.json

01 · Point of view

Four rules, zero fluff

  1. 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.

  2. 02

    Hyperlegible reading first

    Pixelify Sans gives headings and controls personality, while Atkinson Hyperlegible Next holds long-form essays at a disciplined 68ch measure.

  3. 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.

  4. 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.

Aa
15.4:1 AAA
Ink on Paper AAA

Page headings & base canvas

Aa
16.6:1 AAA
Ink on Paper Raised AAA

Card copy & buttons

Aa
6.9:1 AA
Muted on Paper Raised AA

Metadata & subtitles

Aa
6.0:1 AA
Link on Paper Raised AA

Prose & nav links

Aa
10.9:1 AAA
Dark Ink on Coin Gold AAA

Active buttons & badges

Aa
14.9:1 AAA
Ink on Coin Wash AAA

Button hover state

Aa
4.9:1 AA
Text on Sunset Coral AA

Open World 3D active tab

Aa
5.0:1 AA
Cyan on Paper Raised AA

Technical labels & WASM tags

Aa
5.2:1 AA
Mint on Paper Raised AA

Pass states & confirmations

04 · Typography

Three voices, 1.25× Major Third scale

Pixelify Sans Variable var(--font-pixel)

Build AI agents that ship fast and stay human.

Display headings, navigation, buttons, chapter numbers, and game HUD.

Atkinson Hyperlegible Next Variable 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.

JetBrains Mono Variable 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

--text-5xl 68.7px lh 1.02

Design system

Page title (desktop)

--text-4xl 54.9px lh 1.05

Ship fast, stay small

Article H1 / mobile hero

--text-3xl 44.0px lh 1.08

The story so far

Major section heading

--text-2xl 35.2px lh 1.12

Spur: scaling up

Chapter title / prose H2

--text-xl 28.1px lh 1.15

AI agents for WhatsApp and Instagram.

Lead deck / card heading

--text-lg 22.5px lh 1.35

Built with hard 3px borders, offset shadows, and zero visual fluff.

Body copy (reading measure 68ch)

--text-base 18.0px lh 1.60

Stop 10, 2026, now · 52 milestones

Buttons, chips, metadata, captions

--text-sm 14.4px lh 1.45

WASM · OKLCH · WCAG AAA

Badges, HUD telemetry, token readouts

--text-xs 12.8px lh 1.40

05 · Space & Elevation

4px Grid & Tactile Hard Shadows

Spacing rhythm

Reading measure caps at 68ch; page wrapper caps at 72rem.

  1. space-1
    4px · Tight icon gaps, badge padding
  2. space-2
    8px · Chip gaps, inline controls
  3. space-3
    12px · List item rhythm, button padding
  4. space-4
    16px · Mobile gutter, card inner spacing
  5. space-6
    24px · Grid gutters, card generous padding
  6. space-8
    32px · Desktop wrap gutter, header/deck separation
  7. space-12
    48px · Section vertical cadence
  8. space-16
    64px · 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-none

Small (2px)

Compact chips, badges, and stop jump pills.

--shadow-sm

Medium (3px)

Buttons, mode tabs, and framed thumbnails.

--shadow-md

Large (5px)

Primary cards, game frame, and article cover art.

--shadow-lg

Hover Lift (7px)

Interactive cards on pointer hover after translate(-2px, -2px).

--shadow-hover

06 · 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-sm

Filter chips & badges

.px-chip · .px-badge
Default Now WASM 3D MCP · 40+ tools AAA 16.6:1

Chapter stops

.px-stop

Shared 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

Rohan speaking on stage in front of the Meta logo

.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

2019: curls, no glasses2021: glasses on2022: peak curls2025: beard seasonAug 2025: back from Europe, the stache

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