OLED-dark browser game portal with bento discovery grids, instant-play iframe wrapper, theater/fullscreen bar, and multiplayer lobby HUD.
npx uikits-md@latest add blitz --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-blitz.
Launch instant-play browser arenas with zero-latency lobbies. Crisp hierarchy with intentional whitespace and zero decorative noise.
Install with the CLI, shadcn, an AI agent prompt, MCP, or download the ZIP directly.
One command adds the full design system, motion rules, and React templates to your project and coding agents.
npx uikits-md@latest add blitz --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-blitz.
You are building production browser gaming portals, instant-play HTML5/WebGL arcades, tournament hubs, and multiplayer lobby interfaces with the Blitz — Browser Game Portal UI Skill Pack (tokens/ + templates/ + lint.json + governance/eval specs). Pair with registry/backbone/ (uikit-backbone) whenever an application needs extended form primitives or multi-route skeletons beyond the 7 Blitz starter templates.
ANTI-VIBECODE MANDATE: Never treat this pack as a loose palette suggestion or build flat, borderless SaaS cards for games. Apply the OLED midnight arcade canvas (#0f1117 → #17191f → #1c2233) with full [data-theme="light"] / .light parity, translucent glass tiles, 285deg studio gradients (--bz-grad-*), electric cyan (#00e5ff) + acid lime (#c7ff5b) + electric violet (#6842ff) accents, 12px (0.75rem) tactile 3D controls, 16px (1rem) squircle game tiles, GPU-composited portal motion, keyboard shortcuts, and verified real artwork automatically on the very first pass. The user must NEVER have to follow up with *"add animations"*, *"fix light mode"*, *"make it responsive"*, *"wire up keyboard controls"*, or *"replace placeholder boxes"*.
Before rendering a play stage, overlay HUD, or featured lobby section, align the interface grammar with the active game genre:
| Game Genre | HUD Presence & Placement | Color & Surface Grammar | Button & Typography Style |
|---|---|---|---|
| Action / .IO Shooter | Peripheral corners: Minimap radar, HP/Shield bars, Kill-feed, Ping | OLED dark (#0f1117), Electric Cyan (#00e5ff), Warning Rose (#f43f5e) | Crisp 12px tactical controls, uppercase JetBrains Mono telemetry (tabular-nums) |
| Casual / Puzzle | Minimal top corners: Moves/Timer, Score, Streak multiplier | Jewel 285deg studio gradients (--bz-grad-teal / --bz-grad-green), Acid Lime (#c7ff5b) | Tactile 3D pill & squircle triggers (.bz-btn-3d / .bz-btn-lime with active:translate-y-[3px]) |
| RPG / Strategy | Persistent workbench: Top resource bar, bottom 4–6 slot ability deck | Obsidian-arcane (#17191f), Gold (#fbbf24), Electric Violet (#6842ff) | Framed 16px cards with rarity badges (EPIC, LEGENDARY), crisp stat matrices |
| Racing / Arcade | Speedometer gauge, Nitro boost bar, Lap timer, POS 1/8 rank badge | Midnight (#0f1117), Electric Cyan (#00e5ff), Acid Lime (#c7ff5b) | Dynamic Space Grotesk display headings, tabular-nums millisecond timers |
Always load DESIGN.md, tokens.css, and lint.json first, then read the exact companion specifications and drop-in templates for the surface you are building:
| User Task / Surface | Required Specification Files | Drop-In Templates (templates/*.tsx) |
|---|---|---|
| Game Portal / Discovery Landing | DESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, ACCESSIBILITY.md, tokens.css | templates/GamePortalShell.tsx, templates/ArcadeGameTileGrid.tsx, templates/ScrollReveal.tsx, templates/StatusBadge.tsx |
| Instant-Play 16:9 Stage & Theater | DESIGN.md, MOTION.md, APP_PATTERNS.md (§9), ACCESSIBILITY.md, tokens.css | templates/GamePortalShell.tsx, templates/ArcadeGameTileGrid.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx |
| Multiplayer Lobby & Matchmaking | DESIGN.md, APP_PATTERNS.md (§3, §6, §9), DATA_VIZ.md, MOTION.md, tokens.css | templates/LobbyMatchmakingDrawer.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx |
| Leaderboards, Tournaments & Telemetry | DESIGN.md, APP_PATTERNS.md (§3, §4), DATA_VIZ.md, CONTENT.md, tokens.css | templates/Sparkline.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Auth, Guest Upgrade & Profile Settings | DESIGN.md, APP_PATTERNS.md (§5, §7, §8, §10–§11), ACCESSIBILITY.md, tokens.css | templates/GamePortalShell.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx |
| Docs, Patch Notes & Creator Portal | DESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, ACCESSIBILITY.md, tokens.css | templates/GamePortalShell.tsx, templates/ScrollReveal.tsx, templates/StatusBadge.tsx |
| Token Export / Design-System Handoff | DESIGN.md, tokens.css, tokens/tokens.json, tokens/tailwind.css, tokens/figma-variables.json, lint.json | All 7 templates verified against semantic CSS variables |
| Any UI Task (Mandatory Final Gate) | CHECKLIST.md, EVALS.md, NOTICE.md, lint.json | Run npx uikits-md check blitz --dir . + tsc --noEmit |
Complete all four setup actions before authoring feature components:
src/app/layout.tsx:Load Space_Grotesk (--font-space-grotesk), Inter (--font-inter), and JetBrains_Mono (--font-jetbrains-mono) via next/font/google, attach all three CSS variable classes to <html>, and apply .bz-root (bg-[var(--background)] text-[var(--foreground)] font-sans antialiased) to <body>.
tokens.css and tokens/tailwind.css:Place tokens.css (and tokens/tailwind.css for Tailwind v4 @theme utility classes) immediately after @import "tailwindcss"; in src/app/globals.css. Verify both OLED Dark (:root, [data-theme="dark"], .dark) and Light ([data-theme="light"], .light) scopes load intact alongside .bz-btn-3d, .bz-btn-cyan, .bz-btn-lime, .bz-squircle-card, and .bz-reveal.
Copy templates/GamePortalShell.tsx, templates/ArcadeGameTileGrid.tsx, templates/LobbyMatchmakingDrawer.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx, and templates/Sparkline.tsx into src/components/uikit-blitz/ (npx uikits-md add blitz --platform all --out . installs them automatically).
npm install @phosphor-icons/react (strictly required icon library per lint.json).Every time you create or update UI under uikit-blitz, implement all 12 engineering contracts automatically:
Anchor default portal surfaces on #0f1117 (--background), #17191f (--surface/--card), and #1c2233 (--surface-2), with full high-contrast [data-theme="light"] / .light overrides (#f8fafc / #ffffff / #eef2ff). Bind every non-canvas React UI surface, text color, border, badge, and chart strictly to semantic CSS variables (var(--...)) with zero hardcoded #hex classes so theme toggling works seamlessly.
Always pair #0f1a00 dark ink over #c7ff5b acid lime (15.5:1 AAA) and #0b0d14 dark ink over #00e5ff electric cyan (13.3:1 AAA) in Dark mode, and semantic --highlight-foreground / --accent-foreground across Light mode. Style primary Play and Ready CTAs with .bz-btn-3d, .bz-btn-cyan, or .bz-btn-lime so solid 4px depth bases depress translateY(3px) on :active.
Never gate instant gameplay behind mandatory signup walls. Expose a 1-click Guest Play entry in the top utility bar and allow instant stage switching inside <ArcadeGameTileGrid /> (PLAY INSTANTLY ↔ STAGE LOADED) with live NOW READY feedback.
285deg Studio Gradients:Frame game tiles at 16px (--radius-lg) over --bz-grad-blue, --bz-grad-magenta, --bz-grad-teal, --bz-grad-gold, or --bz-grad-green, pairing genre filter pills (All, Action, Racing, Puzzle), live tabular-nums player counters, and 60FPS WEBGL CONTAINER latency readouts.
LobbyMatchmakingDrawer.tsx):Include 1-click room code copy (ORBIT-882 toggling "COPIED" for 1.8s with rejected-promise fallback), regional ping selectors (NA-East · 18ms, EU-West · 34ms, AP-South · 22ms), live squad readiness badges, and the full-width 3D READY UP & JOIN MATCH toggle.
Mount <GamePortalShell /> with a collapsible desktop sidebar (Discover, Trending, .IO Multiplayer, Tournaments, Favorites), aria-current="page" on active categories, sticky XP level progress (role="progressbar"), and an accessible mobile drawer (role="dialog", aria-modal="true", backdrop click, Tab focus trap, body scroll lock, Escape dismissal, and focus restoration).
⌘K / Ctrl+K) & Canvas Shortcut Isolation:Wire <CommandPalette /> to Cmd/Ctrl+K with ArrowUp/ArrowDown option traversal, Enter launch, nested Escape dismissal, and focus restoration—while yielding global hotkeys cleanly whenever a user focuses a text input or active WebGL game canvas.
Keep all chrome animations strictly compositor-only (transform, opacity) so WebGL/Canvas frames never stutter. Wrap below-the-fold sections and discovery rows in <ScrollReveal delayMs={...}> (40ms–75ms stagger), wrap outer overflow-x-auto carousels instead of individual right-hand tiles, pause offscreen loops via [data-offscreen="true"], and honor prefers-reduced-motion: reduce.
Every catalog, lobby, leaderboard, or match view MUST ship with styled Loading Skeletons (.bz-shimmer-track matching tile geometry), Empty States (e.g., Empty Favorites with primary Explore Trending CTA), Error Banners (var(--destructive) disconnect alert with Reconnect action), and Toast Notifications (role="status").
Every game cover, hero spotlight, arena banner, or player avatar MUST render a verified local <img> from /media/blitz-*.webp or /generated/blitz-*.webp (complete === true && naturalWidth > 0)—auto-invoking image-generator using ASSETS.md prompts when missing. Import all UI and HUD icons exclusively from @phosphor-icons/react.
Bind all concurrent-player sparklines, win-rate bars, and server latency charts to --chart-1..--chart-5 (DATA_VIZ.md), format every numeric readout in font-mono tabular-nums, and attach role="img" + descriptive aria-label (plus <table className="sr-only"> for multi-series charts).
Render <a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to games</a> as the first focusable element on every route, verify saved settings (audio mute, default server region, theme, theater auto-expand) update target portal views live, check zero overflow at 390×844 and 1440×900, and pass CHECKLIST.md + npx uikits-md check blitz --dir . + tsc --noEmit.
#c7ff5b acid lime or #00e5ff electric cyan fills—always pair #0f1a00 / #0b0d14 dark ink (or semantic --highlight-foreground / --accent-foreground).bg-slate-900, bg-zinc-950, bg-gray-900), generic purple-indigo SaaS gradients (bg-gradient-to-r from-indigo-500), rounded-3xl blobs, or flat borderless rectangles replacing 16px squircle tiles and tactile 3D CTAs.#hex utilities in reusable non-canvas TSX templates that break [data-theme="light"] / .light or [data-theme="dark"] / .dark switching.filter: blur() scroll reveals or continuous CPU-heavy chrome animations that steal frame budget from WebGL/Canvas game loops.placeholder.com, picsum.photos), bare "Image here" blocks, or unstyled browser alert() / confirm() prompts.naturalWidth === 0), or elements left stuck at opacity: 0.<svg> polygons or outline clipart. Physical subjects MUST use verified local .webp studio photography or 3D renders (fetchPriority="high" on Hero LCP, locked aspect-ratio for CLS === 0, calibrated gradient scrims for WCAG AA/AAA text legibility, zero baked-in text or logos).inset 0 1px 0 rgba(255,255,255,0.14) on dark cards), labeled coordinate grids, font-variant-numeric: tabular-nums, and opaque rounded label pills (rx="4") so SVG labels NEVER collide with edges or neighboring text. Never leave the visual half of a Hero Card empty with faint rings or mock loading spinners.01 → 02 → 03 <circle> SVGs, wavy dashed connectors, and repeated step boxes underneath. Render real miniaturized software UI in HTML/DOM: a crisp object/endpoint header, a focal tabular-nums figure with split metadata, a clickable proportional execution waterfall or timeline bar, and a flush hairline telemetry/signal matrix below with zero nested card-in-card clutter.tabular-nums value, an inline semantic delta (no redundant pill chrome), and a compact composition bar or sparkline grounded in real row data.compact/comfortable density toggle), sortable headers (aria-sort), multi-row selection with a custom color-scheme-safe checkbox and contextual bulk-action bar, multi-layer cells (primary label + mono ID + sub-meta), inline micro-meters for numeric scores, right-aligned tabular-nums values, hover-revealed quick actions, and @container-responsive column collapse with zero duplicate mobile status badges on desktop.<svg><rect><text> boxes with tiny unreadable SVG text or diagonal dashed lines slicing through labels. Structure graphs as tiered HTML/DOM interactive node cards (>=12.5px titles, >=11px mono IDs, semantic status LED, inline latency/throughput/weight micro-bar, upstream/downstream highlighting) with any connector lines confined strictly to dedicated column gutters.1440px), split-pane (700px), and mobile (390px) to verify zero clipped text, zero duplicate badges, zero dark-mode native checkbox bleed on light surfaces, and 0px horizontal overflow.