Deep evergreen-slate document database studio pairing #00ed64 spring-leaf accents on #001e2b dark canopies with interactive JSON aggregation pipelines.
npx uikits-md@latest add leafdb --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-leafdb.
Compose live JSON aggregation pipelines over distributed replica sets. 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 leafdb --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-leafdb.
You are building production document database studios, vector search platforms, and distributed cluster consoles with the Leafdb — Document Database UI Skill Pack (tokens/ + templates/ + empirical subpage & governance blueprints). Pair with registry/backbone/ (uikit-backbone) when a project requires broader enterprise form scaffolding or standard application layout primitives.
DOCUMENT STUDIO EXECUTION MANDATE: Never treat this pack as a generic dark developer dashboard. Anchor every Dark-mode screen on deep evergreen-slate (#001e2b), lift aggregation panels and cluster cards to rich canopy slate (#062a3a) framed by crisp evergreen hairlines (#133b4d), set frost-mint primary ink (#f2f8f5, 15.99:1 AAA), reserve vibrant spring-leaf (#00ed64) strictly for primary pill CTAs and active pipeline signals—ALWAYS paired with #001e2b dark ink (10.89:1 AAA, NEVER white ink)—complement with deep forest badges (#00684a), editorial Instrument Serif display accents paired with Inter UI copy and JetBrains Mono (tabular-nums) JSON pipelines, all 5 calibrated motion profiles, and full crisp Light mode (#ffffff canvas, #f5f9f7 surface, #001e2b ink, #00684a accessible forest accent) parity automatically on the very first pass.
Always read DESIGN.md and tokens.css first, then load the companion specifications and drop-in starter templates matching the active user task:
| User Task | Required Spec Files | Machine Tokens & Rules | Drop-In Templates to Copy / Use |
|---|---|---|---|
| Database Platform Landing Page | DESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, tokens.css | tokens/tokens.json, tokens/tailwind.css | templates/ScrollReveal.tsx, templates/AggregationPipelineCard.tsx, templates/ClusterTopologyGrid.tsx, templates/StatusBadge.tsx |
| Document Database Studio Shell | DESIGN.md, APP_PATTERNS.md (§1–§4), MOTION.md, ACCESSIBILITY.md, tokens.css | tokens/tokens.json, tokens/tailwind.css, lint.json | templates/DocumentDbShell.tsx, templates/AggregationPipelineCard.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx |
| JSON Aggregation & Vector Pipeline | DESIGN.md, APP_PATTERNS.md (§2, §4, §10), MOTION.md, CONTENT.md, tokens.css | tokens/tokens.json | templates/AggregationPipelineCard.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx |
| Sharded Cluster & Replica Monitor | DESIGN.md, APP_PATTERNS.md (§3–§4, §10), MOTION.md, DATA_VIZ.md, tokens.css | tokens/tokens.json | templates/ClusterTopologyGrid.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx |
Global ⌘K Database Palette | DESIGN.md, APP_PATTERNS.md (§2), MOTION.md, ACCESSIBILITY.md, tokens.css | tokens/tokens.json | templates/CommandPalette.tsx, templates/DocumentDbShell.tsx |
| Settings, VPC Peering, Auth & Forms | DESIGN.md, APP_PATTERNS.md (§5, §8–§9, §11), ACCESSIBILITY.md, tokens.css | tokens/tokens.json, tokens/figma-variables.json | templates/DocumentDbShell.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Developer Docs & 3-Tier Pricing | DESIGN.md, APP_PATTERNS.md (§6–§7, §11), CONTENT.md, tokens.css | tokens/tokens.json, tokens/tailwind.css | templates/AggregationPipelineCard.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Ops Telemetry & Index Data-Viz | DESIGN.md, DATA_VIZ.md, APP_PATTERNS.md (§3, §10), tokens.css | tokens/tokens.json | templates/Sparkline.tsx, templates/StatusBadge.tsx |
| Any UI Task (Final Verification) | CHECKLIST.md, EVALS.md, ACCESSIBILITY.md | lint.json, meta.json | Run npx uikits-md check leafdb --dir . and verify Dark + Light parity |
npx uikits-md@latest add leafdb --platform all --out .npx shadcn@latest add https://uikits.tech/r/leafdb.jsonget_ui_kit_skill and get_ui_kit_file for leafdb.npm install @phosphor-icons/react (plus react and react-dom).src/app/layout.tsx:Import Inter (weight: ["400", "500", "600"], variable --font-inter), JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono), and Instrument_Serif (weight: ["400"], style ["normal", "italic"], variable --font-instrument-serif) via next/font/google. Attach all three variables to <html> and apply .lf-root on <body>.
tokens.css and tokens/tailwind.css:Place tokens.css (or uikit-leafdb.tokens.css) and tokens/tailwind.css directly below your root stylesheet import. This activates the Dark evergreen-slate default (:root, [data-theme="dark"], .dark), crisp Light mode ([data-theme="light"], .light), CSS v4 @theme bindings, all 6 compositor keyframes, offscreen ambient pauses, and reduced-motion rules.
Copy DocumentDbShell.tsx, AggregationPipelineCard.tsx, ClusterTopologyGrid.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-leafdb/.
Every screen, studio workbench, or component authored under uikit-leafdb MUST satisfy all 12 rules automatically on the first pass:
#001e2b (var(--background)), step cards to #062a3a (var(--surface)), frame sidebars and code wells in #001620 (var(--app-bg) / var(--lf-code-bg)), and divide panels with 1px solid #133b4d (var(--border)). Light mode switches smoothly to #ffffff canvas, #f5f9f7 cards, #001e2b ink, and #00684a accessible forest green accent.#00ed64 Contrast Iron Law: Whenever #00ed64 fills a button, active pill, or badge, pair it exclusively with #001e2b dark ink (10.89:1 AAA). Placing #ffffff on #00ed64 (1.58:1 WCAG failure) is a hard disqualifier. In Light mode, primary buttons and inline links automatically switch to deep forest #00684a (6.82:1 AA with #ffffff ink).#001e2b, #062a3a, #00ed64, bg-black, bg-zinc-950, or bg-slate-950 inside reusable template JSX. Read semantic CSS custom properties (var(--background), var(--surface), var(--lf-code-bg), var(--foreground), var(--primary), var(--highlight), var(--border), var(--lf-*-wash)) everywhere so Dark ↔ Light switching is instantaneous.0.5rem (8px) Rounded Cards: Style primary (Run Pipeline, Deploy Shard, Start Free) and secondary outline actions as unmistakable full pills (rounded-full / var(--radius-pill)), while cards, inputs, pipeline stage wells, and shard tiles stay crisp at 0.5rem (8px, var(--radius)) to 0.75rem (12px, var(--radius-lg)). Never use rounded-2xl, rounded-3xl, or shadow-2xl.Instrument Serif Accents + Inter UI + JetBrains Mono Telemetry: Use Instrument Serif (.lf-display, weight 400, normal or italic accent phrases) for hero display headlines (clamp(40px, 5.2vw, 72px)) and major editorial band openers; Inter (400/500/600) for product controls, card headings, and docs prose; and JetBrains Mono (.lf-mono, tabular-nums) for every JSON stage, ObjectId, vector dimension, ops/sec counter, latency (4.2 ms), and keycap.#00684a (var(--highlight)) for featured platform badges and tier markers. Reserve saturated secondary stage accents strictly for database semantics—violet (--lf-violet) for $vectorSearch, orange (--lf-orange) for $search, cyan (--lf-cyan) for index/replica telemetry, amber (--lf-amber) for shard rebalancing, and coral (--lf-coral) for degraded nodes or JSON syntax errors.AggregationPipelineCard.tsx): Support switching presets ($vectorSearch, $group, $lookup), adding or toggling individual stages, editing live JSON stage bodies with line numbers and Cmd/Ctrl+Enter execution, animating .lf-pipe-flow during execution, expanding nested output JSON nodes with .lf-doc-expand, switching Documents / Raw JSON / Explain Stats tabs, and rendering styled Loading/Empty/Error states.ClusterTopologyGrid.tsx): Anchor the cluster shell with a unified 4-cell hairline metric rail (zero disconnected floating KPI cards), filterable shard tiles (All, Healthy, Indexing, Rebalancing, Degraded), live search, inline DOM replica-quorum chips (az-a, az-b, az-c), .lf-shard-bar calibrated storage/memory gauges, .lf-leaf-pulse primary/oplog indicators, Rebalance Shards and Step Down Primary actions, and a slide-open .lf-drawer-slide Node Inspector Drawer (Escape dismisses and restores focus) featuring 3 crisp HTML/DOM Replica Member Cards (az-a · PRIMARY · 0ms lag · R/W, az-b · SECONDARY · +{lag}ms · Read, az-c · ARBITER · Voting quorum) connected by dedicated horizontal replication-lag gutters (.lf-pipe-flow + <ArrowRight />), live oplog health dots, tabular-nums replication bars, and interactive upstream/downstream click tracing. NEVER render replica member boxes or labels as <svg><rect><text>.⌘K Database Palette & Nested Escape (CommandPalette.tsx): Connect Cmd/Ctrl+K and header jump buttons to <CommandPalette /> with .lf-drawer-slide entry, ArrowUp/ArrowDown navigation, Enter activation, and nested Escape (first press clears non-empty query via stopPropagation(), second press closes dialog and restores trigger focus).stage-pipe-flow, leaf-pulse-glow, doc-tree-expand, shard-bar-calibrate, and drawer-smooth-slide in tokens.css. Pause repeating animations (.lf-pipe-flow, .lf-leaf-pulse, .lf-skeleton) offscreen via [data-offscreen="true"], guarantee .lf-reveal visibility without JS (@media (scripting: none)), and disable all motion under prefers-reduced-motion: reduce.@phosphor-icons/react Exclusive Iconography: Import every icon strictly from @phosphor-icons/react (Leaf, Database, BracketsCurly, FlowArrow, TreeStructure, HardDrives, Funnel, Play, Plus, Trash, MagnifyingGlass, CheckCircle, WarningCircle, XCircle, Clock). Never insert external stock placeholder URLs or unstyled empty boxes.<a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to content</a> and <main id="main-content"> on every route, ship complete Loading/Empty/Error/Toast states, collapse left rails cleanly on < 1024px, and verify 0px horizontal overflow at 390×844 and 1440×900.<DocumentDbShell /> (Northstar Cluster 01), a unified 4-cell hairline canopy KPI metric rail (p95 Vector Search, Cluster Throughput, Vector Recall@10, Index Cache Hit %) with inline semantic deltas (no redundant pill boxes) and grounded <Sparkline series={1..4} /> curves, interactive <AggregationPipelineCard />, <ClusterTopologyGrid />, and global <CommandPalette />.#001e2b .lf-canopy-stage band with an Instrument Serif headline (One document platform for *every* AI workload), #00ed64 spring-leaf primary pill (Start free cluster) + outlined pill (Explore pipelines), framing a unified 4-cell hairline telemetry rail and an embedded live <AggregationPipelineCard /> terminal showcase, transitioning cleanly into 3-tier pricing (Free / Flex / Dedicated) and docs bands.<ClusterTopologyGrid /> with its unified cluster metric rail, inline AZ quorum strip, and slide-open .lf-drawer-slide Node Inspector Drawer displaying 3 interactive HTML/DOM Replica Member Cards (az-a · PRIMARY, az-b · SECONDARY, az-c · ARBITER) with horizontal replication-lag indicators, live oplog dots, calibrated tabular-nums sync bars, and one-click shard rebalancing / primary step-down.#00ed64 Spring-Leaf: #ffffff on #00ed64 fails WCAG (1.58:1). Always use var(--primary-foreground) (#001e2b in Dark mode, 10.89:1 AAA).#hex Colors in JSX/TSX: Never embed #001e2b, #062a3a, #00ed64, bg-black, bg-zinc-950, or bg-slate-950 directly in reusable components where Dark ↔ Light semantic variables belong.rounded-2xl, rounded-3xl, shadow-2xl, blur-3xl, or multi-stop neon gradients (from-indigo-500, from-purple-500, from-fuchsia-500, to-pink-500) — enforced by lint.json..lf-mono (tabular-nums).<svg><rect><text> boxes (especially sub-11px SVG labels or dashed lines crossing node text). Every node card MUST be real HTML/DOM (>= 12.5px semibold titles, >= 11px mono IDs/metrics) with connecting lag tracks placed in dedicated gutters. Replace 4 identical disconnected floating KPI boxes with a single unified hairline-divided metric rail flush to the workspace frame.Leafdb, Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, Loomis) and RFC 2606 domains (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.