Soft white cards over subtle drafting grain with near-black pill actions, indigo-teal schema relations, and type-safe query studio panels.
npx uikits-md@latest add prismadb --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-prismadb.
Inspect typed relational models and zero-downtime SQL migration diffs. 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 prismadb --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-prismadb.
You are building production TypeScript ORM workbenches, declarative schema migration studios, and edge connection accelerator platforms with the Prismadb — TypeScript ORM UI Skill Pack (tokens/ + templates/ + empirical subpage & governance blueprints). Pair with registry/backbone/ (uikit-backbone) whenever an application requires extended form controls or multi-route layout scaffolding beyond the 7 Prismadb starter templates.
FIRST-PASS STUDIO EXECUTION MANDATE: Never treat this pack as a generic developer template. Anchor Light mode on subtle drafting-grain canvas (#f9fafb) layered with soft white stacked-paper cards (#ffffff, 0.75rem / 12px radius, crisp 1px solid #e5e7eb edges), decisive near-black pill CTAs (#111827 fill, #ffffff ink at 17.74:1 AAA, subtle top inset highlight) paired with thin outlined secondary pills, accessible teal primary accents (#0f766e, #ffffff ink at 5.47:1 AA) and indigo schema-relation highlights (#4f46e5, #ffffff ink at 6.29:1 AA), Space Grotesk (500) display headings over Inter (400–600) UI copy and JetBrains Mono (tabular-nums) schema/SQL panels, all 5 calibrated motion behaviors (relation-edge-trace, card-soft-settle, pill-crisp-press, migration-step-fade, badge-snap), and complete deep-slate Dark Mode (#0c1017 canvas, #151b26 surface, #f3f6fa ink, #2dd4bf accent with #0c1017 AAA ink) automatically on the very first pass.
Always inspect DESIGN.md, tokens.css, and lint.json first, then load the exact companion specifications and drop-in starter templates for the surface you are authoring:
| User Task / Surface | Required Specification Files | Machine Tokens & Rules | Drop-In Templates (templates/*.tsx) |
|---|---|---|---|
| ORM Platform Landing & Hero Band | DESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, tokens.css | tokens/tokens.json, tokens/tailwind.css | templates/ScrollReveal.tsx, templates/SchemaRelationDiagram.tsx, templates/TypedQueryEditor.tsx, templates/StatusBadge.tsx |
| Schema Studio & App Workspace Shell | DESIGN.md, APP_PATTERNS.md (§2–§3), MOTION.md, ACCESSIBILITY.md, tokens.css | tokens/tokens.json, tokens/tailwind.css, lint.json | templates/OrmStudioShell.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx |
| Interactive Entity-Relation Graph | DESIGN.md, APP_PATTERNS.md (§2, §4), MOTION.md, ASSETS.md, tokens.css | tokens/tokens.json | templates/SchemaRelationDiagram.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Type-Safe Query Editor & SQL Inspector | DESIGN.md, APP_PATTERNS.md (§4, §10), MOTION.md, CONTENT.md, tokens.css | tokens/tokens.json | templates/TypedQueryEditor.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx |
Global ⌘K Schema & Query Palette | DESIGN.md, APP_PATTERNS.md (§2), MOTION.md, ACCESSIBILITY.md, tokens.css | tokens/tokens.json | templates/CommandPalette.tsx, templates/OrmStudioShell.tsx |
| Migration Activity & Settings Console | DESIGN.md, APP_PATTERNS.md (§3, §5, §9), ACCESSIBILITY.md, tokens.css | tokens/tokens.json, tokens/figma-variables.json | templates/OrmStudioShell.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| SDK Docs, Pricing & Auth Flows | DESIGN.md, APP_PATTERNS.md (§6–§8, §11), CONTENT.md, ACCESSIBILITY.md, tokens.css | tokens/tokens.json, tokens/tailwind.css | templates/TypedQueryEditor.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Connection Pool & Latency Telemetry | DESIGN.md, DATA_VIZ.md, APP_PATTERNS.md (§2–§3, §10), tokens.css | tokens/tokens.json | templates/Sparkline.tsx, templates/StatusBadge.tsx |
| Any UI Task (Mandatory Final Gate) | CHECKLIST.md, EVALS.md, ACCESSIBILITY.md, NOTICE.md | lint.json, meta.json | Run npx uikits-md check prismadb --dir . + tsc --noEmit |
Complete all four setup steps before building screens:
npx uikits-md add prismadb --platform all --out .npx shadcn@latest add https://uikits.tech/r/prismadb.jsonget_ui_kit_skill and get_ui_kit_file for prismadb.npm install @phosphor-icons/react (peer dependencies: react, react-dom, @phosphor-icons/react).src/app/layout.tsx:Import Space_Grotesk (weight: ["500", "600"], variable --font-space-grotesk), Inter (weight: ["400", "500", "600"], variable --font-inter), and JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono) via next/font/google. Attach all three CSS variables to <html> and apply .pm-root to <body>.
tokens.css & tokens/tailwind.css:Place tokens.css and tokens/tailwind.css directly after your root stylesheet import in src/app/globals.css. This activates Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) token scopes, .pm-drafting-grain, .pm-card, .pm-btn-pill, .pm-code-well, 6 compositor keyframes, [data-offscreen="true"] pause guards, and accessibility media queries.
Install into src/components/uikit-prismadb/: OrmStudioShell.tsx, SchemaRelationDiagram.tsx, TypedQueryEditor.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
Every surface authored under uikit-prismadb MUST fulfill all 12 rules on the first pass:
Ground light pages on var(--background) (#f9fafb) enhanced with .pm-drafting-grain (20px subtle dot grid), float crisp #ffffff (var(--surface)) cards framed by 1px solid var(--border) (#e5e7eb) and --pm-shadow-card, and transition cleanly in .dark / [data-theme="dark"] to #0c1017 canvas and #151b26 cards.
Use near-black pill actions (.pm-btn-pill, #111827 fill with #ffffff ink at 17.74:1 AAA; porcelain #f3f6fa with #0c1017 ink in Dark mode) for primary page and studio commitments (Deploy Migration, Run Query, Start Building), thin outlined pills (.pm-btn-outline) for secondary controls, accessible teal (var(--primary) #0f766e light / #2dd4bf dark) for active ORM states and focus rings, and indigo (var(--highlight) #4f46e5 light / #818cf8 dark) for foreign-key relations and connection pooling signals.
Never pair white text over dark-mode #2dd4bf teal or #818cf8 indigo fills. Always pair dark-mode --primary (#2dd4bf) and --highlight (#818cf8) with var(--primary-foreground) / var(--highlight-foreground) (#0c1017, delivering 10.24:1 AAA and 6.39:1 AA respectively).
Never embed #f9fafb, #ffffff, #111827, #0f766e, #4f46e5, #0c1017, bg-zinc-950, or bg-neutral-950 inside reusable template JSX. Bind every surface, ink tone, border, code well, and chart series strictly to semantic CSS variables (var(--background), var(--surface), var(--foreground), var(--primary), var(--highlight), var(--pm-code-bg), var(--border)).
0.75rem Default + Full Pill Actions):Apply 0.75rem (12px, var(--radius)) to studio cards, query panels, and command dialogs; 0.5rem (8px, var(--radius-sm)) to keycaps, schema file chips, and inputs; 1.125rem (18px, var(--radius-lg)) to elevated showcase tiles; 1.5rem (24px, var(--radius-band)) to framed drafting bands; and 9999px (rounded-full) to every CTA pill and status badge. Never use rounded-3xl or shadow-2xl.
500 Display + Inter UI + Tabular JetBrains Mono:Set heroes, section titles, card titles, and pricing digits in .pm-display (Space Grotesk weight 500, tight tracking -0.02em), UI copy and buttons in Inter (400–600), and every schema model field, migration timestamp (20261204_add_billing_ledger), query latency (3.4 ms), pool ratio (42/100), row count, and SQL statement in .pm-mono (JetBrains Mono with tabular-nums).
SchemaRelationDiagram.tsx):Render an Active Relation Graph Bar directly above linked HTML/DOM model cards over .pm-drafting-grain—never redundant <svg><rect><text> node pills or colliding Bezier curves. Provide clickable typed foreign-key relation chips (Source [1:N] → Target · fkField) with cardinality badges and live join/referential-action readout (ON DELETE RESTRICT / CASCADE / SET NULL), model cardinality filters (All, 1:N, 1:1, Indexed), bidirectional click highlighting (clicking either a relation chip OR a model card spotlights both source/target or upstream/downstream DOM model cards AND highlights exact emerald PK & indigo FK → Model field rows), semantic status LEDs, inline >= 11px tabular-nums latency & row-count telemetry micro-bars, and one-click schema.pmdb model copy with aria-live="polite" confirmation.
TypedQueryEditor.tsx):Provide switchable ORM presets (findMany, aggregate, $transaction), editable dark slate code well (var(--pm-code-bg)) with line numbers and Cmd/Ctrl+Enter execution, simulated run feedback, tabbed Typed Output / Generated SQL / Explain Plan panes animated via .pm-step-fade, and clipboard SQL copy.
⌘K Schema Command Palette & Nested Escape (CommandPalette.tsx):Bind Cmd+K / Ctrl+K and header search to <CommandPalette /> (role="dialog" aria-modal="true") with ArrowUp/ArrowDown/Enter traversal, trigger focus restoration, and nested Escape (clears non-empty search text first via stopPropagation(), closes dialog second).
Implement relation-edge-trace, card-soft-settle, pill-crisp-press, migration-step-fade, and badge-snap in tokens.css using GPU-composited transforms, opacity, and SVG stroke offsets. Pause ambient loops under [data-offscreen="true"], keep .pm-reveal visible without JavaScript (html.js-ready + @media (scripting: none)), and honor @media (prefers-reduced-motion: reduce).
Include <a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to studio workspace</a> and <main id="main-content"> on every route, plus styled Loading (.pm-skeleton), Empty (dashed card + clear reset CTA), Error (role="alert" crimson wash + Retry), and Toast (role="status") patterns.
@phosphor-icons/react Exclusive Iconography & Brand-Safe Data:Import icons exclusively from @phosphor-icons/react (aria-hidden="true" on decorative icons, aria-label on icon-only buttons). Use only original neutral schema/org fixtures (Prismadb, Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, example.com) and zero external stock placeholder URLs.
<OrmStudioShell /> with frosted top bar (Northstar Ledger / schema.pmdb), branch switcher (main / preview), 4-card KPI strip (Query p50, Pool Hit Rate, Active Connections, Applied Migrations) paired with <Sparkline series={1..4} />, stacked <SchemaRelationDiagram /> and <TypedQueryEditor />, and global <CommandPalette />.Space Grotesk 500 centered headline (clamp(38px, 4.8vw, 62px)) inside a rounded-[var(--radius-band)] .pm-drafting-grain frame with three teal/indigo check rows, a pill CTA pair (.pm-btn-pill + .pm-btn-outline), and an embedded live <SchemaRelationDiagram /> showcase.Applied, Pending, Drift Detected) using <StatusBadge /> with a .pm-card-settle SQL diff drawer and advisory-lock checklist.#hex Colors in Reusable TSX: Never write #f9fafb, #ffffff, #111827, #0f766e, #4f46e5, bg-zinc-950, or bg-neutral-950 inside shared component templates where Light ↔ Dark CSS variables belong.#2dd4bf Accent: White text on #2dd4bf fails WCAG AA (1.92:1). Always pair Dark --primary (#2dd4bf) with var(--primary-foreground) (#0c1017, 10.24:1 AAA).rounded-3xl, shadow-2xl, blur-3xl, or multi-stop neon gradients (bg-gradient-to-r from-indigo-500, from-purple-500, from-fuchsia-500 — blocked by lint.json)..pm-mono (tabular-nums).<rect><text> Node Boxes & Line-Through-Label ER Diagrams: Never render schema models, topology nodes, IDs, or metrics as <svg><rect><text> boxes or draw foreign-key Bezier curves across text labels. Render every node as a real HTML/DOM <button> or <div> card (>= 12.5px semibold titles, >= 11px mono IDs/metrics, semantic status LED, inline live telemetry, PK/FK row highlighting) paired with a dedicated hairline Active Relation Graph Bar where directional arrows sit in clean flex/grid slots with zero collisions.Prismadb fixtures (Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, 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, <svg><rect><text> node pills, or wavy dashed connectors slicing through labels. For schema & topology canvases, pair a hairline Active Relation Graph Bar (clickable typed relation chips with cardinality pills and flex-gutter directional arrows) directly above real HTML/DOM model/node cards featuring semantic status LEDs, >= 11px tabular-nums telemetry micro-bars, and exact PK/FK row highlighting. For operational cards, render miniaturized real software UI in HTML/DOM 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.