uikits.tech
Explore
HomeAll Packs84
Tools
AI RecommenderURL ExtractorUI GraderToken RemixPrompt StudioCompare KitsMotion Lab
Resources
DocsChangelogFAQSubmit PackSponsor
uikits.tech
uikits.tech/Pack · prism
Star on GitHub
Sign inSign up
uikits.tech

Complete design systems, smooth animations, and app layouts for AI coding agents.

Product
  • All Packs
  • Recommender
  • URL Extractor
  • UI Grader
  • Compare Kits
  • Prompt Studio
  • Token Remix
  • Motion Lab
  • Install CLI
  • Skill Spec
UI Packs
  • Canopy
  • Obsidian
  • Ledger
  • Alabaster
  • Monolith
  • +79 more →
Resources
  • Docs
  • Submit Pack
  • Changelog
  • FAQ
  • Sponsor
  • Account
  • Privacy Policy
  • Terms of Use
  • MIT License
  • llms.txt
84 Live Packs: Canopy · Obsidian · Ledger · Alabaster · Monolith · +79 more · MITCLI · MCP Server · Skill Files · Authenticated ZIP
uikits.tech
Back to all packs
v2.2.0 · stableanalytics-bi27 files · Space Grotesk + JetBrains Mono

Prism — Product Analytics

Hairline-ruled analytical sheet for conversion funnels, cohort retention heatmaps, and live event streams with violet #7856ff and coral #ff6b57 series accents.

Surfaces:landingsaas-appdashboardauthformsdocssettingsdata-viz
npx uikits-md@latest add prism --platform all --out .
Installs full v2.2.0 pack into .agents, .claude, .cursor, .codex & components/
Remix TokensComparePrompt StudioMotion Lab
Design System Overview

Colors, Typography & Layout Style

Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-prism.

Color palette & contrast
Balance: 48% Background · 22% Surface · 14% Text · 10% Accent · 6% Highlight
Live Typography Specimen (Space Grotesk · JetBrains Mono · Space Grotesk)
Display / HeroSpace Grotesk
Measure multi-step conversion funnels and 6-week cohort retention live
tracking: -0.025em · leading: 1.2
UI & Prose BodySpace Grotesk

Measure multi-step conversion funnels and 6-week cohort retention live. Crisp hierarchy with intentional whitespace and zero decorative noise.

14px–16px · leading: 1.6 · WCAG 2.2 AA
Tabular Metrics & IDsJetBrains Mono
CONVERSION
38.4%
EVENTS/MO
24.8M
font-mono tabular-nums · exact column alignment
Surface & Geometry Primitives
Canvas Ground
var(--background)
1px hairline grid rules
Surface Layer
Analytical Sheet
var(--surface) · Dual-Mode
Tactile Radius
--radius: 0.5rem
Enforced by lint.json
Motion Profile & Recommended Fit
funnel-bar-growcohort-cell-cascademetric-card-liftevent-row-flashfilter-chip-snap
Product analytics studios, conversion funnel explorers & drop-off diagnostics
Cohort retention heatmaps, activation ladders & lifecycle reporting
A/B experimentation consoles, feature flag rollouts & uplift scorecards
Live event telemetry streams, SQL query workbenches & executive BI hubs

Install uikit-prism

Install with the CLI, shadcn, an AI agent prompt, MCP, or download the ZIP directly.

Install with CLI

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 .

Inspect Full Skill Pack (27 files)

Browse the design specs, theme variables, and React templates included in uikit-prism.

Files
Specs & Docs (17)
Tokens (3)
Drop-In TSX Templates (7)
SKILL.md· 108 lines
Master task routing protocol & 12-point first-pass contract
name:uikit-prism
description:Implements hairline-ruled product analytics studios, conversion funnel explorers, cohort retention heatmaps, A/B experimentation scorecards, live event streams, SQL documentation workbenches, and settings consoles using the Prism — Product Analytics design system (W3C DTCG tokens, Tailwind v4 @theme, Light & Dark modes, 7 CSS-variable-first TSX templates, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"prism"
version:"2.2.0"
category:"analytics-bi"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/prism-hero.webp"
uikit-prism — Master Execution Protocol (v2.2.0)

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.


1. Task-Based Read Routing

Always read DESIGN.md and tokens.css first, then load the exact companion specs and starter templates for your target surface:

User TaskRequired Spec FilesDrop-In Templates to Copy / Use
Analytics Studio / WorkspaceDESIGN.md, APP_PATTERNS.md (§2–§4), MOTION.md, DATA_VIZ.md, tokens.csstemplates/AnalyticsStudioShell.tsx, templates/ConversionFunnelChart.tsx, templates/RetentionCohortMatrix.tsx, templates/CommandPalette.tsx
Conversion Funnel ExplorerDESIGN.md, DATA_VIZ.md, MOTION.md, CONTENT.md, tokens.csstemplates/ConversionFunnelChart.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx
Cohort Retention HeatmapDESIGN.md, DATA_VIZ.md, ACCESSIBILITY.md, MOTION.md, tokens.csstemplates/RetentionCohortMatrix.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Marketing / Product LandingDESIGN.md, APP_PATTERNS.md (§1, §7, §11), ASSETS.md, MOTION.md, tokens.csstemplates/ConversionFunnelChart.tsx, templates/Sparkline.tsx, templates/ScrollReveal.tsx, templates/StatusBadge.tsx
Live Event Stream & DiagnosticsDESIGN.md, APP_PATTERNS.md (§3–§4, §10), CONTENT.md, tokens.csstemplates/AnalyticsStudioShell.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx
SQL Docs, SDKs & SettingsDESIGN.md, APP_PATTERNS.md (§5–§6, §8–§9), ACCESSIBILITY.md, tokens.csstemplates/AnalyticsStudioShell.tsx, templates/StatusBadge.tsx, templates/CommandPalette.tsx
Token Sync & Theme Bridgetokens.css, tokens/tokens.json, tokens/tailwind.css, tokens/figma-variables.json, lint.jsonAll semantic CSS custom properties (var(--background)..var(--chart-5))
Final Pre-Ship GateCHECKLIST.md, ACCESSIBILITY.md, EVALS.md, lint.jsonAll 7 templates verified against uikits-md check prism

2. Bootstrap Procedure (Step 0 Before Writing Components)
  • 1.Install via CLI, Registry, or MCP:
  • CLI: npx uikits-md@latest add prism --platform all --out .
  • Registry: npx shadcn@latest add https://uikits.tech/r/prism.json
  • MCP: invoke get_ui_kit_skill and get_ui_kit_file for prism.
  • Peer dependencies: npm install @phosphor-icons/react (alongside react, react-dom).
  • 2.Wire Fonts in 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)].

  • 3.Import 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.

  • 4.Install Starter Primitives:

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.


3. First-Pass Mandatory Execution Rules (12 Contracts)

Every UI deliverable authored with uikit-prism MUST satisfy all 12 engineering contracts on the very first pass:

  • 1.Hairline-Ruled Spec Sheet Canvas: Frame marketing pages inside 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.
  • 2.100% Semantic CSS Variables (Zero Hardcoded Hex in JSX): Every component class and inline style MUST resolve through CSS custom properties (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.
  • 3.Deep Indigo-Ink Hierarchy (Zero Pure Black): Render headings and primary metrics in 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.
  • 4.Electric Violet Lead + Warm Coral Comparison Split: Reserve 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.
  • 5.Space Grotesk Display + Mandatory 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.
  • 6.Interactive Conversion Funnels (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.
  • 7.WCAG AA 6-Tier Cohort Retention Matrix (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.
  • 8.Rounded 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.
  • 9.Compositor-Only Motion & Offscreen Pausing: Animate strictly 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.
  • 10.Keyboard-First Studio & Nested 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.
  • 11.@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.
  • 12.Complete Analytical App States & Responsive Integrity: Ship styled Loading Skeleton, Empty Query, Ingestion Error (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.

4. Blueprint Recipes (Quick Reference)
  • Conversion Funnel Explorer: 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.
  • Cohort Retention Workbench: Date-window selector + metric selector (Weekly Active, Query Executed, Billing Activated) + <RetentionCohortMatrix /> with 6-tier violet scale legend + interactive cohort inspector panel.
  • A/B Experimentation Scorecard: Hypothesis header + <StatusBadge tone="success" /> ("Statistically Significant · p < 0.01") + Control (--chart-1 violet) vs. Treatment (--chart-2 coral) uplift bar comparison + guardrail latency table.
  • SQL & SDK Documentation Hub: Sticky 240px left nav + deep-indigo --pr-chapter-bg (#16132c) SQL/TypeScript code blocks + interactive schema property table + copy confirmation live region.

5. Explicitly Banned Anti-Patterns
  • BANNED: Hardcoding #hex or rgb(...) values inside TSX className utilities or style objects where Light/Dark semantic tokens (var(--...)) belong.
  • BANNED: 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).
  • BANNED: Pure white #ffffff page backgrounds on light marketing or workspace shells (always contrast pure #ffffff chart cards over the #fbfbfd hairline-ruled canvas).
  • BANNED: Proportional jumping digits in KPI cards, funnel step counters, retention matrices, or latency columns (always apply font-mono tabular-nums / .pr-tabular).
  • BANNED: Color-only semantic encoding without icons, text deltas, or numeric values inside cohort cells and experiment badges.
  • BANNED: Third-party placeholder media URLs, empty gray image boxes, or third-party trademarks/competitor names in sample dashboards, event schemas, or documentation (use neutral workspace fixtures like Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, and example.com).
Hero Card & Visual Craft Mandate
  • Zero Clipart SVGs for Real-World Subjects: Never draw buildings, interiors, fashion garments, hardware devices, vehicles, food, people, or cinema frames using flat <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).
  • High-Craft Technical Hero Cards & Precision SVGs: When rendering data visualizations, topology graphs, waveforms, or telemetry inside a Hero Card, enforce subtle specular top-edge hairlines (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.
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.