Modern web framework showcase pairing dark hairline-ruled cells, electric-violet and mint highlights, instant HMR benchmark bars, and serif doc bands.
npx uikits-md@latest add spark --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-spark.
Ship instant HMR builds across hairline-ruled dark modules and serif docs. Crisp hierarchy with intentional whitespace and zero decorative noise.
Install with the CLI, shadcn, an AI agent prompt, MCP, or download the ZIP directly.
One command adds the full design system, motion rules, and React templates to your project and coding agents.
npx uikits-md@latest add spark --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-spark.
You are building commercial-grade frontend build-tool showcases, full-stack web framework portals, live HMR benchmark runners, plugin/module graph registries, and editorial technical documentation hubs with the Spark — Build Framework UI Skill Pack (tokens/ + templates/ + lint.json + engineering specifications). Pair with registry/backbone/ (uikit-backbone) whenever an application requires extended form controls or multi-route skeletons beyond the 7 Spark starter templates.
FIRST-PASS PRECISION MANDATE: Apply every visual token, dual-mode CSS custom property, hairline-ruled cell grid, electric-violet and mint accent polarity, calibrated cubic-bezier motion primitive, keyboard contract, accessibility landmark, and build-pipeline state automatically on the very first pass. Never leave low-contrast white-on-mint buttons, unwired package-manager tabs, broken editorial paper light mode, external stock placeholder media URLs, or stuck reveal containers for a follow-up turn.
Always load DESIGN.md, tokens.css, and lint.json first, then route to the exact companion specification files and starter templates for your target surface:
| User Task / Surface | Required Specification Files | Drop-In Templates (templates/*.tsx) |
|---|---|---|
| Framework Showcase Landing & Hero | DESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, ACCESSIBILITY.md, tokens.css | templates/HmrBenchmarkPanel.tsx, templates/ModuleGraphGrid.tsx, templates/ScrollReveal.tsx, templates/StatusBadge.tsx |
| Build Workspace & Dev Server Console | DESIGN.md, APP_PATTERNS.md (§2–§4), DATA_VIZ.md, MOTION.md, ACCESSIBILITY.md | templates/FrameworkDocsShell.tsx, templates/HmrBenchmarkPanel.tsx, templates/ModuleGraphGrid.tsx, templates/Sparkline.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx |
| HMR Benchmarks & Performance Telemetry | DESIGN.md, APP_PATTERNS.md (§3, §4), DATA_VIZ.md, MOTION.md, tokens.css | templates/HmrBenchmarkPanel.tsx, templates/Sparkline.tsx, templates/StatusBadge.tsx |
| Plugin & Module Graph Explorer | DESIGN.md, APP_PATTERNS.md (§3, §4, §9), CONTENT.md, MOTION.md | templates/ModuleGraphGrid.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Documentation Shell & Editorial Guides | DESIGN.md, APP_PATTERNS.md (§1, §6, §11), CONTENT.md, ACCESSIBILITY.md | templates/FrameworkDocsShell.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Settings, Compiler Config & Theme Sync | DESIGN.md, APP_PATTERNS.md (§5, §9), ACCESSIBILITY.md, tokens.css | templates/FrameworkDocsShell.tsx, templates/StatusBadge.tsx |
| Pricing, Cloud Build Tiers & Auth | DESIGN.md, APP_PATTERNS.md (§7, §8), ACCESSIBILITY.md, CONTENT.md | templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Token Export & Design-Tool Handoff | DESIGN.md, tokens.css, tokens/tokens.json, tokens/tailwind.css, tokens/figma-variables.json, lint.json | All 7 templates verified strictly against var(--...) custom properties |
| Mandatory Final Verification Gate | CHECKLIST.md, EVALS.md, NOTICE.md, lint.json | Run npx uikits-md check spark --dir . + tsc --noEmit |
src/app/layout.tsx:Import Plus_Jakarta_Sans (weights 400, 500, 600, 700, --font-plus-jakarta-sans) and JetBrains_Mono (weights 400, 500, 600, --font-jetbrains-mono) via next/font/google. Attach both CSS variable classes to <html> and apply sp-root bg-[var(--background)] text-[var(--foreground)] font-sans antialiased to <body>. Serif documentation intro bands automatically resolve --font-serif (Georgia, "Iowan Old Style", "Times New Roman", serif).
@theme Bridge:Import tokens.css and tokens/tailwind.css immediately after your base utility stylesheet in src/app/globals.css. Dark mode (#101116 canvas / #181a22 cells) activates by default on :root, [data-theme="dark"], and .dark; Editorial Paper Light Mode (#fafaf8 paper / #ffffff surfaces / #059669 accent) activates cleanly under [data-theme="light"] and .light.
Run npx uikits-md@latest add spark --platform all --out . and install @phosphor-icons/react.
Engineered for React 18+/19+, Next.js 14+/16+ App Router, CSS v4 @theme, and TypeScript 5+. Maintain 0.5rem (8px) calibrated rounding on controls and panels while keeping outer ruled section cells flush (0px) where hairlines intersect.
Anchor default dark marketing and workspace views on #101116 (var(--background)) sliced into #181a22 (var(--surface)) cells by 1px solid var(--border) rules with .sp-tick-frame violet intersection crosshairs. Never drop disconnected oversized cards onto generic bg-slate-900 or bg-zinc-950 backgrounds.
In Dark mode, pair #071c14 (var(--primary-foreground)) on #34d399 (var(--primary) / var(--accent)) for 9.22:1 AAA primary actions and HMR pass fills—NEVER place white text over #34d399. Reserve Electric Violet (#8b5cf6 / --sp-violet-text: #a78bfa) for secondary highlight rings, active guide markers, cell hairline glows, and hero halo accents.
Switching to [data-theme="light"] / .light MUST cleanly flip the workspace into warm #fafaf8 editorial paper, #ffffff surfaces, #16181d ink (16.99:1 AAA), #047857/#059669 emerald controls, and #6d28d9 deep-violet documentation links. Set long-form release essays, guide introductions, and manifesto callouts in .sp-serif-band (Georgia serif) to create tactile separation between narrative reading and monospace config mechanics.
Bind every background, foreground, border, badge tone, meter fill, and SVG stroke in React templates to semantic CSS variables (var(--background), var(--surface), var(--foreground), var(--muted-foreground), var(--primary), var(--primary-foreground), var(--highlight), var(--border), var(--chart-1)..--chart-5) so Dark and Light themes invert instantaneously with zero leaks.
Set display headlines in Plus Jakarta Sans weight 500–600 with tight proportional negative tracking (-0.035em at 56px–72px, -0.025em at 40px–48px), UI controls at 14px–15px, and every CLI install command, module bundle size (12.4 kB), cold start (118 ms), and HMR update (14 ms) in JetBrains Mono with font-variant-numeric: tabular-nums.
HmrBenchmarkPanel.tsx):Visualize dev-server cold start, HMR hot-update latency, and production bundle time with horizontal .sp-hmr-bar bars driven by @keyframes spHmrBarRace (scaleX(0 -> 1) over 540ms cubic-bezier(0.22, 1, 0.36, 1)). Wire scenario tabs (Cold Start, HMR Update, Prod Build) and a live Re-run benchmark trigger so users can replay and compare real timings interactively.
0.5rem Default):Use 0.5rem (8px, rounded-[var(--radius)]) for buttons, code blocks, search triggers, dialogs, and standalone cards; 0.25rem (4px) for inline code and <kbd> chips; 0px (rounded-none) for flush hairline-ruled section cells; and 9999px strictly for compact release-announcement pills and status dots. Never use rounded-2xl, rounded-3xl, shadow-xl, or blur-3xl.
Implement Spark's 5 signature motions (cell-hairline-glow, hmr-bar-race, code-tab-glide, pill-spring-snap, hero-halo-breathe) strictly via compositor properties (transform, opacity). Pause ambient infinite animations (.sp-hero-halo, .sp-cell-glow::after, .sp-skeleton) whenever containers scroll offscreen via [data-offscreen="true"], and suppress all transitions/animations under @media (prefers-reduced-motion: reduce).
Render above-the-fold hero headlines and interactive install tabs immediately on initial paint. Wrap below-the-fold ruled bands and module grids in <ScrollReveal delayMs={...}> (50ms–70ms sibling stagger). For horizontal scroll rails (overflow-x-auto), wrap the outer container only. Always preserve html.js-ready + @media (scripting: none) fallback visibility.
Wire real state for package-manager install tabs (npm, pnpm, yarn, spark), copy-to-clipboard CLI commands (1.8s "Copied" state), module category filter pills + search + inspector panel, ⌘K / Ctrl+K <CommandPalette> (ArrowUp/ArrowDown/Enter/Esc + focus restoration), collapsible docs sidebar, and nested Escape dismissal.
Ship styled Loading (.sp-skeleton), Empty (calm hairline cell + filter-reset action), Error (var(--destructive) subtle border/tint + Retry build), and Toast (role="status") states. Import all UI icons exclusively from @phosphor-icons/react (weight="regular"), never external stock placeholder media URLs or bare text boxes.
Render <a href="#main-content">Skip to content</a> as the first focusable element on every route, confirm 0px horizontal overflow at 390×844 and 1440×900, confirm saved Settings visibly persist into target docs/workspace views, and pass npx uikits-md check spark --dir . + tsc --noEmit with zero errors.
.sp-hero-halo atmospheric wash anchored on var(--background) framed by 1px solid var(--border) outer vertical rules..sp-pill-snap version announcement pill (v4.2 · Sub-15ms HMR), Plus Jakarta Sans <h1> (clamp(2.5rem, 5.5vw, 4.5rem), -0.035em tracking), muted technical lead copy, primary .sp-btn-primary (Get Started — #071c14 on #34d399) + secondary .sp-btn-outline (Read the Guide), and an interactive tabbed CLI install switcher (npm / pnpm / yarn / spark) with .sp-code-tab glide underlines and copy button.2×2 .sp-ruled-cell.sp-tick-frame matrix pairing copy on top with embedded terminal/module visual panels below.<HmrBenchmarkPanel /> inside a 1px solid var(--border) ruled band with interactive scenario tabs (Cold Start, HMR Update, Prod Build), live replay button, and comparative ms bars.<LayeredModuleGraph /> / <ModuleGraphGrid /> (templates/ModuleGraphGrid.tsx): a DOM-first 4-tier layered ESM module dependency graph (01 ENTRY, 02 PACKAGES, 03 ROUTES, 04 CHUNKS) where every module is a full-text HTML/DOM <button> card (>= 12.5px semibold unclipped name, >= 11px mono tabular-nums transform time + proportional micro-bar, synced gzip/raw kB weight, semantic status LED, and click-driven upstream/downstream emerald/violet highlighting with unrelated dimming), separated by dedicated column gutter connectors (→ desktop, 2×2 with 02→03 ↓ bridge at <= 820px, 1-col ↓ stack at <= 520px)—paired with the searchable plugin directory and slide-in dependency inspector.<FrameworkDocsShell />: 64px translucent sticky header with ⌘K search button and Dark ↔ Editorial Paper theme toggle, horizontally collapsible 264px left guide sidebar (default closed on mobile, role="dialog" drawer), readable 68ch central column featuring .sp-serif-band essay callouts alongside JetBrains Mono fenced config blocks, and a 200px right "On this page" outline rail.#34d399 Mint Emerald buttons or badges—always pair #34d399 with var(--primary-foreground) (#071c14, 9.22:1 AAA).rounded-2xl, rounded-3xl), heavy drop shadows (shadow-xl), ambient neon blobs (blur-3xl), generic rainbow gradients (bg-gradient-to-r from-indigo-500, from-purple-500), or generic bg-slate-900 / bg-zinc-950 grounds.#hex color values inside reusable React TSX templates—consume semantic CSS variables exclusively so Dark and Light Editorial Paper modes switch cleanly.prefers-reduced-motion fallbacks.<svg><rect><text> module-graph node boxes, connector paths crossing over node labels, or redundant duplicate node-picker chip rows underneath an SVG graph—always build module topologies as real keyboard-accessible HTML/DOM node cards with connectors isolated strictly inside column gutters.<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).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.01 → 02 → 03 <circle> SVGs, clipped <svg><rect><text> boxes, or redundant duplicate pill-button rows underneath. Render real HTML/DOM node <button> cards arranged in layered dependency tiers (01 ENTRY, 02 PACKAGES, 03 ROUTES, 04 CHUNKS) with full unclipped titles (>= 12.5px semibold), >= 11px tabular-nums telemetry + proportional timing micro-bars, semantic status LEDs, upstream/downstream emerald/violet relation highlighting, and directional connectors placed strictly inside dedicated column gutters (@container-responsive at 820px and 520px).tabular-nums value, an inline semantic delta (no redundant pill chrome), and a compact composition bar or sparkline grounded in real row data.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.<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.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.