name:uikit-vectorlab
description:Implements tactile native desktop vector design studio showcases, floating inspector artboards, glossy black pill CTAs with pastel ambient halos, Cormorant Garamond editorial display typography over crisp Inter, Cmd+K studio command palettes, plugin release feeds, and sunlit pricing glass using the Vectorlab Native Craft Tool design system (W3C DTCG tokens, Tailwind v4 @theme, Figma variables, Light & Dark modes, 7 TSX templates, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"vectorlab"
version:"2.2.0"
category:"design-native"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/vectorlab-hero.webp"
uikit-vectorlab — Master Execution Protocol (v2.2.0)
You are building UI with the Vectorlab — Native Craft Tool UI Skill Pack (tokens/ + templates/ + governance/eval specs). Pair with registry/backbone/ (uikit-backbone) for full 27-component and 6-page-recipe coverage.
NATIVE CRAFT MANDATE: Never treat this pack as generic SaaS wallpaper. Build calm, designer-first desktop tool interfaces anchored on cool silver-grey canvases (#f5f5f7), floating pure-white inspector cards (#ffffff), glossy jet-black pill actions (#121216 with white ink at 18.8:1 AAA), warm diamond amber highlights (#f59e0b strictly paired with #121216 dark ink at 8.3:1 AAA), refined Cormorant Garamond serif display headlines, crisp Inter controls, JetBrains Mono coordinate telemetry, and disciplined pastel ambient halos automatically on the very first pass. The user must never have to follow up with *"add inspector controls"*, *"fix dark mode contrast"*, *"make the header fit in narrow viewports"*, or *"add keyboard shortcuts"*.
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.Wire Fonts in
src/app/layout.tsx:
Load Cormorant_Garamond (--font-cormorant-garamond, weights 400, 500, 600, 700), Inter (--font-inter, weights 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 and tokens/tailwind.css:
Import tokens.css and tokens/tailwind.css right after @import "tailwindcss";. This registers both Light (:root, [data-theme="light"], .light) and Dark Studio ([data-theme="dark"], .dark) token trees, specular glossy pill shadows, and compositor @keyframes (vlPastelHaloBloom, vlArtboardSnap, vlInspectorFade, vlBezierPulse, vlSkeletonShimmer).
- 3.Install All 7 Starter Primitives:
Copy templates/NativeToolShell.tsx, templates/VectorInspectorStage.tsx, templates/PluginReleaseCards.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx, and templates/Sparkline.tsx into src/components/uikit-vectorlab/ (or run npx uikits-md add vectorlab).
- 4.Dependencies & When NOT to Use:
- Peer dependencies:
react, react-dom, @phosphor-icons/react. - Do not use for high-frequency neon arcade interfaces, brutalist 0px monochrome print zines, or terminal-only developer consoles where glossy pills and editorial serif headlines conflict with the domain voice.
3. The 12-Point Automatic First-Pass Contract
Every time you build or modify UI under uikit-vectorlab, all 12 behaviors below MUST be implemented automatically:
- 1.Silver-Grey Canvas & Pure-White Floating Surfaces: Bind
<body>, workspaces, floating inspector panes, and bento tiles exclusively to semantic CSS variables (bg-[var(--background)], bg-[var(--surface)], bg-[var(--card)], text-[var(--foreground)], border-[var(--border)])—never hardcode hex values inside component TSX—so Light (#f5f5f7 / #ffffff) and Dark (#111115 / #1b1b22) switch seamlessly. - 2.High-Contrast Editorial Serif + Crisp Sans Pairing: Render display
<h1>/<h2> and plan pricing numerals in Cormorant Garamond (.vl-display, weight 500–600, negative tracking -0.025em to -0.015em) while keeping menus, buttons, inputs, inspector labels, and body copy strictly in Inter (0 tracking) and coordinates/metrics in JetBrains Mono (tabular-nums). - 3.Glossy Jet-Black Pills & Restrained Pastel Halos: Style primary CTAs as tactile glossy black pills (
.vl-gloss-pill, --primary #121216 with white ink at 18.8:1 AAA, inner specular highlight rim). Reserve the soft pink-to-violet or amber-to-peach ambient halo ring for at most one hero or closing CTA per page—never stack halos on secondary controls. - 4.Diamond Amber Highlight Discipline: Pair warm diamond amber (
--vl-highlight: #f59e0b) exclusively with dark ink (#121216 / #111115, >= 8.3:1 AAA). For amber text on light surfaces, use --vl-amber-text (#854d0e, 6.3:1 AA); on dark surfaces, use #fbbf24 (11.8:1 AAA). - 5.Floating Artboard & Real-Time Vector Inspector: Provide interactive geometry tooling (
VectorInspectorStage.tsx) where tweaking corner radius, shadow blur, stroke width, and fill swatch updates a crisp coordinate-framed SVG artwork in real time with tabular-nums readout pills. - 6.Bento Storytelling & Chapter Capsules: Open feature chapters with a pastel-tinted uppercase pill capsule (
--vl-capsule-peach, --vl-capsule-mint, --vl-capsule-sky paired with dark --vl-capsule-ink), a crisp serif chapter headline, and 20px (--radius-lg) floating bento cards mixing light, dark (--vl-surface-dark), and midnight (--vl-surface-midnight) scenes. - 7.Sunlit Pricing Glass & Quiet Hairline Grids: Present subscription tiers on translucent floating cards with subtle plum-tinted elevation (
--vl-plum-shadow) over a soft sunlit radial glow, and render feature comparison catalogs as two-sided 1px solid var(--border) hairline matrices rather than heavy nested boxes. - 8.Keyboard-First Studio Ergonomics: Wire
Cmd/Ctrl+K to CommandPalette.tsx, ArrowUp/ArrowDown + Home/End + Enter inside custom dropdowns and lists, and capture-phase Escape so open menus close cleanly before modals or slide-over drawers. - 9.Compositor-Only Motion & Offscreen Pause: Implement
pastel-halo-bloom, gloss-pill-press, artboard-frame-snap, bezier-handle-glide, and inspector-fade strictly with transform and opacity. Pause ambient keyframes via [data-offscreen="true"] and IntersectionObserver, keep content visible without JS (.vl-reveal defaults visible unless .js-ready is set), and disable all motion under prefers-reduced-motion: reduce. - 10.Complete Async & Workspace State Parity: Ship every data view with
.vl-skeleton loading shimmers, actionable empty states with filter reset buttons, inline form validation bound to --destructive, and clear feedback banners. - 11.Icon Hygiene & Precision Vector Craft: Use verified
@phosphor-icons/react exports exclusively (Diamond, PenNib, BezierCurve, SlidersHorizontal, BoundingBox, Stack, Package, Command). Keep all hero vector artboard graphics technical and precision-labeled with opaque rx="6" coordinate pills and zero colliding text. - 12.Universal Skip Link, Accessible Data-Viz & Container Responsiveness: Render
<a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to content</a> as the first focusable control, pair every <Sparkline> with a screen-reader <table>, and ensure container-query layouts never overflow or overlap header controls from 390px to 1440px.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Setting UI menus, buttons, inputs, or inspector rows in the serif display face—keep
Cormorant Garamond strictly for headlines, statements, and plan prices. - BANNED: White text on
#f59e0b amber badges or buttons (fails WCAG 2.2 AA)—always use #121216 dark ink on #f59e0b. - BANNED: Placing pastel halo rings on multiple buttons in the same section, or applying generic indigo-purple-pink gradients (
from-indigo-500, from-purple-500, to-pink-500) and harsh shadow-2xl blurs. - BANNED: Hardcoded
#hex colors inside reusable TSX templates, unstyled browser dialogs (alert(), confirm()), external stock placeholder URLs, empty media boxes, or any third-party brand trademarks.
5. Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw physical objects (buildings, interiors, garments, hardware enclosures, vehicles, food, people, or cinema frames) using flat
<svg> polygons or clipart outlines. Physical subjects require verified bespoke local .webp studio photography or 3D renders (fetchPriority="high", locked aspect ratio for CLS === 0, contrast-safe scrims). - High-Craft Technical Hero Cards & Precision Vector SVGs: For Vectorlab's native desktop artboard hero card, render a floating window frame with specular top hairline lighting (
inset 0 1px 0 rgba(255,255,255,0.9) light / rgba(255,255,255,0.14) dark), subtle pastel ambient halo behind the frame, crisp labeled X/Y coordinate ruler grid, live interactive Bezier anchor & tangent handles, font-variant-numeric: tabular-nums telemetry, and opaque rounded coordinate pill badges (rx="6") spaced cleanly so labels NEVER overlap paths, handles, or each other.
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.