name:uikit-horizon
description:Implements precision aerial robotics and cinema camera storefronts, studio product tile grids, engineering-blue pill CTAs, optical lens and gimbal spec comparators, flight telemetry dashboards, firmware release logs, and hardware care plans using the Horizon Optics & Drones design system (W3C DTCG tokens, Tailwind v4 @theme, design-tool variables, Light & Dark modes, 7 CSS-variable-first TSX templates, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"horizon"
version:"2.2.0"
category:"hardware-optics"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/horizon-hero.webp"
uikit-horizon — Master Execution Protocol (v2.2.0)
You are building production UI with the Horizon — Optics & Drones UI Skill Pack (tokens/ + templates/ + architectural & governance blueprints). Pair with registry/backbone/ (uikit-backbone) for full 27-component and 6-page-recipe coverage.
PRECISION OPTICS EXECUTION MANDATE: Never treat this pack as loose aesthetic inspiration. Build on a pure #ffffff gallery canvas paired with crisp #f5f6f8 studio product plinths, #14171c obsidian hardware ink (zero pure #000000), #0066cc engineering-blue pill CTAs (#ffffff ink >= 5.5:1 AA; dark studio #38bdf8 paired with #0b0d10 ink >= 10.1:1 AAA), tightly tracked Space Grotesk + Inter + JetBrains Mono telemetry, 0.5rem studio geometry, real bespoke studio .webp hardware photography (/images/hero-drone.webp), compositor-only gimbal motion (hzHorizonGlide, hzSpecCalibrate, hzTelemetryPulse), and 100% CSS-variable-driven Light & Dark modes automatically on the very first pass.
1. Task-Based Read Routing
Always read DESIGN.md and tokens.css first, then load the exact companion specs and starter templates for the surface you are building:
2. Bootstrap Procedure (Step 0 Before Writing Components)
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md add horizon --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/horizon.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for horizon. - Peer dependencies:
npm install @phosphor-icons/react (plus react, react-dom). - 2.Wire Fonts in
src/app/layout.tsx:
Load Inter (weight: ["400", "500", "600", "700"], --font-inter), Space_Grotesk (weight: ["500", "600", "700"], --font-space-grotesk), and JetBrains_Mono (weight: ["400", "500", "600"], --font-jetbrains-mono), attach all three variables to <html>, and apply .hz-root on <body>.
- 3.Import
tokens.css & tokens/tailwind.css:
Import tokens.css and tokens/tailwind.css right after @import "tailwindcss"; in src/app/globals.css. This activates Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) modes, .hz-studio-tile, .hz-pill-primary, .hz-tabular, .hz-reveal, compositor keyframes, and accessibility media queries.
- 4.Install Starter Primitives:
Copy all 7 drop-in TSX templates into src/components/uikit-horizon/: OpticsStoreShell.tsx, FlightTelemetryPanel.tsx, GimbalSpecComparator.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
3. The 12-Point Automatic First-Pass Contract
Every time you build or update UI under uikit-horizon, all 12 contracts below MUST be delivered automatically on the first pass:
- 1.Pure White Gallery &
#f5f6f8 Studio Plinths: Present optical hardware and telemetry cards on crisp var(--background) (#ffffff light / #0b0d10 dark) and var(--surface) (#f5f6f8 light / #151920 dark) tiles separated by clean 1px solid var(--border) hairlines and generous studio whitespace. - 2.Obsidian Hardware Ink & 100% Semantic Variables: Use
var(--foreground) (#14171c light / #f2f5f9 dark), var(--muted-foreground) (#4c5563 light / #a0aec0 dark), and var(--hz-studio-dark) across every reusable template so [data-theme="dark"] / .dark switches instantaneously with zero leftover hex values. - 3.Engineering-Blue Pill Action Hierarchy: Keep primary purchase, calibration, and comparison actions in pill-shaped (
9999px) var(--primary) buttons (#0066cc with #ffffff ink = 5.6:1 AA in light mode; #38bdf8 with #0b0d10 dark ink = 10.1:1 AAA in dark mode). Pair secondary actions with crisp outline pills. - 4.Bespoke Studio Hardware Photography (Zero Clipart SVGs): Embed verified local
.webp studio renders (/images/hero-drone.webp) with fetchPriority="high", locked aspect-ratio (CLS === 0), object-fit: cover, descriptive alt, and calibrated obsidian gradient scrims so overlaid typography clears WCAG AA/AAA while leaving the airframe unobstructed. - 5.Tightly Tracked Geometric Display & Tabular Spec Typography: Use
Space Grotesk (-0.025em tracking, weights 500–700) for model names and hero statements, Inter for studio narrative and store options, and JetBrains Mono with .hz-tabular (font-variant-numeric: tabular-nums) for every flight duration (46 min), focal length (24mm f/1.7), bitrate (420 Mbps), altitude, and currency value. - 6.Warm Amber Tier Eyebrows: Mark product rank (
Flagship Cinema, Dual-Tele Pro, Ultracompact) using var(--hz-tier) (#a84304 light, 6.3:1 on white / #fb923c dark) in compact uppercase micro-labels—never loud saturated gradients. - 7.Calibrated Multi-Rig Spec Comparator (
GimbalSpecComparator.tsx): Present optical rigs side-by-side with proportional animated calibration bars (hzSpecCalibrate), unit conversion toggles (Metric / Imperial), optional RAW bitrate rows, and live bundle selection. - 8.Live Flight & Sensor Telemetry (
FlightTelemetryPanel.tsx & Sparkline.tsx): Pair studio hardware showcases with genuine tabular telemetry metrics (endurance, wind resistance, GNSS lock, link latency, battery voltage curve) rather than empty decorative blocks. - 9.Compositor-Only Gimbal Motion & Reduced-Motion Safety: Use
--ease-gimbal (cubic-bezier(0.22, 1, 0.36, 1)) for reveals and spec bars, --ease-shutter for tile hover lifts (translate3d(0, -3px, 0)), offscreen pause via [data-offscreen="true"], and immediate above-the-fold visibility with .js-ready progressive enhancement. - 10.Keyboard-First Command Palette & Capture-Phase Escape: Provide
Cmd/Ctrl+K navigation (CommandPalette.tsx, role="dialog" aria-modal="true") and capture-phase Escape handling on custom dropdowns so nested overlays unwind cleanly one layer at a time. - 11.Exclusive
@phosphor-icons/react Iconography: Use verified @phosphor-icons/react icons exclusively (weight="regular" default, weight="bold" for 14px indicators) with aria-hidden="true" next to visible labels. - 12.Universal Skip Link, Full App States & Drawer-Safe Layouts: Render a keyboard skip link and
<main id="main-content"> on every page, include styled Empty, Loading, Error, and Toast states, and ensure zero horizontal overflow from 390px mobile through 1440px desktop.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Drawing drones, cinema cameras, lenses, gimbals, or tripods using flat
<svg> clipart polygons or outline cartoons. - BANNED: Hardcoding
#hex color values directly in reusable TSX templates instead of var(--...) tokens. - BANNED: Pure
#000000 ink (bg-black, text-black), generic bg-zinc-950 shells, rounded-3xl bloated cards, or rainbow gradients (from-indigo-500, from-purple-500). - BANNED: Placing white text on dark-mode
#38bdf8 pills (always pair #38bdf8 with #0b0d10 dark ink). - BANNED: External stock placeholder URLs or empty gray image boxes.
- BANNED: Third-party camera, drone, or optics brand names in copy, specs, or sample telemetry—always use neutral names (
Horizon Optics, Kestrel 4 Cine, Vesper 3 Pro, Arbor Mini Air, Helios 6K, Northstar Cinema) and example.com domains.
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw aircraft, drones, optical lenses, gimbals, batteries, or alpine landscapes using flat
<svg> polygons or outline clipart. Physical hardware subjects MUST use verified local .webp studio photography or 3D renders (/images/hero-drone.webp with fetchPriority="high", locked aspect-ratio for CLS === 0, calibrated gradient scrims for WCAG AA/AAA text legibility, zero baked-in text or logos). - High-Craft Technical Telemetry Overlays & Precision SVGs: Inline
<svg> elements are strictly reserved for geometric brand reticles, optical horizon levelers, and tabular <Sparkline /> telemetry curves—always framed with subtle specular hairlines (inset 0 1px 0 rgba(255,255,255,0.14) on dark surfaces), crisp coordinate axes, font-variant-numeric: tabular-nums, and opaque rounded label badges (rx="4") so text never collides with edges or adjacent strokes.
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.