name:uikit-whiteboard
description:Implements infinite collaborative dot-grid whiteboards, sticky-note workshop canvases, floating tool docks, idea dot-voting workflows, template libraries, pricing grids, auth screens, and settings consoles using the Whiteboard — Infinite Canvas design system (W3C DTCG tokens, Tailwind v4 @theme, tokens/figma-variables.json, dual Light/Dark mode, 7 CSS-variable-first TSX templates with @phosphor-icons/react, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"whiteboard"
version:"2.2.0"
category:"design-whiteboard"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/whiteboard-hero.webp"
uikit-whiteboard — Master Execution Protocol (v2.2.0)
You are building production infinite collaboration canvases, interactive sticky-note workshops, facilitator voting boards, and template libraries with the Whiteboard — Infinite Canvas UI Skill Pack (tokens/ + templates/ + lint.json + empirical subpage & governance specs). Pair with registry/backbone/ (uikit-backbone) whenever an application requires extended form controls or multi-route scaffolding beyond the 7 Whiteboard starter templates.
ANTI-VIBECODE MANDATE: Never treat this pack as loose inspiration. Apply Whiteboard's warm #fbfbfa dot-grid canvas (#11121d in .dark), crisp #ffffff floating toolbars (#1a1c2b in .dark), deep #050038 midnight-indigo ink (19.07:1 AAA), signature sunlit #ffd02f studio yellow ALWAYS paired with #050038 dark ink (13.46:1 AAA — never white text on yellow), vibrant #3b5bfd studio cobalt primary actions & connectors (5.12:1 AA with white ink), tactile pastel sticky notes (Yellow, Mint, Coral, Sky), 12px (0.75rem) rounded corners, GPU-composited spring motion, and full Light/Dark parity automatically on the very first pass.
1. Task-Based Read Routing
Always read DESIGN.md, tokens.css, and lint.json first, then load the companion specifications and drop-in templates for the target surface:
2. Bootstrap Procedure (Step 0 Before Writing Components)
- 1.Wire Fonts in
src/app/layout.tsx:
Load Plus_Jakarta_Sans (weight: ["400", "500", "600", "700", "800"], --font-plus-jakarta-sans) and JetBrains_Mono (weight: ["400", "500", "600"], --font-jetbrains-mono) via next/font/google, attach both variable classes to <html>, and apply .wb-root bg-[var(--background)] text-[var(--foreground)] antialiased to <body>.
- 2.Import
tokens.css & tokens/tailwind.css:
Place tokens.css and tokens/tailwind.css immediately after @import "tailwindcss"; in src/app/globals.css. Preserve both Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) scopes, .wb-dot-grid, compositor keyframes, .wb-reveal, and [data-offscreen="true"] pause guards.
- 3.Install All 7 Starter Primitives:
Copy InfiniteBoardShell.tsx, StickyClusterCanvas.tsx, FloatingToolDock.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-whiteboard/.
- 4.Dependencies & Scope:
- Peer dependencies:
react, react-dom, @phosphor-icons/react. - Use
@phosphor-icons/react exclusively (weight="regular" for dock tools, weight="fill" for active indicators, sunlit badges, and vote counters).
3. The 12-Point Automatic First-Pass Contract
- 1.Dot-Grid Canvas & Floating Chrome:
Render collaborative boards over .wb-dot-grid (#fbfbfa light / #11121d dark) with elevated #ffffff (#1a1c2b dark) floating tool docks, zoom pills, and 1px solid var(--border) structural hairlines.
- 2.AAA Sunlit Yellow & Studio Cobalt Contrast:
ALWAYS pair #ffd02f sunlit yellow highlights and sticky notes with #050038 deep midnight-indigo ink (13.46:1 AAA). Pair #3b5bfd studio cobalt buttons with #ffffff ink (5.12:1 AA) in Light mode, shifting to #60a5fa with #081226 ink (7.34:1 AAA) in Dark mode.
- 3.Tactile Pastel Sticky Palette:
Support four workshop sticky-note finishes (Yellow #ffd02f, Mint #bff5e4, Coral #ffd1cc, Sky #cde6ff) all maintaining >= 13:1 AAA legibility with #050038 ink in both Light and Dark studio modes.
- 4.Rounded
12px Board Geometry & Pill Controls:
Apply 0.75rem (12px, --radius) to sticky notes, floating docks, and template cards; 1rem (16px) to board stage frames; and 9999px (--radius-pill) to primary buttons, vote pills, and collaborator presence tags.
- 5.Interactive Sticky-Note & Dot-Voting Canvas (
StickyClusterCanvas.tsx):
Wire real state for adding sticky notes, switching sticky colors (Yellow/Mint/Coral/Sky), clicking +1 dot-vote chips updating vote tallies live, and zooming the board between 75%, 100%, and 125%.
- 6.Floating Tool Dock (
FloatingToolDock.tsx):
Provide selectable board tools (Select, Sticky, Connector, Frame, Hand) with aria-pressed active states, concise shortcut badges, and live tool status indicators.
- 7.100% Semantic CSS Variables Across Light & Dark:
Never hardcode hex literals (#fbfbfa, #050038, #ffd02f, #3b5bfd) or generic dark classes (bg-zinc-950, bg-neutral-950) inside reusable TSX templates—consume semantic var(--*) variables everywhere.
- 8.Keyboard Command Palette (
⌘K) & Capture-Phase Escape:
Bind Cmd+K / Ctrl+K to <CommandPalette /> (role="dialog" aria-modal="true") with ↑/↓/Enter/Esc traversal and nested Escape handling so open Select dropdowns close before parent overlays.
- 9.Compositor-Only Motion & Offscreen Pause:
Animate only transform, opacity, and SVG connector stroke-dashoffset using --wb-ease-spring, --wb-ease-glide, and --wb-ease-snap. Pause ambient collaborator pointer glides under [data-offscreen="true"] and honor prefers-reduced-motion: reduce.
- 10.Complete 4-State Application Coverage:
Every template directory, workshop board, and preview drawer includes Loading skeletons, Empty states with filter reset buttons, Error banners with Retry controls, and role="status" toasts.
- 11.Hero Canvas & Precision SVG Connector Craft:
Never draw physical objects with clipart <svg> polygons. Build an interactive workshop board hero card with dot-grid depth, crisp cobalt Bezier connectors, opaque rounded label pills (rx="6") that never collide with curves or stickies, and live controls.
- 12.Skip Link, Brand-Safe Copy & Automated Verification:
Include a skip-to-content link first on every page, use neutral sample teams (Northstar Product, Arbor Design, Kestrel Ops, Meridian Squad, example.com), verify 0px horizontal overflow across 390px–1440px, and pass uikits-md check whiteboard + tsc --noEmit.
4. Explicitly Forbidden Anti-Patterns
- BANNED: White text on
#ffd02f sunlit yellow buttons, pills, or sticky notes (always use #050038 midnight-indigo ink). - BANNED: Hardcoded hex values or
bg-zinc-950 / bg-neutral-950 inside reusable TSX templates. - BANNED:
rounded-3xl over-rounded panels or generic neon purple-to-pink vibecode gradients (from-indigo-500, from-purple-500, from-fuchsia-500, from-pink-500). - BANNED: Colliding SVG connector labels, static non-interactive hero whiteboards, or unguarded infinite animations lacking
prefers-reduced-motion and offscreen pause. - BANNED: Any third-party whiteboard software trademarks, external stock placeholder URLs, empty placeholder rectangles, or browser
alert() popups.
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.