name:uikit-arena
description:Implements three-surface gaming console storefronts, midnight-navy theater hero showcases, cobalt-cyan hover-scale game tile rails, tactile haptic controller telemetry panels, bundle configurators, and subscription pass tiers using the Arena Console Store design system (W3C DTCG tokens, Tailwind v4 @theme, Figma variables, Dark & Light dual-mode parity, 5 compositor-only @keyframes, 7 TSX templates, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"arena"
version:"2.2.0"
category:"gaming-console"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/arena-hero.webp"
uikit-arena — Master Execution Protocol (v2.2.0)
You are building UI with the Arena — Console Store UI Skill Pack (tokens/ + templates/ + governance/eval specs). Pair with registry/backbone/ (uikit-backbone) for full component and page-recipe coverage while preserving Arena's unmistakable three-surface console theater identity.
THREE-SURFACE CONSOLE THEATER MANDATE: Never treat this pack as loose aesthetic inspiration. Craft alternating Midnight Navy (#0a0f1c) theater bands, Elevated Midnight / Crisp White showcase chapters, and Console Cobalt (#0070d1) spotlight/footer bands, paired with rounded 0.75rem game tiles that elevate with #38bdf8 electric cyan rings on hover/focus, pill-shaped cobalt CTAs (9999px), airy Space Grotesk display headings, Plus Jakarta Sans UI copy, JetBrains Mono tabular telemetry (4K · 120 Hz, 0.8 ms), and tactile haptic controller spec controls automatically on the very first pass.
1. Task-Based Read Routing
Always read DESIGN.md and tokens.css first, then load the companion specs and starter templates for your target surface:
2. Bootstrap Procedure (Step 0 Before Writing Components)
- 1.Register Fonts in
src/app/layout.tsx:
Load Plus_Jakarta_Sans (--font-plus-jakarta-sans, weights 400, 500, 600, 700), Space_Grotesk (--font-space-grotesk, weights 300, 400, 500, 600, 700), and JetBrains_Mono (--font-jetbrains-mono, weights 400, 500, 600) via next/font/google and attach all three CSS variable classes to <html>.
- 2.Import
tokens.css & Optional Tailwind v4 Bridge:
Import tokens.css (and optionally tokens/tailwind.css) right after @import "tailwindcss";. This registers :root / [data-theme="dark"] / .dark, [data-theme="light"] / .light, all --ar-* and semantic shadcn/Tailwind tokens, .ar-tile, .ar-kbd, .ar-reveal, and the compositor-only @keyframes suite.
- 3.Install All 7 Starter Primitives:
Install via npx uikits-md add arena --platform all --out . so ConsoleHubShell.tsx, GameTileCarouselRail.tsx, ControllerSpecPanel.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx are available immediately.
- 4.Peer Dependencies & Scope Boundaries:
- Peer dependencies:
react, react-dom, @phosphor-icons/react. - Do not deploy into runtimes that strip CSS custom properties (
var(--*)).
3. The 12-Point Automatic First-Pass Contract
Every implementation using uikit-arena MUST deliver all 12 behaviors on the first pass:
- 1.Three-Surface Console Cadence & Dual-Mode Parity: Alternate midnight theater bands (
#0a0f1c), elevated showcase surfaces (#131c31 dark / #ffffff light), and console cobalt spotlight chapters (#0070d1 dark / #005bb5 light). Bind every component to semantic CSS variables (var(--background), var(--surface), var(--card), var(--foreground), var(--primary), var(--accent), var(--border)) with zero hardcoded #hex values in TSX. - 2.Strict Contrast on Bright Cyan & Cobalt Controls: Primary cobalt
#0070d1 pills ALWAYS pair with crisp #ffffff ink (4.95:1 AA). Electric cyan #38bdf8 ALWAYS pairs with deep midnight #0a0f1c ink (8.93:1 AAA) whenever used as a filled button, badge, or active tab pill. - 3.Bespoke Studio Hardware Hero Media: Anchor hero showcases with verified local studio
.webp renders (/images/hero-esports.webp, fetchPriority="high", locked aspect-ratio: 16 / 9 for CLS === 0, contrast-safe gradient scrim). NEVER sketch controllers, consoles, or headsets with flat clipart <svg> polygons. - 4.Hover-Scale Cyan-Ring Game Tiles: Style game catalog cards with
.ar-tile (rounded-xl / 0.75rem, specular top catchlight, scale(1.015) + 2px #38bdf8 cyan ring on hover/focus) inside horizontally scrollable rails with explicit CaretLeft / CaretRight controls. - 5.Airy Theater Display + Tabular Telemetry Typography: Render hero
<h1> in Space Grotesk (clamp(34px, 4.6vw, 56px), weight 300–500, tracking -0.02em), body copy in Plus Jakarta Sans (15px, 1.55 line-height), and every frame rate (120 FPS), input latency (0.8 ms), storage footprint (96 GB), and regional price ($549, €579, ¥79,980) in JetBrains Mono with font-variant-numeric: tabular-nums and .toLocaleString("en-US"). - 6.Tactile Controller Profile Telemetry: Include interactive preset toggles (
Esports 120 Hz, Cinema Haptics, Endurance Eco) that live-update polling Hz, adaptive trigger travel, haptic actuator torque, battery estimate, and a semantic <Sparkline /> with sr-only data fallback. - 7.Live Storefront Command Palette (
⌘K): Ship <CommandPalette /> (role="dialog" aria-modal="true") supporting Arrow navigation, instant filtering across screens/titles/hardware, and nested Escape (clears filter first, closes second, restores focus). - 8.Storefront Settings Propagation: Preferences (store region US/EU/JP, frame-rate badge visibility, default genre filter, dark/light theme) MUST visibly update target screens (
Library, Releases, Home, Pass Tiers) with draft save confirmation and restore defaults. - 9.Compositor-Only Motion & Offscreen Pause: Implement
tile-cyan-ring-scale, channel-band-glide, hero-backdrop-fade, badge-live-pulse, and tab-pill-shift strictly with transform and opacity. Pause ambient pulse/skeleton motion via [data-offscreen="true"] and disable all animation under prefers-reduced-motion: reduce. - 10.Mount-Safe Scroll Reveals: Use
<ScrollReveal /> with immediate above-fold visibility inspection (getBoundingClientRect().top < window.innerHeight - 24), IntersectionObserver fallback, and @media (scripting: none) safety so content is never trapped at opacity: 0. - 11.Complete Data States: Every searchable or filterable view ships with styled
.ar-skeleton loading placeholders, actionable empty states (Reset Filters), inline error notices with retry actions, and live confirmation banners. - 12.Skip Link, Custom Keyboard Select & Zero Horizontal Overflow: Place a visible-on-focus skip link first in tab order, handle capture-phase
Escape on custom listbox dropdowns before parent modals/drawers, and verify zero horizontal clipping from 390px mobile to 1440px desktop.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Hardcoded dark-only
#hex colors in reusable TSX templates that break [data-theme="light"] contrast. - BANNED: White text placed over bright
#38bdf8 cyan fills (fails WCAG AA—always use #0a0f1c dark ink on filled cyan!). - BANNED: Primitive
<svg> clipart silhouettes representing controllers, consoles, headsets, or esports arenas in place of verified .webp studio renders. - BANNED: Overly puffy
rounded-3xl bubbles, generic bg-slate-900 backgrounds, or generic indigo/purple/fuchsia gradients (bg-gradient-to-r from-indigo-500). - BANNED: Third-party trademarks, external stock placeholder image URLs, unformatted raw numbers (
$79980 instead of ¥79,980), or raw ASCII icons instead of @phosphor-icons/react.
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw controllers, game consoles, hardware enclosures, buildings, garments, vehicles, food, people, or cinema scenes using flat
<svg> polygons or outline clipart. Physical subjects MUST embed verified local .webp studio photography or 3D renders (fetchPriority="high" on Hero LCP, locked aspect-ratio for CLS === 0, calibrated contrast-safe scrims for overlaid copy, zero baked-in logos or watermarks). - High-Craft Technical Hero Cards & Precision SVGs: When rendering telemetry charts, frame-pacing traces, or hardware overlays inside hero or spec cards, enforce specular top-edge hairlines (
inset 0 1px 0 rgba(242,246,255,0.14)), tabular numerals, labeled axes, and opaque rounded label backdrops (rx="4") so text never collides with lines or adjacent labels.
Card, Diagram & Data Table Craft Standard
- DOM-First Product Visuals (Zero Slide-Style Circle Diagrams): Never depict workflows, pipelines, or architecture with numbered
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. - Unified Metric Rails Over Identical Floating Boxes: Prefer a single hairline-divided KPI rail flush to the workspace container over 4 disconnected floating rounded cards. Lead with one focal
tabular-nums value, an inline semantic delta (no redundant pill chrome), and a compact composition bar or sparkline grounded in real row data. - Dense, Interactive Data Tables: Operational lists (>6 items) must ship a toolbar (instant search, faceted filters, and a
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. - DOM-First Node Graphs & Topology Cards: Never render topology, ontology, DAG, module-bundle, or entity-relation graphs as
<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. - Visual Critique Gate: Inspect rendered cards and tables at desktop (
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.