Editorial monochrome and teal-navy answer engine with centered floating prompt pill, grounded source citations, and paper-white reading surfaces.
npx uikits-md@latest add clarity --platform all --out .Explore the color balance, dual WCAG 2.2 AA & APCA Lc contrast checks, typography scale, and geometry tokens built into uikit-clarity.
Synthesize verified answers with inline citations on warm paper. 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 clarity --platform all --out .
Browse the design specs, theme variables, and React templates included in uikit-clarity.
You are building production AI research and answer-engine UI with the Clarity — Answer Engine UI Skill Pack (tokens/ + templates/ + architectural and governance blueprints). Pair with registry/backbone/ (uikit-backbone) when extended enterprise form primitives or page scaffolds are needed.
GROUNDED PAPER EXECUTION MANDATE: Never treat this pack as loose aesthetic inspiration. Anchor every light screen on warm paper-white (#fcfcfa), recessed tonal controls and rail fills (#f3f3ee), crisp elevated white prompt pills and source cards (#ffffff), deep teal-navy ink (#13343b, never harsh pure black), decisive primary teal (#20808d with white ink at 4.63:1 AA), and obsidian-slate highlights (#0f172a). Pair Instrument Serif editorial headlines with Inter operational controls and JetBrains Mono tabular inline citation indices ([1], [2]), animate prompt pills, citation chips, streamed answer blocks, and source cards via compositor-only curves (clPromptPillLift, clCitationChipFade, clAnswerStreamReveal, clSourceCardGlide, clFocusRingSettle), and deliver seamless Light and Dark (#14181a / #1d2326 / #eef3f4 / #38b2c2) parity automatically on the very first pass.
Always inspect DESIGN.md and tokens.css first, then load the companion specs and drop-in templates mapped to the target task:
| User Task | Required Spec Files | Drop-In Templates to Copy / Use |
|---|---|---|
| Answer Engine Workspace | DESIGN.md, APP_PATTERNS.md (§2–§4), MOTION.md, tokens.css | templates/AnswerEngineShell.tsx, templates/FloatingPromptBar.tsx, templates/CitationThreadPanel.tsx, templates/CommandPalette.tsx |
| Centered Prompt & Query Home | DESIGN.md, APP_PATTERNS.md (§1–§2), MOTION.md, CONTENT.md, tokens.css | templates/FloatingPromptBar.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Grounded Citation & Source Detail | DESIGN.md, APP_PATTERNS.md (§3–§4), CONTENT.md, ACCESSIBILITY.md, tokens.css | templates/CitationThreadPanel.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Editorial Discovery & Landing | DESIGN.md, APP_PATTERNS.md (§1, §7, §11), ASSETS.md, MOTION.md, tokens.css | templates/FloatingPromptBar.tsx, templates/CitationThreadPanel.tsx, templates/ScrollReveal.tsx, templates/Sparkline.tsx |
| Citation Telemetry & Evals | DESIGN.md, DATA_VIZ.md, APP_PATTERNS.md (§3, §10), tokens.css | templates/Sparkline.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx |
| Docs, Auth, Forms & Settings | DESIGN.md, APP_PATTERNS.md (§5–§6, §8–§9), ACCESSIBILITY.md, tokens.css | templates/AnswerEngineShell.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 custom properties (var(--background)..var(--chart-5)) |
| Final Verification Gate | CHECKLIST.md, ACCESSIBILITY.md, EVALS.md, lint.json | All 7 templates checked against uikits-md check clarity |
npx uikits-md@latest add clarity --platform all --out .npx shadcn@latest add https://uikits.tech/r/clarity.jsonget_ui_kit_skill and get_ui_kit_file for clarity.npm install @phosphor-icons/react (alongside react and react-dom).src/app/layout.tsx:Load Instrument_Serif (weight: ["400"], --font-instrument-serif), Inter (weight: ["400", "500", "600"], --font-inter), and JetBrains_Mono (weight: ["400", "500", "600"], --font-jetbrains-mono), attach all three CSS font variables to <html>, and apply .cl-root on <body> (bg-[var(--background)] text-[var(--foreground)]).
tokens.css & tokens/tailwind.css:Import tokens.css and tokens/tailwind.css directly below @import "tailwindcss"; in src/app/globals.css. This registers Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) palettes, teal-tinted hairlines, quiet prompt glow backdrop, 6 compositor keyframes, [data-offscreen="true"] pauses, and accessibility media rules.
Copy all 7 drop-in TSX templates into src/components/uikit-clarity/: AnswerEngineShell.tsx, CitationThreadPanel.tsx, FloatingPromptBar.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
Every UI surface built with uikit-clarity MUST satisfy all 12 engineering contracts on the very first pass:
--background (#fcfcfa light / #14181a dark), tonal chrome and starter panels with --surface (#f3f3ee / #1d2326), and elevated prompt pills/source cards with --card (#ffffff / #20272b). Render primary typography in --foreground (#13343b / #eef3f4) and muted provenance in --muted-foreground (#4f686e / #92a6ab). Never use #000000, bg-black, or text-black.className and style object MUST bind strictly to CSS custom properties (var(--background), var(--surface), var(--card), var(--foreground), var(--accent), var(--highlight), var(--border), var(--chart-1..5)). Switching [data-theme="light"] ↔ [data-theme="dark"] must update every card, citation pill, prompt bar, and sparkline cleanly.Instrument Serif (.cl-display) for reading-focused moments—hero inquiry headings, synthesized brief titles, and discovery lead stories. Set operational UI chrome, navigation rails, source snippets, and 64ch–68ch answer prose in Inter. Set numbered citation indices ([1], [2]), source counts, latencies, domain badges, and keyboard hints in JetBrains Mono with .cl-tabular.FloatingPromptBar.tsx): Anchor the primary search experience on a floating rounded-[var(--radius-composer)] (20px) composer framed above --cl-prompt-glow, housing an accessible Search / Deep Brief / Academic pill mode toggle, optional attachment/scope chip, Enter submit (Shift+Enter newline), and circular --accent submit trigger with crisp :focus-within halo settle.CitationThreadPanel.tsx): Every synthesized answer MUST pair inline numbered citation pills (.cl-citation-pill, e.g. [1]) with a scannable horizontal or gridded source shelf displaying publisher domain (northstar.example.com), verification <StatusBadge />, excerpt snippet, and publication date. Clicking or focusing an inline citation highlights and focuses its matching source card.AnswerEngineShell.tsx): Structure app views with a quiet 264px left rail (--app-bg separated by 1px solid var(--border)) holding New Inquiry CTA, primary views (Discover, Library, Collections, Telemetry), recent briefs, and workspace preferences. Collapse cleanly to an accessible role="dialog" slide-over drawer below 768px while keeping page and reading panes independently scrollable.0.75rem Paper Geometry: Keep source cards, starter cards, and settings panels at --radius (0.75rem / 12px), inputs and rail items at --radius-sm (8px), modals at --radius-lg (16px), prompt composer at --radius-composer (20px), and buttons/citation chips/mode switches at 9999px (rounded-full). Never use rounded-2xl, rounded-3xl, or heavy shadow-2xl.--accent (#20808d light with #ffffff ink; #38b2c2 dark with #14181a ink) decisively on prompt submission, active research scope, inline citations, and verified accents. Use --highlight (#0f172a light / #e2ecee dark) for secondary committed pill buttons and dark grounding-benchmark showcase panels—never flood full-page chrome with saturated fills.transform and opacity using --ease-editorial (cubic-bezier(0.165, 0.84, 0.44, 1)), --ease-settle (cubic-bezier(0.22, 1, 0.36, 1)), and --ease-glide (cubic-bezier(0.215, 0.61, 0.355, 1)). Wire .cl-prompt-pill-lift, .cl-citation-chip, .cl-answer-stream, .cl-source-card, and .cl-focus-settle. Pause ambient pulses via [data-offscreen="true"], honor @media (prefers-reduced-motion: reduce), and gate scroll reveals behind html.js-ready.Escape Stack: Render <a href="#main-content">Skip to content</a> as the first focusable node on every page, bind Cmd/Ctrl+K to CommandPalette.tsx (ArrowUp/ArrowDown/Enter/Escape), and invoke e.stopPropagation() in nested modal/drawer Escape listeners so dismissing the topmost layer never closes parent panes and always restores focus.@phosphor-icons/react Exclusive Iconography & Procedural Visuals: Import verified @phosphor-icons/react symbols (MagnifyingGlass, ArrowUp, BookOpen, Globe, Sparkle, LinkSimple, CheckCircle, Warning, Copy, Check, Command, SidebarSimple, SlidersHorizontal, Sun, Moon). Never ship external stock placeholder URLs or unstyled empty wireframe boxes..cl-skeleton retrieval placeholders, calm Empty Inquiry starter prompts, source-timeout Error banners (var(--destructive)) with Retry, and partial-coverage Warning callouts (var(--warning)). Verify 0px horizontal overflow across 390×844 and 1440×900.AnswerEngineShell + centered Instrument Serif greeting ("What are you investigating?") over subtle .cl-prompt-backdrop + <FloatingPromptBar /> + 3 starter inquiry cards on --surface + quiet single-line footer.Instrument Serif + <StatusBadge tone="verified" /> ("6 primary sources · 1.1s") + 3-up horizontal source shelf (.cl-source-card) + max-w-[68ch] synthesized prose (.cl-answer-stream) with clickable [1]–[6] .cl-citation-pill anchors + follow-up <FloatingPromptBar />.<Sparkline /> (--chart-1..3) tracking Grounded Recall, Source Freshness, Median Synthesis Latency, and Citation Verification Rate + hairline-ruled corpus table.240px left nav + paper-white reading sheet + obsidian-slate --cl-panel-dark (#0f172a) code snippets + live-region Copy button + structured parameter reference table.#hex or rgb(...) fills 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-slate-950, bg-zinc-950, or multi-stop neon rainbow gradients (from-indigo-500, from-purple-500, from-fuchsia-500, to-pink-500).72ch lacking inline [n] citation anchors or source attribution cards.font-mono + .cl-tabular).Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, Loomis, 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.