name:uikit-aurora
version:"2.2.0"
description:Implements radical-subtraction electric vehicle flagship showrooms, 0px architectural configurators, WLTP range and 350kW fast-charging telemetry panels, regional hub delivery ledgers, and lease reservation flows using the Aurora — Electric Mobility design system (W3C DTCG tokens, CSS v4 @theme bridge, design variables JSON, Dark & Light modes, 7 CSS-variable-first TSX templates with @phosphor-icons/react, and WCAG 2.2 AA governance specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, CSS v4 @theme, TypeScript 5+"
metadata:
id:"aurora"
version:"2.2.0"
category:"automotive-ev"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
wcag:"2.2 AA"
preview:"/previews/aurora-hero.webp"
uikit-aurora — Master Execution Protocol (v2.2.0)
You are building commercial electric vehicle showrooms, battery & range configurators, fast-charge hub locators, and direct reservation portals with the Aurora — Electric Mobility UI Skill Pack (tokens/ + templates/ + empirical screen & governance specs). Pair with registry/backbone/ (uikit-backbone) when applications require deeper checkout or fleet administration while preserving Aurora's strict 0px radical-subtraction precision.
RADICAL-SUBTRACTION EXECUTION MANDATE: Never add soft bubbles, puffy shadows, or cartoon vehicle illustrations. Ground every default Dark showroom on nocturnal obsidian (#0a0b10), step specification cards onto #141620 framed by crisp 1px architectural hairlines (#262a3a) with strict 0px zero-radius corners across every button, card, input, and drawer, showcase verified studio EV photography (/images/hero-ev.webp, fetchPriority="high", CLS === 0, contrast-safe scrims), drive primary reservation actions with luminous aurora amber-gold (#f59e0b ALWAYS paired with #0a0b10 dark ink at 9.8:1 AAA), trace charging curves with horizon cyan (#38bdf8 paired with #0a0b10 ink at 9.4:1 AAA), run all 5 registered motion primitives, and guarantee Daylight Showroom Light mode (#fafafa / #ffffff / #0e1015 / #b45309 with #ffffff ink at 5.02:1 AA) automatically on the very first pass.
1. Task Routing Table
2. Step-0 Bootstrap Procedure
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md@latest add aurora --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/aurora.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for aurora. - Peer dependencies:
npm install @phosphor-icons/react (plus react and react-dom). - 2.Load Fonts in
src/app/layout.tsx:
Import Space_Grotesk (weight: ["500", "600", "700"], variable --font-space-grotesk), Inter (weight: ["400", "500", "600"], variable --font-inter), and JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono) via next/font/google. Attach all three variables to <html> and apply .au-root to <body>.
- 3.Import
tokens.css and tokens/tailwind.css:
Load tokens.css and tokens/tailwind.css directly below your root stylesheet import to enable Dark default (#0a0b10) and Light showroom (#fafafa), 0px architectural rules, and all 5 registered motion primitives.
- 4.Install All 7 Starter Templates:
Copy EvShowcaseShell.tsx, RangeChargingConfigurator.tsx, AuroraStageHero.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-aurora/.
3. The 12 Mandatory First-Pass Rules
- 1.Strict
0px Sharp Architectural Geometry (maxCornerRadiusRem: 0.125): Keep EVERY primary button, ghost button, trim selector card, dropdown menu, drawer, and specification table strictly 0px sharp (rounded-none). Never introduce rounded-xl, rounded-2xl, rounded-3xl, or puffy pill buttons. - 2.Nocturnal Obsidian Default + Daylight Showroom Parity: Ground Dark mode on
#0a0b10 (var(--background)), step modules onto #141620 (var(--surface)), and transition cleanly in [data-theme="light"] to #fafafa showroom floor, #ffffff cards, #0e1015 carbon ink, and #b45309 burnished amber (5.02:1 AA with white ink). - 3.100% Semantic CSS Variables (Zero Hardcoded
#hex in TSX): Bind every UI surface, border, label, and telemetry fill strictly to CSS variables (var(--background), var(--surface), var(--foreground), var(--primary), var(--highlight), var(--border)). - 4.High-Contrast Amber-Gold (
#f59e0b) Paired Strictly with #0a0b10 Dark Ink: Never put white text on #f59e0b amber-gold in Dark mode. Always pair #f59e0b fills with #0a0b10 dark ink (9.8:1 AAA), and pair secondary ghost buttons with 1px solid var(--au-border-strong) that invert crisply on hover (.au-btn-ghost). - 5.Studio EV Photography Centerpiece (Zero Cartoon Car SVGs): Hero and vehicle showcase slots MUST embed verified local
.webp studio renders (/images/hero-ev.webp with fetchPriority="high", object-fit: cover, locked aspect-ratio: 16 / 9, CLS === 0, and calibrated dark bottom scrim). Never approximate vehicles using primitive <svg> polygons. - 6.Geometric
Space Grotesk + Restrained Inter + JetBrains Mono Telemetry: Style flagship model headings in Space Grotesk (-0.025em tracking), body and configurator labels in composed Inter (400/500), and EVERY WLTP range (710 km / 441 mi), 0–100 sprint (3.1 s), peak charge rate (350 kW), and price ($68,900) in .au-mono (tabular-nums). - 7.Live Trim, Wheel & Paint Configurator (
RangeChargingConfigurator.tsx): Switching Standard RWD / Long Range AWD / Performance Dual, toggling Aero Wheel size (19" Aero / 21" Turbine), and selecting studio paint finish immediately recalculates WLTP range (honoring km / mi Settings), 0–100s sprint, peak charging kW, and vehicle price with .au-range-calibrate bars. - 8.Global
⌘K Showroom Palette & Nested Escape (CommandPalette.tsx): Bind Cmd/Ctrl+K to <CommandPalette /> (role="dialog" aria-modal="true") with ArrowUp/ArrowDown/Enter navigation and nested Escape priority. - 9.Searchable Deliveries & Fast-Charge Hub Directory: Support text search, custom keyboard
AuroraSelect region filter with capture-phase Escape, and a slide-over hub & allocation specification drawer without losing filter state. - 10.All 5 Registered Motion Profiles + Offscreen Pause + No-JS Safety: Implement
aurora-ribbon-drift, range-bar-calibrate, btn-zero-invert, stage-minimal-fade, and trim-switch-snap in tokens.css. Pause ambient ribbon drift offscreen via [data-offscreen="true"], keep content visible under @media (scripting: none), and honor prefers-reduced-motion: reduce. - 11.Verified
@phosphor-icons/react Exclusive Iconography: Use @phosphor-icons/react exclusively (Lightning, Gauge, ChargingStation, MapPin, SlidersHorizontal, ArrowRight, ArrowUpRight, MagnifyingGlass, Check, Copy, X, Sun, Moon). Never include external stock placeholder URLs. - 12.Skip Link, Drawer-Width Zero-Overlap Header & Zero Overflow: Ship
<a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to showroom</a>, wrap header cleanly at <= 1160px drawer widths and <= 520px mobile, and enforce 0px horizontal overflow from 390px through 1440px.
4. Blueprint Recipes
- Flagship Showroom Hero (
Home): Full-bleed locked 16:9 stage rendering /images/hero-ev.webp crowned by optional subtle aurora ribbon drift (controlled via Settings), overlaid with radical-subtraction model title (Aurora GT-E), 3 tabular headline metrics (710 km, 3.1 s, 350 kW), and a crisp 2-button 0px CTA pair (Configure GT-E solid amber + Deliveries ghost white). - Live EV Configurator (
Configurator): Split studio layout placing the locked-aspect vehicle visual & live telemetry bars left alongside sharp 0px Trim, Wheel Aero, and Paint selector panels right. - Regional Hub & Allocation Log (
Deliveries): Searchable fast-charge hub & build-slot ledger with region AuroraSelect filter and 0px slide-over spec drawer.
5. Explicitly Banned Anti-Patterns
- BANNED — Rounded Pill Buttons or Puffy Cards: Never apply
rounded-xl, rounded-2xl, rounded-3xl, or pill corners to Aurora buttons, cards, or inputs; 0px sharp geometry is non-negotiable. - BANNED — Cartoon Car SVGs: Never draw electric vehicles or charging bays using primitive
<svg> polygons; embed verified local .webp studio renders. - BANNED — White Text on
#f59e0b Amber: Dark mode amber primary fills MUST pair with #0a0b10 dark ink (9.8:1 AAA). - BANNED — Third-Party Automaker Names & Placeholder URLs: Never mention third-party car brands, proprietary charging trademarks, or external stock placeholder URLs. Use neutral model/hub names (
Aurora GT-E, Aurora One, Nordic Ring, Alpine Corridor, Pacific Hub) and RFC 2606 domains (example.com).
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw automobiles, interiors, roads, or chargers using flat
<svg> polygons. Aurora's hero embeds verified local studio render /images/hero-ev.webp (fetchPriority="high", object-fit: cover, locked 16:9 aspect ratio, CLS === 0, contrast-safe bottom gradient scrim, zero baked-in logos). - Precision Telemetry Bars & Sparklines: Range and 350kW fast-charging curve panels use hairline borders,
font-variant-numeric: tabular-nums, and opaque 0px coordinate callout badges with zero label collisions.
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.