uikits.tech
Explore
HomeAll Packs84
Tools
AI RecommenderURL ExtractorUI GraderToken RemixPrompt StudioCompare KitsMotion Lab
Resources
DocsChangelogFAQSubmit PackSponsor
uikits.tech
uikits.tech/Pack · leafdb
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 · stabledevtools-nosql27 files · Inter + JetBrains Mono

Leafdb — Document Database

Deep evergreen-slate document database studio pairing #00ed64 spring-leaf accents on #001e2b dark canopies with interactive JSON aggregation pipelines.

Surfaces:landingsaas-appdashboardauthformsdocssettingsdata-viz
npx uikits-md@latest add leafdb --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-leafdb.

Color palette & contrast
Balance: 48% Background · 22% Surface · 14% Text · 10% Accent · 6% Highlight
Live Typography Specimen (Inter · JetBrains Mono · Instrument Serif)
Display / HeroInstrument Serif
Compose live JSON aggregation pipelines over distributed replica sets
tracking: -0.025em · leading: 1.2
UI & Prose BodyInter

Compose live JSON aggregation pipelines over distributed replica sets. Crisp hierarchy with intentional whitespace and zero decorative noise.

14px–16px · leading: 1.6 · WCAG 2.2 AA
Tabular Metrics & IDsJetBrains Mono
INDEX HIT
99.7%
VECTOR P95
8.4 ms
font-mono tabular-nums · exact column alignment
Surface & Geometry Primitives
Canvas Ground
var(--background)
Spring-leaf high-contrast rim
Surface Layer
Evergreen-Slate Atlas
var(--surface) · Dual-Mode
Tactile Radius
--radius: 0.5rem
Enforced by lint.json
Motion Profile & Recommended Fit
stage-pipe-flowleaf-pulse-glowdoc-tree-expandshard-bar-calibratedrawer-smooth-slide
Cloud document database studios & JSON collection browsers
Interactive aggregation pipeline builders & vector search consoles
Distributed replica set & sharded cluster topology monitors
Developer documentation portals, schema validators & tier pricing calculators

Install uikit-leafdb

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 leafdb --platform all --out .

Inspect Full Skill Pack (27 files)

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

Files
Specs & Docs (17)
Tokens (3)
Drop-In TSX Templates (7)
SKILL.md· 109 lines
Master task routing protocol & 12-point first-pass contract
name:uikit-leafdb
version:"2.2.0"
description:Implements deep evergreen-slate cloud document database studios, interactive JSON aggregation pipeline builders, vector search consoles, distributed replica set & shard topology monitors, global command palettes, cluster settings, developer docs, 3-tier pricing calculators, auth flows, and operational telemetry using the Leafdb — Document Database design system (W3C DTCG tokens, CSS v4 @theme bridge, design variables JSON, Dark & Light modes, 7 CSS-variable-first TSX templates with @phosphor-icons/react, and WCAG 2.2 AA governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, CSS v4 @theme, TypeScript 5+"
metadata:
id:"leafdb"
version:"2.2.0"
category:"devtools-nosql"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
wcag:"2.2 AA"
preview:"/previews/leafdb-hero.webp"
uikit-leafdb — Master Execution Protocol (v2.2.0)

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.


1. Task Routing Table

Always read DESIGN.md and tokens.css first, then load the companion specifications and drop-in starter templates matching the active user task:

User TaskRequired Spec FilesMachine Tokens & RulesDrop-In Templates to Copy / Use
Database Platform Landing PageDESIGN.md, MOTION.md, ASSETS.md, CONTENT.md, tokens.csstokens/tokens.json, tokens/tailwind.csstemplates/ScrollReveal.tsx, templates/AggregationPipelineCard.tsx, templates/ClusterTopologyGrid.tsx, templates/StatusBadge.tsx
Document Database Studio ShellDESIGN.md, APP_PATTERNS.md (§1–§4), MOTION.md, ACCESSIBILITY.md, tokens.csstokens/tokens.json, tokens/tailwind.css, lint.jsontemplates/DocumentDbShell.tsx, templates/AggregationPipelineCard.tsx, templates/CommandPalette.tsx, templates/StatusBadge.tsx
JSON Aggregation & Vector PipelineDESIGN.md, APP_PATTERNS.md (§2, §4, §10), MOTION.md, CONTENT.md, tokens.csstokens/tokens.jsontemplates/AggregationPipelineCard.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx
Sharded Cluster & Replica MonitorDESIGN.md, APP_PATTERNS.md (§3–§4, §10), MOTION.md, DATA_VIZ.md, tokens.csstokens/tokens.jsontemplates/ClusterTopologyGrid.tsx, templates/StatusBadge.tsx, templates/Sparkline.tsx
Global ⌘K Database PaletteDESIGN.md, APP_PATTERNS.md (§2), MOTION.md, ACCESSIBILITY.md, tokens.csstokens/tokens.jsontemplates/CommandPalette.tsx, templates/DocumentDbShell.tsx
Settings, VPC Peering, Auth & FormsDESIGN.md, APP_PATTERNS.md (§5, §8–§9, §11), ACCESSIBILITY.md, tokens.csstokens/tokens.json, tokens/figma-variables.jsontemplates/DocumentDbShell.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Developer Docs & 3-Tier PricingDESIGN.md, APP_PATTERNS.md (§6–§7, §11), CONTENT.md, tokens.csstokens/tokens.json, tokens/tailwind.csstemplates/AggregationPipelineCard.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Ops Telemetry & Index Data-VizDESIGN.md, DATA_VIZ.md, APP_PATTERNS.md (§3, §10), tokens.csstokens/tokens.jsontemplates/Sparkline.tsx, templates/StatusBadge.tsx
Any UI Task (Final Verification)CHECKLIST.md, EVALS.md, ACCESSIBILITY.mdlint.json, meta.jsonRun npx uikits-md check leafdb --dir . and verify Dark + Light parity

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

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

  • 4.Install All 7 Starter Templates:

Copy DocumentDbShell.tsx, AggregationPipelineCard.tsx, ClusterTopologyGrid.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-leafdb/.


3. The 12 Mandatory First-Pass Rules

Every screen, studio workbench, or component authored under uikit-leafdb MUST satisfy all 12 rules automatically on the first pass:

  • 1.Deep Evergreen-Slate Canopy + Spring-Leaf Restraint: Ground default Dark screens on #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.
  • 2.Spring-Leaf #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).
  • 3.100% Semantic CSS Variables (Zero Hardcoded Hex in TSX): Never write #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.
  • 4.Signature Pill CTAs + 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.
  • 5.Editorial 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.
  • 6.Deep Forest Badges & Purposeful Stage Category Encoding: Use deep forest #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.
  • 7.Interactive JSON Aggregation Pipeline (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.
  • 8.Distributed Shard & DOM Replica Topology Grid (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>.
  • 9.Global ⌘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).
  • 10.All 5 Registered Motion Profiles, Offscreen Pause & No-JS Safety: Implement 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.
  • 11.Verified @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.
  • 12.Skip Link, Independently Scrollable Panes & Zero Mobile Overflow: Include <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.

4. Blueprint Recipes
  • Document Database Studio: Mount <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 />.
  • Cloud Database Marketing Hero: Open on a full-bleed #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.
  • Shard Incident & Rebalance Console: Combine <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.

5. Explicitly Banned Anti-Patterns
  • BANNED — White Ink on #00ed64 Spring-Leaf: #ffffff on #00ed64 fails WCAG (1.58:1). Always use var(--primary-foreground) (#001e2b in Dark mode, 10.89:1 AAA).
  • BANNED — Hardcoded #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.
  • BANNED — Vibecode Gradients & Oversized Bubbles: Never use 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.
  • BANNED — Proportional Shifting Metrics: Every ops/sec reading, latency ms, storage GB, ObjectId, and shard replica count MUST use .lf-mono (tabular-nums).
  • BANNED — SVG-Box Node Graphs & Disconnected Floating KPI Cards: Never render replica-set or shard topology nodes, labels, or lag counters inside <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.
  • BANNED — External Stock Placeholder URLs & Third-Party Trademarks: Never insert external stock placeholder URLs, blank gray media boxes, or third-party vendor trademarks anywhere in copy, sample JSON documents, or templates. Use original neutral entities (Leafdb, Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, Loomis) and RFC 2606 domains (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.