Hairline-ruled analytical sheet for conversion funnels, cohort retention heatmaps, and live event streams with violet #7856ff and coral #ff6b57 series accents.
npx uikits-md@latest add prism --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-prism.
Measure multi-step conversion funnels and 6-week cohort retention live. 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 prism --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-prism.
You are building production product analytics UI with the Prism — Product Analytics UI Skill Pack (tokens/ + templates/ + architectural & governance blueprints). Pair with registry/backbone/ (uikit-backbone) when you need extended form primitives or enterprise layout scaffolds.
ANALYTICAL SHEET EXECUTION MANDATE: Never treat this pack as loose aesthetic inspiration. Frame every page on the pale ivory-cool hairline-ruled sheet (#fbfbfd light / #0e0e16 dark) divided by crisp 1px structural rules (--pr-hairline), elevate interactive chart panels onto pure --surface cards (#ffffff light / #171723 dark) at 0.5rem (8px) radius, render primary CTAs and active funnel tracks in decisive electric violet (#7856ff light / #9175ff dark) paired with warm coral (#ff6b57 light / #ff8573 dark) comparison and drop-off signals, set every metric in JetBrains Mono with tabular-nums, animate funnels, cohorts, and live rows using compositor-only curves (prFunnelBarGrow, prCohortCellCascade, prEventRowFlash, prFilterChipSnap), and deliver full Light & Dark parity automatically on the very first pass.
Always read DESIGN.md and tokens.css first, then load the exact companion specs and starter templates for your target surface:
| User Task | Required Spec Files | Drop-In Templates to Copy / Use |
|---|---|---|
| Analytics Studio / Workspace | DESIGN.md, APP_PATTERNS.md (§2–§4), MOTION.md, DATA_VIZ.md, tokens.css | templates/AnalyticsStudioShell.tsx, templates/ConversionFunnelChart.tsx, templates/RetentionCohortMatrix.tsx, templates/CommandPalette.tsx |
| Conversion Funnel Explorer | DESIGN.md, DATA_VIZ.md, MOTION.md, CONTENT.md, tokens.css | templates/ConversionFunnelChart.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx |
| Cohort Retention Heatmap | DESIGN.md, DATA_VIZ.md, ACCESSIBILITY.md, MOTION.md, tokens.css | templates/RetentionCohortMatrix.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Marketing / Product Landing | DESIGN.md, APP_PATTERNS.md (§1, §7, §11), ASSETS.md, MOTION.md, tokens.css | templates/ConversionFunnelChart.tsx, templates/Sparkline.tsx, templates/ScrollReveal.tsx, templates/StatusBadge.tsx |
| Live Event Stream & Diagnostics | DESIGN.md, APP_PATTERNS.md (§3–§4, §10), CONTENT.md, tokens.css | templates/AnalyticsStudioShell.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx |
| SQL Docs, SDKs & Settings | DESIGN.md, APP_PATTERNS.md (§5–§6, §8–§9), ACCESSIBILITY.md, tokens.css | templates/AnalyticsStudioShell.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx |
| Token Sync & Theme Bridge | tokens.css, tokens/tokens.json, tokens/tailwind.css, tokens/figma-variables.json, lint.json | All semantic CSS custom properties (var(--background)..var(--chart-5)) |
| Final Pre-Ship Gate | CHECKLIST.md, ACCESSIBILITY.md, EVALS.md, lint.json | All 7 templates verified against uikits-md check prism |
npx uikits-md@latest add prism --platform all --out .npx shadcn@latest add https://uikits.tech/r/prism.jsonget_ui_kit_skill and get_ui_kit_file for prism.npm install @phosphor-icons/react (alongside react, react-dom).src/app/layout.tsx:Load Space_Grotesk (weight: ["400", "500", "600", "700"], --font-space-grotesk) and JetBrains_Mono (weight: ["400", "500", "600"], --font-jetbrains-mono), attach both font variables to <html>, and apply .pr-root on <body> using bg-[var(--background)] text-[var(--foreground)].
tokens.css & tokens/tailwind.css:Import tokens.css and tokens/tailwind.css right after @import "tailwindcss"; in src/app/globals.css. This registers Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) palettes, the 6-tier cohort heatmap scale (--pr-cohort-0..--pr-cohort-5), hairline sheet utilities (.pr-sheet-frame, .pr-rule-b, .pr-rule-r), compositor keyframes, [data-offscreen="true"] pauses, and accessibility media queries.
Copy all 7 drop-in TSX templates into src/components/uikit-prism/: AnalyticsStudioShell.tsx, ConversionFunnelChart.tsx, RetentionCohortMatrix.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
Every UI deliverable authored with uikit-prism MUST satisfy all 12 engineering contracts on the very first pass:
max-w-[1200px] and studio workspaces inside max-w-[1440px] over --background (#fbfbfd light / #0e0e16 dark), subdivided by 1px solid var(--pr-hairline) architectural rules (.pr-sheet-frame, .pr-rule-b, .pr-rule-r). Never paint full-page light canvases pure #ffffff; reserve pure #ffffff (--surface / --card) for chart cards and interactive data panels.var(--background), var(--surface), var(--foreground), var(--primary), var(--highlight), var(--pr-cohort-0..5), var(--chart-1..5)). Switching between [data-theme="light"] and [data-theme="dark"] must flip every chart, badge, cohort cell, and drawer without stale colors.var(--foreground) (#181826 light / #f4f4fa dark) and secondary metadata in var(--muted-foreground) (#62627a light / #9d9db8 dark). Never use #000000, text-black, or bg-black.var(--primary) (#7856ff light with #ffffff ink; #9175ff dark with #0e0e16 ink) for the single primary action per fold, active tab/filter state, and Series 1 funnel tracks. Pair var(--highlight) (#ff6b57 light / #ff8573 dark) strictly for drop-off deltas, comparison cohorts, and Variant B experimentation overlays.tabular-nums Monospace Data: Set analytical headlines in Space Grotesk (48px hero / -0.025em tracking; 28px section / -0.015em). Set every KPI figure, conversion rate (64.8%), drop-off delta (-12.4%), retention cell (78%), SQL identifier, and ISO timestamp in JetBrains Mono with .pr-tabular (font-variant-numeric: tabular-nums) and right-aligned table columns.ConversionFunnelChart.tsx): Every funnel stage MUST display both step-to-step conversion rate and cumulative drop-off percentage, offer a live segment toggle (All Users vs. Comparison Cohort), animate bars horizontally via .pr-funnel-bar (prFunnelBarGrow on scaleX), and support keyboard selection of individual steps to inspect drop-off diagnostics.RetentionCohortMatrix.tsx): Render retention grids using --pr-cohort-0 through --pr-cohort-5 paired with matching --pr-cohort-ink-0..5 foreground tokens so every cell meets >= 4.59:1 AA contrast across Light and Dark themes. Never rely on background opacity alone—print numeric percentages inside each cell and cascade cells via .pr-cohort-cell.0.5rem Analytical Geometry: Keep chart cards and panels at var(--radius) (0.5rem / 8px), action controls and inputs at var(--radius-btn) (0.375rem / 6px), heatmap cells at var(--radius-sm) (0.25rem / 4px), modals at var(--radius-lg) (0.75rem / 12px), and filter chips/status pills at 9999px. Never apply rounded-2xl or rounded-3xl.transform and opacity using --ease-expo (cubic-bezier(0.19, 1, 0.22, 1)), --ease-snap (cubic-bezier(0.22, 0.61, 0.36, 1)), and --ease-glide (cubic-bezier(0.215, 0.61, 0.355, 1)). Pause ambient live-stream dots whenever [data-offscreen="true"] is set, honor @media (prefers-reduced-motion: reduce), and gate scroll reveals behind html.js-ready so content remains visible without JS.Escape Stack: Provide a visible-on-focus skip link (<a href="#main-content">Skip to content</a>), a ⌘K / Ctrl+K command palette (CommandPalette.tsx) with ArrowUp/ArrowDown/Enter/Escape, and e.stopPropagation() on nested modal/drawer Escape handlers so pressing Escape dismisses only the topmost layer and restores focus to its trigger.@phosphor-icons/react Exclusive Iconography & Procedural Visuals: Import verified @phosphor-icons/react symbols (Funnel, ChartBar, Pulse, TrendUp, TrendDown, MagnifyingGlass, SlidersHorizontal, ArrowsClockwise, Command, Lightning, CheckCircle, Warning, Code, Moon, Sun). Never ship external placeholder image URLs or bare empty wireframe boxes.var(--destructive)), and Experiment Guardrail Warning (var(--warning)) states on every dashboard view, verify zero horizontal viewport overflow at 390×844 and 1440×900, and keep horizontal cohort tables enclosed in an internal overflow-x-auto wrapper with sticky first cohort column.AnalyticsStudioShell + top filter chip bar (All Events, Web, iOS, Compare Cohort) + 4-up .pr-metric-card KPI strip with <Sparkline /> + <ConversionFunnelChart /> + live event drop-off log with .pr-event-flash.Weekly Active, Query Executed, Billing Activated) + <RetentionCohortMatrix /> with 6-tier violet scale legend + interactive cohort inspector panel.<StatusBadge tone="success" /> ("Statistically Significant · p < 0.01") + Control (--chart-1 violet) vs. Treatment (--chart-2 coral) uplift bar comparison + guardrail latency table.--pr-chapter-bg (#16132c) SQL/TypeScript code blocks + interactive schema property table + copy confirmation live region.#hex or rgb(...) values inside TSX className utilities or style objects where Light/Dark semantic tokens (var(--...)) belong.rounded-2xl, rounded-3xl, shadow-2xl, bg-black, text-black, bg-zinc-950, or generic multi-stop rainbow gradients (from-indigo-500, from-purple-500, from-fuchsia-500, to-pink-500).#ffffff page backgrounds on light marketing or workspace shells (always contrast pure #ffffff chart cards over the #fbfbfd hairline-ruled canvas).font-mono tabular-nums / .pr-tabular).Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, and example.com).<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, 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.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.