name:uikit-workstation
description:Implements binary light-and-dark flagship PC, display, and mixed-reality hardware retail storefronts, live build-to-order configurators, enterprise fleet order dashboards, and technical spec sheets using the Workstation Tech Retail design system (W3C DTCG tokens, Tailwind CSS v4 @theme, design-tool variables, Light & Dark modes, 7 CSS-variable-first TSX templates, and governance specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"workstation"
version:"2.2.0"
category:"hardware-retail"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/workstation-hero.webp"
uikit-workstation — Master Execution Protocol (v2.2.0)
You are building production UI with the Workstation — Tech Retail UI Skill Pack (tokens/ + templates/ + architectural and governance blueprints). Pair with registry/backbone/ (uikit-backbone) for complete 27-component and 6-page-recipe coverage.
HARDWARE RETAIL EXECUTION MANDATE: Never treat this pack as loose aesthetic guidance. Build on binary polarity bands—pure gallery white (#ffffff) and architectural cool-slate product slabs (#f4f6f9) contrasted directly against deep studio dark bands (#0f172a)—anchored by electric signal-blue primary actions (#0064e0 light / #2563eb dark), geometric Space Grotesk display headings, Plus Jakarta Sans retail copy, JetBrains Mono tabular-nums wattage/acoustic/pricing specs, signature right-sliding blue chevrons (.ws-chevron-cta), verified bespoke studio photography (/images/hero-rig.webp), and 100% CSS-variable-driven Light and 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 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 workstation --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/workstation.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for workstation. - Peer dependencies:
npm install @phosphor-icons/react (plus react, react-dom). - 2.Load Fonts in
src/app/layout.tsx:
Load Plus_Jakarta_Sans (weight: ["400", "500", "600", "700"], --font-plus-jakarta-sans), 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 .ws-root on <body>.
- 3.Import
tokens.css and tokens/tailwind.css:
Import both stylesheets immediately after @import "tailwindcss"; in src/app/globals.css. This activates Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) token modes, binary contrast band helpers (.ws-studio-dark, .ws-device-card), .ws-chevron-cta, compositor keyframes, and reduced-motion/forced-colors rules.
- 4.Install Starter Primitives:
Copy all 7 drop-in templates into src/components/uikit-workstation/: TechRetailShell.tsx, DeviceConfiguratorCard.tsx, BinaryShowcaseBands.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
3. The 12-Point Automatic First-Pass Contract
Every screen built with uikit-workstation MUST deliver all 12 engineering contracts on the first pass:
- 1.Binary Light & Dark Band Cadence: Alternate pure white (
#ffffff) / studio cool-slate (#f4f6f9) product galleries with deep studio contrast bands (#0f172a via .ws-studio-dark) so consumer browsing, live configuration, and enterprise fleet commitments remain visually distinct. - 2.100% Semantic CSS Variables (Zero Hardcoded Hex in Reusable TSX): Consume
var(--background), var(--surface), var(--card), var(--foreground), var(--muted-foreground), var(--primary), var(--accent), var(--border), and var(--ws-dark-band) so [data-theme="dark"] / .dark flips seamlessly without residual light-only colors. - 3.Electric Signal-Blue CTA Discipline: Use
#0064e0 (Light, 5.39:1 AA with white ink) and #2563eb (Dark, 5.17:1 AA with white ink) for primary purchase and configuration CTAs (rounded-full pills or 0.5rem action buttons), paired with binary obsidian/ivory secondary buttons (var(--accent)). - 4.Precision Directional Chevrons (
.ws-chevron-cta): Pair inline product explore links and primary hardware CTAs with a crisp @phosphor-icons/react CaretRight chevron tinted var(--ws-chevron) (#0064e0 light / #60a5fa dark) that slides +4px smoothly on hover (150ms cubic-bezier(0.22, 1, 0.36, 1)). - 5.Verified Bespoke Studio Photography (Zero Clipart Hardware SVGs): Embed verified local
.webp studio renders such as /images/hero-rig.webp via <img> with fetchPriority="high" on hero LCP, locked aspect-ratio (CLS === 0), calibrated contrast-safe scrims for overlaid copy, and descriptive alt text. NEVER draw desktop towers, monitors, laptops, or spatial headsets using primitive <svg> polygons. - 6.Live Build-to-Order Telemetry (
DeviceConfiguratorCard.tsx): Every hardware configurator updates total price (.toLocaleString("en-US")), peak wattage (W), acoustic rating (dBA), SKU code, and estimated shipping window synchronously on click with .ws-price-settle micro-motion. - 7.Mandatory Tabular Numerals (
.ws-tabular): Apply font-variant-numeric: tabular-nums and JetBrains Mono to all prices ($5,280), fleet totals ($168,960), wattages (453 W), acoustic dBA floors (24.7 dBA), and order IDs (WS-2026-4108). - 8.0.5rem Anodized Geometry: Keep cards, spec panels, and inputs cleanly rounded at
0.5rem (--radius), pills at 9999px, and compact tags/controls at 0.25rem (--radius-sm). Avoid bloated rounded-3xl bubble cards. - 9.Compositor-Only Motion & Reduced-Motion Compliance: Animate exclusively via
transform and opacity (wsDeviceTileRise, wsConfigPriceSettle, wsBandPolarityFade, wsTelemetryPulse), pause ambient dots offscreen ([data-offscreen="true"]), and collapse animations cleanly under @media (prefers-reduced-motion: reduce). - 10.Capture-Phase Keyboard &
⌘K Ergonomics: Wire ⌘K / Ctrl+K to an accessible role="dialog" aria-modal="true" command palette, close custom dropdowns via capture-phase Escape before closing drawers/modals, and expose clear :focus-visible outlines. - 11.Live Settings Propagation: Storefront preferences (currency
USD/EUR, acoustic dBA visibility, default fleet order filter, Light/Dark studio theme) MUST visibly recalculate prices, toggle spec badges, and filter fleet lists on target screens. - 12.Complete App States & Zero Horizontal Overflow: Include skip-to-content links, styled Loading, Empty (with filter reset), Error, and confirmation states, and verify zero horizontal overflow across
390px mobile, 768px tablet/drawer, and 1440px desktop widths.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Drawing desktop towers, monitors, laptops, or spatial headsets as primitive cartoon
<svg> rectangles or isometric clipart polygons. - BANNED: Hardcoding
#ffffff, #10141a, or #0064e0 inside reusable TSX templates instead of CSS custom properties. - BANNED: Generic rainbow gradients (
from-indigo-500, from-purple-500, to-pink-500), rounded-3xl, or generic bg-zinc-950 dark shells. - BANNED: Unformatted numeric strings (
$168960 instead of $168,960), external stock placeholder URLs, or bare empty image boxes. - BANNED: Any third-party trademarks or borrowed brand names in templates, sample SKUs, or docs—use original neutral names (
Workstation, Northstar, Kestrel, Helios, Arbor, Vesper) and RFC 2606 domains (example.com).
Hero Card & Visual Craft Mandate
- Studio Photography Over Clipart: Physical workstations, reference displays, and spatial optics MUST render verified local
.webp photography (/images/hero-rig.webp) with fetchPriority="high", locked aspect-ratio, object-fit: cover, and directional scrims guaranteeing >= 4.5:1 text contrast. - Precision Technical Spec Overlays: Overlaid specification HUDs and telemetry cards must feature crisp
1px specular framing (inset 0 1px 0 rgba(255,255,255,0.12) on dark panels), opaque pill backdrops behind overlaid labels so zero text collides with imagery or lines, and tabular-nums alignment throughout.
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.