name:uikit-apex
description:Implements cinema-black aerospace launch showcases, performance electric mobility configurators, orbital trajectory canvases, telemetry consoles, auth flows, forms, docs, and settings using the Apex — Aerospace & Mobility design system (razor 0px geometry, condensed uppercase Barlow Condensed display, 1px hairline ghost CTAs, sparse motorsport crimson alerts, dual Dark/Light modes, and 7 strict TypeScript templates).
version:"2.2.0"
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"apex"
version:"2.2.0"
category:"automotive-aerospace"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/apex-hero.webp"
uikit-apex — Master Execution Protocol (v2.2.0)
You are building commercial-grade aerospace, orbital launch, autonomous aviation, and performance mobility interfaces with the Apex — Aerospace & Mobility UI Skill Pack (tokens/ + templates/ + lint.json + engineering specifications). Pair with registry/backbone/ (uikit-backbone) when a multi-route web application requires additional base primitives beyond the 7 Apex templates.
FIRST-PASS PRECISION MANDATE: Apply every visual token, dual-mode CSS custom property, razor 0px geometry rule, motion primitive, keyboard contract, accessibility landmark, and telemetry state automatically on the first pass. Never leave rounded soft cards, flooded red backgrounds, placeholder media URLs, unwired filter controls, or unstyled dark/light inversions for a follow-up prompt.
1. Task Routing Table
Always load DESIGN.md, tokens.css, and lint.json first, then route to the exact companion specification files and templates for the surface you are building:
2. Bootstrap Procedure (Before Writing Feature Code)
- 1.Load Fonts in
src/app/layout.tsx:
Import Barlow_Condensed (weights 600, 700, --font-barlow-condensed), Inter (weights 400, 500, 600, --font-inter), and JetBrains_Mono (weights 400, 500, 600, --font-jetbrains-mono) via next/font/google. Attach all three CSS variable classes to <html> and apply ax-root bg-[var(--background)] text-[var(--foreground)] font-sans antialiased to <body>.
- 2.Import Dual-Mode Tokens & Tailwind v4 Bridge:
Import tokens.css and tokens/tailwind.css directly after @import "tailwindcss"; in src/app/globals.css. Dark mode (#050507) is active by default on :root, [data-theme="dark"], and .dark; Daylight Hangar Light Mode (#f7f8fa / #ffffff) activates cleanly under [data-theme="light"] and .light.
- 3.Install All 7 Apex Starter Templates:
Run npx uikits-md@latest add apex --platform all --out . and install @phosphor-icons/react.
Targeted for React 18+/19+, Next.js 14+/16+ App Router, Tailwind CSS v4, and TypeScript 5+. Do not pair with soft rounded component libraries unless their border radii are explicitly overridden to 0px.
3. First-Pass Mandatory Execution Rules (12 Concrete Contracts)
- 1.Razor 0px Corner Geometry:
Enforce 0px sharp corners (rounded-none or rounded-[var(--radius)]) across every button, telemetry module, vehicle card, status badge, input field, table, and navigation bar. Floating command dialogs cap strictly at 0.125rem (2px, --radius-overlay). Never use rounded-md, rounded-lg, rounded-xl, rounded-2xl, rounded-3xl, or rounded-full.
- 2.Cinema-Black Ground & Austere Module Separation:
Anchor default surfaces on cinema-black var(--background) (#050507) with var(--surface) (#101116) telemetry modules separated by 1px solid var(--border). Never use generic dark slate/zinc utilities (bg-slate-900, bg-zinc-950) or soft drop shadows (shadow-xl, shadow-2xl).
- 3.100% Semantic CSS Variables (Zero Hardcoded Hex in JSX):
Bind every color class and SVG/Canvas paint call to CSS variables (var(--background), var(--surface), var(--foreground), var(--muted-foreground), var(--accent), var(--highlight), var(--border), var(--chart-1)..--chart-5) so Dark and Daylight Hangar modes switch without contrast regressions.
- 4.Sparse Motorsport Crimson Discipline:
Reserve motorsport crimson (var(--accent): #e11d2e dark / #c81626 light, white ink) strictly for primary reservation/ignition CTAs, active flight alerts, live telemetry peaks, and selected calibration bars. Limit crimson to under 8% of viewport area. Use var(--ax-crimson-text) (#ff4d5a dark / #c81626 light) for inline alert prose so contrast exceeds 5.8:1.
- 5.1px Hairline Ghost Buttons with Upward Fill Sweep:
Use .ax-ghost-btn (1px solid var(--ax-ghost-border), 0px corners, uppercase JetBrains Mono tracked +0.12em) as the default showcase action button. Hover/focus triggers a 330ms compositor-only upward fill sweep (scaleY(0) -> scaleY(1)) that inverts foreground ink cleanly. Never place more than 2 CTAs side by side in a single hero band.
- 6.Condensed Uppercase Display & Tabular Mono Readouts:
Render primary mission headlines and flagship numbers in .ax-display (Barlow Condensed, 700, uppercase, 0.94–1.02 leading, +0.04em tracking). Render every countdown, velocity, altitude, torque, price, and percentage in font-mono tabular-nums so rolling updates produce zero layout jitter.
- 7.Animated SVG/Canvas Orbital Trajectory with Reduced-Motion Fallback:
Include templates/OrbitalTrajectoryCanvas.tsx (or procedural SVG arcs using .ax-trajectory-path) for flight envelopes, range profiles, or lap maps. Pause offscreen/hidden-tab loops via IntersectionObserver + visibilitychange, and render a crisp static calibrated trajectory under prefers-reduced-motion: reduce.
- 8.Progressive Scroll Reveals & No-JS Visibility:
Wrap below-the-fold sections and module grids in <ScrollReveal delayMs={...}> (45ms–75ms sibling stagger). On horizontal overflow strips, wrap the outer container so offscreen siblings never stall at opacity: 0. Rely on html.js-ready + @media (scripting: none) so content stays 100% visible if JavaScript is unavailable.
- 9.Complete Interactive & Keyboard Wiring:
Wire live search, mission phase filters, powertrain/payload configurator options, metric/imperial unit toggles, copy-to-clipboard confirmation (1.8s), ⌘K / Ctrl+K command palette (CommandPalette.tsx), mobile drawer focus trapping, and nested Escape dismissal so only the topmost overlay closes.
- 10.Full Application State Parity:
Ship every async view with sharp .ax-skeleton loading placeholders matching final grid geometry, hairline empty states with one-click filter reset, crimson-framed error banners with retry actions, and role="status" live telemetry toasts.
- 11.Zero Placeholder Media & Exclusive Phosphor Iconography:
Use @phosphor-icons/react exclusively for UI iconography. Never reference external stock placeholder image domains or empty grey media blocks; use procedural SVG schematics or brand-locked generated imagery per ASSETS.md.
- 12.Universal Skip Link & Automated Gate:
Render a keyboard skip link (#main-content) as the first focusable element on every page, confirm zero horizontal overflow at 390px and 1440px, and pass npx uikits-md check apex --dir . + tsc --noEmit with zero errors.
4. Blueprint Recipes
Blueprint A — Cinema Launch Hero Band
- Full-bleed
min-h-[78vh] container on var(--background) with subtle .ax-telemetry-grid reticle lines. - Top-left
.ax-eyebrow (MISSION KESTREL-09 · PAD 39B · T-00:14:22) paired with a sharp <StatusBadge tone="nominal" label="GO FOR LAUNCH" />. - Uppercase
.ax-display <h1> (clamp(2.75rem, 6vw, 4.75rem)) animated with .ax-stage-curtain. - Single
.ax-ghost-btn (WATCH FLIGHT TELEMETRY) + optional .ax-crimson-btn (RESERVE PAYLOAD SLOT), anchored above a 4-column hairline spec strip (THRUST, LEO PAYLOAD, APOGEE, TURNAROUND).
Blueprint B — Interactive Vehicle / Propulsion Spec Configurator
- Mount
<TelemetrySpecConfigurator /> on var(--surface) with hairline 1px cell dividers. - Left column: interactive drivetrain/propulsion trims, aero packages, and telemetry modes updating specs in real time.
- Right column: animated
.ax-spec-bar-fill calibration bars, live tabular KPI deltas, unit switch (METRIC / IMPERIAL), and reservation summary.
Blueprint C — Flight Telemetry Control Console
- Wrap inside
<MissionShowcaseShell /> with collapsible left mission rail, sticky top telemetry strip (live T-clock, unit indicator, ⌘K trigger, theme toggle), main <OrbitalTrajectoryCanvas /> + <Sparkline /> telemetry cards, and hairline manifest table.
5. Explicitly Banned Anti-Patterns
- BANNED: Rounded corners (
rounded-md, rounded-lg, rounded-xl, rounded-2xl, rounded-3xl, rounded-full) on any interactive control, badge, card, or container. - BANNED: Soft blurred drop shadows (
shadow-xl, shadow-2xl) on standard telemetry modules or cards. - BANNED: Generic indigo/purple/pink gradients (
bg-gradient-to-r from-indigo-500 ...) or generic bg-slate-900 / bg-zinc-950 dark surfaces. - BANNED: Flooding full page bands or multi-card grids with motorsport crimson (
#e11d2e) backgrounds—crimson is strictly a sparse high-voltage signal. - BANNED: Sentence-case hero display titles or non-tabular numeric telemetry readouts that shift horizontal alignment while ticking.
- BANNED: Hardcoded
#hex colors inside React TSX templates, third-party brand trademarks, stock placeholder media URLs, or missing reduced-motion fallbacks.
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw buildings, interiors, fashion garments, hardware devices, vehicles, food, people, or cinema frames using flat
<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). - High-Craft Technical Hero Cards & Precision SVGs: When rendering data visualizations, topology graphs, waveforms, or telemetry inside a Hero Card, enforce subtle specular top-edge hairlines (
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.
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.