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

Clarity — Answer Engine

Editorial monochrome and teal-navy answer engine with centered floating prompt pill, grounded source citations, and paper-white reading surfaces.

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

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
Synthesize verified answers with inline citations on warm paper
tracking: -0.025em · leading: 1.2
UI & Prose BodyInter

Synthesize verified answers with inline citations on warm paper. Crisp hierarchy with intentional whitespace and zero decorative noise.

14px–16px · leading: 1.6 · WCAG 2.2 AA
Tabular Metrics & IDsJetBrains Mono
SOURCES
24
GROUNDING
99.1%
font-mono tabular-nums · exact column alignment
Surface & Geometry Primitives
Canvas Ground
var(--background)
1px soft parchment rule
Surface Layer
Editorial Paper
var(--surface) · Dual-Mode
Tactile Radius
--radius: 0.75rem
Enforced by lint.json
Motion Profile & Recommended Fit
prompt-pill-liftcitation-chip-fadeanswer-stream-revealsource-card-glidefocus-ring-settle
AI research workspaces & grounded citation answer engines
Knowledge discovery portals, literature synthesis & editorial briefings
Enterprise semantic search consoles & verifiable RAG assistants
Quiet documentation hubs, source verification tables & research telemetry

Install uikit-clarity

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

Inspect Full Skill Pack (27 files)

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

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-clarity
description:Implements editorial monochrome and teal-navy AI answer engines, centered floating prompt pills, grounded source citation panels, Cmd+K research command palettes, discovery briefs, verification dashboards, and settings consoles using the Clarity — Answer Engine design system (W3C DTCG tokens, Tailwind CSS 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:"clarity"
version:"2.2.0"
category:"ai-search"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/clarity-hero.webp"
uikit-clarity — Master Execution Protocol (v2.2.0)

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.


1. Task-Based Read Routing

Always inspect DESIGN.md and tokens.css first, then load the companion specs and drop-in templates mapped to the target task:

User TaskRequired Spec FilesDrop-In Templates to Copy / Use
Answer Engine WorkspaceDESIGN.md, APP_PATTERNS.md (§2–§4), MOTION.md, tokens.csstemplates/AnswerEngineShell.tsx, templates/FloatingPromptBar.tsx, templates/CitationThreadPanel.tsx, templates/CommandPalette.tsx
Centered Prompt & Query HomeDESIGN.md, APP_PATTERNS.md (§1–§2), MOTION.md, CONTENT.md, tokens.csstemplates/FloatingPromptBar.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Grounded Citation & Source DetailDESIGN.md, APP_PATTERNS.md (§3–§4), CONTENT.md, ACCESSIBILITY.md, tokens.csstemplates/CitationThreadPanel.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Editorial Discovery & LandingDESIGN.md, APP_PATTERNS.md (§1, §7, §11), ASSETS.md, MOTION.md, tokens.csstemplates/FloatingPromptBar.tsx, templates/CitationThreadPanel.tsx, templates/ScrollReveal.tsx, templates/Sparkline.tsx
Citation Telemetry & EvalsDESIGN.md, DATA_VIZ.md, APP_PATTERNS.md (§3, §10), tokens.csstemplates/Sparkline.tsx, templates/StatusBadge.tsx, templates/ScrollReveal.tsx
Docs, Auth, Forms & SettingsDESIGN.md, APP_PATTERNS.md (§5–§6, §8–§9), ACCESSIBILITY.md, tokens.csstemplates/AnswerEngineShell.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 custom properties (var(--background)..var(--chart-5))
Final Verification GateCHECKLIST.md, ACCESSIBILITY.md, EVALS.md, lint.jsonAll 7 templates checked against uikits-md check clarity

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

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

  • 4.Install All 7 Starter Primitives:

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.


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

Every UI surface built with uikit-clarity MUST satisfy all 12 engineering contracts on the very first pass:

  • 1.Warm Paper Ground & Teal-Navy Ink (Zero Pure Black): Paint pages with --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.
  • 2.100% Semantic CSS Variables (Zero Hardcoded Hex in JSX): Every TSX 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.
  • 3.Two-Voice Editorial + Operational Typography: Reserve 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.
  • 4.Centered Floating Prompt Pill (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.
  • 5.Grounded Source Cards & Interactive Inline Citations (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.
  • 6.Quiet Collapsible Left Rail (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.
  • 7.Rounded 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.
  • 8.Restrained Teal & Obsidian-Slate Accent Discipline: Spend --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.
  • 9.Compositor-Only Motion & Offscreen Pausing: Animate exclusively 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.
  • 10.Keyboard-First Navigation & Nested 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.
  • 11.@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.
  • 12.Complete Research App States & Responsive Integrity: Ship styled .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.

4. Blueprint Recipes (Quick Reference)
  • Answer Engine Home: 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.
  • Grounded Research Brief: Query headline in 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 />.
  • Citation Telemetry & Quality Console: 4-up metric cards with <Sparkline /> (--chart-1..3) tracking Grounded Recall, Source Freshness, Median Synthesis Latency, and Citation Verification Rate + hairline-ruled corpus table.
  • API & Grounding Docs Hub: Sticky 240px left nav + paper-white reading sheet + obsidian-slate --cl-panel-dark (#0f172a) code snippets + live-region Copy button + structured parameter reference table.

5. Explicitly Banned Anti-Patterns
  • BANNED: Hardcoding #hex or rgb(...) fills 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-slate-950, bg-zinc-950, or multi-stop neon rainbow gradients (from-indigo-500, from-purple-500, from-fuchsia-500, to-pink-500).
  • BANNED: Uncited synthetic prose blobs wider than 72ch lacking inline [n] citation anchors or source attribution cards.
  • BANNED: Proportional shifting numbers in citation counters, timestamps, or retrieval latency columns (always apply font-mono + .cl-tabular).
  • BANNED: Color-only verification statuses without accompanying icons or text labels, or external stock placeholder URLs / bare empty image-slot text.
  • BANNED: Any third-party trademarks, company names, or copyrighted product UI references in copy, schemas, or demos (use original neutral entities such as Northstar, Kestrel, Vesper, Arbor, Helios, Cinder, Loomis, 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.