Color
Ratios are computed from the token values against --mw-bg (#0C0D0E) for dark and #FFFFFF for the docs light theme, unless a swatch names another background. Text tokens need AA (4.5:1). Border tokens that outline form controls need the 3:1 non-text rule; decorative surfaces and dividers are exempt.
Surfaces
- Background--mw-bg#0C0D0E1.00 · decorative
- Surface--mw-surface#16181A1.09 · decorative
- Surface raised--mw-surface-raised#1B1D1F1.15 · decorative
- Surface 3--mw-surface-3#24272A1.30 · decorative
- Surface 4--mw-surface-4#2B2F331.44 · decorative
- Hover--mw-surface-hover#33383C1.64 · decorative
- Flyout--mw-surface-flyout#1E21241.20 · decorative
- Code background--mw-code-bg#1012141.04 · decorative
Text
- Text bright--mw-text-bright#E8EAEC16.13 · AA ✓
- Text primary--mw-text-primary#C3C7CB11.44 · AA ✓
- Text secondary--mw-text-secondary#9AA0A67.37 · AA ✓
- Text disabled--mw-text-disabled#7C82885.01 · AA ✓
Accent
- Accent--mw-accent#35A5E57.10 · AA ✓
- Accent hover--mw-accent-hover#5CB8EE8.84 · AA ✓
- Accent pressed--mw-accent-pressed#2286C44.89 · AA ✓
- Accent 2 · info--mw-accent-2#8CC8F510.83 · AA ✓
- On accent--mw-on-accent
on --mw-accent#0C0D0E7.10 · AA ✓ - Selection--mw-selection#2E4A5E2.09 · decorative
Status
- Success--mw-success#58C46A8.82 · AA ✓
- Warning--mw-warning#D9A53F8.71 · AA ✓
- Error--mw-error#E05F5F5.53 · AA ✓
- Success text--mw-success-text
on --mw-success-tint#8FD49C6.46 · AA ✓ - Warning text--mw-warning-text
on --mw-warning-tint#E8D5AB8.33 · AA ✓ - Error text--mw-error-text
on --mw-error-tint#F0B0B06.97 · AA ✓ - Note tint--mw-note-tint#1E2A331.33 · decorative
Borders
- Border subtle--mw-border-subtle#24272A1.30 · decorative
- Border faint--mw-border-faint#1B1D1F1.15 · decorative
- Border--mw-border#3A3F441.83 · decorative
- Border strong--mw-border-strong#4A50562.38 · decorative
- Border control--mw-border-control
on --mw-surface#6B73783.69 · UI 3:1 ✓
Syntax
- Keyword--mw-syn-keyword
on --mw-code-bg#B08CF07.02 · AA ✓ - Type--mw-syn-type
on --mw-code-bg#4DBCD68.47 · AA ✓ - Function--mw-syn-fn
on --mw-code-bg#8CC8F510.45 · AA ✓ - String--mw-syn-string
on --mw-code-bg#7FC95E9.31 · AA ✓ - Number--mw-syn-number
on --mw-code-bg#E8C45511.14 · AA ✓ - Comment--mw-syn-comment
on --mw-code-bg#8A90965.82 · AA ✓
Docs · light theme
- Background--mw-bg#FFFFFF1.00 · decorative
- Surface--mw-surface#F4F5F61.09 · decorative
- Text bright--mw-text-bright#0C0D0E19.45 · AA ✓
- Text primary--mw-text-primary#1B1D1F16.91 · AA ✓
- Text secondary--mw-text-secondary#4A50568.16 · AA ✓
- Text disabled--mw-text-disabled#6B73784.83 · AA ✓
- Accent--mw-accent#1A6FA65.43 · AA ✓
- Accent hover--mw-accent-hover#155C8A7.17 · AA ✓
- Tip ink--mw-tip-ink
on --mw-tip-bg#1F6B2C5.91 · AA ✓ - Warning ink--mw-warn-ink
on --mw-warn-bg#704B007.11 · AA ✓ - Danger ink--mw-danger-ink
on --mw-danger-bg#A126266.55 · AA ✓ - Border control--mw-border-control#7C82883.88 · UI 3:1 ✓
Typography
Sora for display and headings, Geist for UI and body, Geist Mono for code. Display sizes use clamp() between the 390 and 1440 breakpoints.
Spacing, radii, shadows, motion
Spacing · 4px base
Radii
Radii stay tight, as in the editor. Controls use sm, cards use lg, media and windows use xl.
Shadows
- Motion · cubic-bezier(.2, .7, .2, 1)
- hover 100ms ease-out
- press 60ms
- expand 160ms cubic-out
- slide 200ms cubic-out
- reveal on scroll 480ms cubic-out
- parallax 0.25×
- prefers-reduced-motion → all 0ms, parallax off
Inputs
Cards
Hover: lift 4px, border to --mw-border-strong, shadow-2. 200ms cubic-out.
Code and callouts
The real CodeTabs and Callout components from the docs, highlighted with the same Shiki theme at build time.
// Spawn a light probe volume at runtime
auto* volume = world.Spawn<GIProbeVolume>();
volume->SetExtent({ 32.0f, 8.0f, 32.0f });
volume->SetLabel("Atrium");
if (!volume->IsValid()) { return; }// Sample the probe grid
float3 SampleIrradiance(float3 p, float3 n)
{
float3 uvw = (p - g_GridMin) / g_GridSize;
return g_Irradiance.SampleLevel(g_Linear, uvw, 0).rgb * 1.5f;
}Node Atrium
{
GIProbeVolume
{
Extent = [32.0, 8.0, 32.0]
Label = "Atrium"
}
}- keyword
- type
- function
- string
- number
- comment
CSS tokens
The full contents of styles/tokens.css, imported by app/globals.css. :root holds the dark theme used everywhere; html.light .docs-scope swaps the docs and admin into the light theme.
:root {
--mw-bg: #0C0D0E;
--mw-bg-blur: rgba(12, 13, 14, .82);
--mw-nav-blur: rgba(12, 13, 14, .78);
--mw-surface: #16181A;
--mw-surface-raised: #1B1D1F;
--mw-surface-3: #24272A;
--mw-surface-4: #2B2F33;
--mw-surface-hover: #33383C;
--mw-surface-flyout: #1E2124;
--mw-code-bg: #101214;
--mw-stripe-a: #131517;
--mw-stripe-b: #16181A;
--mw-text-bright: #E8EAEC;
--mw-text-primary: #C3C7CB;
--mw-text-secondary: #9AA0A6;
--mw-text-disabled: #7C8288;
--mw-accent: #35A5E5;
--mw-accent-hover: #5CB8EE;
--mw-accent-pressed: #2286C4;
--mw-accent-2: #8CC8F5;
--mw-on-accent: #0C0D0E;
--mw-selection: #2E4A5E;
--mw-dot: rgba(92, 184, 238, .3);
--mw-border-subtle: #24272A;
--mw-border-faint: #1B1D1F;
--mw-border: #3A3F44;
--mw-border-strong: #4A5056;
--mw-border-control: #6B7378;
--mw-success: #58C46A;
--mw-success-tint: #2C3F34;
--mw-success-text: #8FD49C;
--mw-warning: #D9A53F;
--mw-warning-tint: #3A362D;
--mw-warning-text: #E8D5AB;
--mw-error: #E05F5F;
--mw-error-tint: #3E2F31;
--mw-error-text: #F0B0B0;
--mw-note-tint: #1E2A33;
--mw-tip-ink: var(--mw-success-text);
--mw-tip-bg: var(--mw-success-tint);
--mw-tip-border: var(--mw-success);
--mw-warn-ink: var(--mw-warning-text);
--mw-warn-bg: var(--mw-warning-tint);
--mw-warn-border: var(--mw-warning);
--mw-danger-ink: var(--mw-error-text);
--mw-danger-bg: var(--mw-error-tint);
--mw-danger-border: var(--mw-error);
--mw-syn-keyword: #B08CF0;
--mw-syn-type: #4DBCD6;
--mw-syn-fn: #8CC8F5;
--mw-syn-string: #7FC95E;
--mw-syn-number: #E8C455;
--mw-syn-comment: #8A9096;
--mw-font-display: var(--font-sora), "Sora", system-ui, sans-serif;
--mw-font-body: var(--font-geist), "Geist", system-ui, sans-serif;
--mw-font-mono: var(--font-geist-mono), "Geist Mono", ui-monospace, monospace;
--mw-radius-sm: 3px;
--mw-radius-md: 4px;
--mw-radius-lg: 6px;
--mw-radius-xl: 7px;
--mw-radius-pill: 999px;
--mw-space-1: 4px;
--mw-space-2: 8px;
--mw-space-3: 12px;
--mw-space-4: 16px;
--mw-space-5: 24px;
--mw-space-6: 32px;
--mw-space-7: 48px;
--mw-space-8: 64px;
--mw-space-9: 96px;
--mw-space-10: 128px;
--mw-gutter: clamp(20px, 4vw, 48px);
--mw-max: 1440px;
--mw-nav-h: 64px;
--mw-shadow-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 6px 16px rgb(0 0 0 / .35);
--mw-shadow-2: 0 1px 0 rgb(255 255 255 / .05) inset, 0 18px 40px rgb(0 0 0 / .5);
--mw-shadow-window: 0 40px 100px rgba(0, 0, 0, .6);
--mw-focus-ring: 0 0 0 2px var(--mw-bg), 0 0 0 4px var(--mw-accent);
--mw-focus-ring-on-accent: 0 0 0 2px var(--mw-bg), 0 0 0 4px var(--mw-text-bright);
--mw-ease-out: cubic-bezier(.2, .7, .2, 1);
--mw-dur-hover: 100ms;
--mw-dur-press: 60ms;
--mw-dur-expand: 160ms;
--mw-dur-slide: 200ms;
--mw-dur-reveal: 480ms;
color-scheme: dark;
}
html.light .docs-scope {
--mw-bg: #FFFFFF;
--mw-bg-blur: rgba(255, 255, 255, .86);
--mw-surface: #F4F5F6;
--mw-surface-raised: #ECEEF0;
--mw-surface-3: #E4E7EA;
--mw-surface-4: #D9DDE1;
--mw-surface-hover: #E4E7EA;
--mw-surface-flyout: #FFFFFF;
--mw-code-bg: #F4F5F6;
--mw-text-bright: #0C0D0E;
--mw-text-primary: #1B1D1F;
--mw-text-secondary: #4A5056;
--mw-text-disabled: #6B7378;
--mw-accent: #1A6FA6;
--mw-accent-hover: #155C8A;
--mw-accent-pressed: #124E75;
--mw-accent-2: #1A6FA6;
--mw-on-accent: #FFFFFF;
--mw-selection: #DCEBF5;
--mw-border-subtle: #E4E7EA;
--mw-border-faint: #ECEEF0;
--mw-border: #D0D4D8;
--mw-border-strong: #B4BABF;
--mw-border-control: #7C8288;
--mw-note-tint: #E8F3FA;
--mw-tip-ink: #1F6B2C;
--mw-tip-bg: #EAF6EC;
--mw-tip-border: #58C46A;
--mw-warn-ink: #704B00;
--mw-warn-bg: #FBF4E4;
--mw-warn-border: #D9A53F;
--mw-danger-ink: #A12626;
--mw-danger-bg: #FCEDED;
--mw-danger-border: #E05F5F;
--mw-syn-keyword: #6B3FC4;
--mw-syn-type: #0E6F82;
--mw-syn-fn: #1A6FA6;
--mw-syn-string: #2F7D32;
--mw-syn-number: #8A5A00;
--mw-syn-comment: #5E656B;
--mw-shadow-2: 0 18px 40px rgba(12, 13, 14, .14);
color-scheme: light;
}
Admin components
Same tokens as the site, but denser: 14px body, 32–36px controls, 6px card radii. Classes live in styles/admin-ui.css; components in components/admin. Everything below uses placeholder data and saves nothing.
Stat tiles
Status chips
Filter bar + data table
Sort by any header, select rows for bulk actions, and use the row actions to open the drawer or the confirm dialog.
| Actions | |||
|---|---|---|---|
| Placeholder post B/blog/placeholder-b/ | Draft | ||
| Placeholder post C/blog/placeholder-c/ | Scheduled | ||
| Placeholder post A/blog/placeholder-a/ | Published | ||
| Placeholder post D/blog/placeholder-d/ | Draft | ||
| Placeholder post E/blog/placeholder-e/ | Published |
Form section
Publishing
Slug, status and visibility. Placeholder values.
Markdown toolbar
## Placeholder heading Sample **body** text for the editor demo.
Dropzone + upload queue
- placeholder-overlay.png2.3 MB
- placeholder-cover.webp820 KBUploaded
- placeholder-loop.mp446 MBLarger than 20 MB
Crop dialog
Drag or use arrow keys to pan. Output 1792 × 1008 px at 16:9. Static preview.
Confirm dialog and drawer
Both trap focus, close on Escape or a backdrop click, and return focus to the button that opened them.
Toast
Bottom right, stacks up to 4, auto-dismisses after 3.5s (8s for errors). Errors use role="alert", the rest role="status".
Mowo Engine