name:uikit-coffeehouse
version:"2.2.0"
description:Implements warm oat-cream coffeehouse and craft food retail flagships built on a four-tier botanical earth-green palette, friendly 12px rounded menu cards, interactive beverage/roast customizers, loyalty star progress tiers, pickup order drawers, subscription pricing, auth flows, and command palettes using the Coffeehouse — Craft Retail design system (W3C DTCG tokens, CSS v4 @theme bridge, design variables JSON, Light & Dark 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:"coffeehouse"
version:"2.2.0"
category:"retail-food"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
wcag:"2.2 AA"
preview:"/previews/coffeehouse-hero.webp"
uikit-coffeehouse — Master Execution Protocol (v2.2.0)
You are building commercial artisanal coffeehouse, specialty café, and craft food retail interfaces with the Coffeehouse — Craft Retail UI Skill Pack (tokens/ + templates/ + empirical screen & governance specs). Pair with registry/backbone/ (uikit-backbone) when a storefront needs additional enterprise checkout forms or layout primitives while preserving Coffeehouse's warm oat-cream and four-tier botanical earth-green identity.
WARM BOTANICAL FLAGSHIP MANDATE: Never flatten this system into generic grey e-commerce templates or cartoon drink clipart. Ground every default Light screen on warm oat-cream (#f7f5f0), elevate menu and customizer cards on pure white (#ffffff) framed by 1px warm parchment hairlines (#ddd8ce) and whisper-soft 12px (0.75rem) rounded corners, deploy the four-tier earth-green ladder intentionally (#1e3932 House Green for primary ink & bookend feature bands, #006241 Apron Green for editorial display headers, #00754a Brew Green for full-pill 9999px CTAs at 5.67:1 AA+ with white ink, and #d4e9e2 Pale Sage for valid washes), reserve roasted gold (#cba258 on dark green / #7c5914 on light cream) strictly for loyalty star milestones, photograph all real beverages and pastries via verified local .webp studio media (NEVER cartoon SVG cups!), and guarantee seamless Roasted-Pine Dark mode (#111c19 / #182924 / #f4f1ea / #34d399 with #0c1a16 ink) parity on the very first pass.
1. Task Routing Table
Inspect DESIGN.md and tokens.css first, then load companion specs and starter templates matching the active user task:
2. Step-0 Bootstrap Procedure
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md@latest add coffeehouse --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/coffeehouse.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for coffeehouse. - Peer dependencies:
npm install @phosphor-icons/react (plus react and react-dom). - 2.Load Fonts in
src/app/layout.tsx:
Import Plus_Jakarta_Sans (weight: ["400", "500", "600", "700", "800"], variable --font-plus-jakarta-sans) and JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono) via next/font/google. Attach both variables to <html> and apply .cf-root to <body>.
- 3.Import
tokens.css and tokens/tailwind.css:
Import tokens.css (or uikit-coffeehouse.tokens.css) and tokens/tailwind.css directly below your base stylesheet. This activates Light default (:root, [data-theme="light"], .light) and Dark roasted-pine companion ([data-theme="dark"], .dark) tokens, .cf-card, .cf-house-band, .cf-btn-pill, all 5 registered motion primitives, offscreen animation pausing, and reduced-motion rules.
- 4.Install All 7 Starter Templates:
Copy FlagshipRetailShell.tsx, RoastMenuCustomizer.tsx, RewardsTierMeter.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx into src/components/uikit-coffeehouse/.
3. The 12 Mandatory First-Pass Rules
- 1.Warm Oat-Cream Default + Roasted-Pine Dark Parity: Ground Light mode on
#f7f5f0 (var(--background)), separate utility strips with ceramic #eeebe4 (var(--cf-ceramic)), elevate menu cards on pure #ffffff (var(--surface)), and bookend feature bands + footer in House Green #1e3932. Switching to [data-theme="dark"] shifts cleanly to #111c19 ground, #182924 cards, #f4f1ea oat-ivory ink, and #34d399 primary CTAs paired with #0c1a16 dark ink (10.2:1 AAA). - 2.100% Semantic CSS Variables (Zero Hardcoded
#hex in TSX): Never write raw #f7f5f0, #00754a, #1e3932, #cba258, bg-black, or bg-zinc-950 inside reusable component JSX. Bind all fills, borders, text inks, and semantic washes to CSS variables (var(--background), var(--surface), var(--foreground), var(--primary), var(--cf-house-green), var(--cf-gold)). - 3.Four-Tier Earth-Green Hierarchy + Gold Ceremony Discipline: Assign each green strictly to its role—
#1e3932 (House Green) for ink and dark bands, #006241 (Apron Green) for section titles, #00754a (Brew Green) for filled primary pill buttons (5.67:1 AA+ with white ink), and #d4e9e2 (Pale Sage) for secondary chips. Reserve roasted gold (#cba258) exclusively for loyalty star status and reward milestones—never as a generic CTA fill. - 4.Friendly Tight-Tracked
Plus Jakarta Sans + Tabular JetBrains Mono: Set hero headlines and menu names in Plus Jakarta Sans (-0.015em to -0.025em tracking, weights 600–800), body descriptions in 15px–16px / 1.5, and EVERY price ($5.85), calorie readout (210 kcal), star tally (340 ★), pickup ETA (4 min), and order ID (#CF-4082) in .cf-mono (JetBrains Mono + tabular-nums). - 5.12px Rounded Cards + Universal Full-Pill CTAs: Frame menu tiles, customizer panels, and dialogs at
0.75rem (12px, var(--radius)), inputs at 8px (var(--radius-sm)), and every primary/secondary CTA button, size selector, and loyalty progress track at 9999px (var(--radius-pill)) with tactile scale(0.95) press feedback. Never use rounded-3xl, shadow-2xl, or blur-3xl. - 6.Real Studio Photography for Beverages & Storefronts (Zero Cartoon SVGs): Render beverages, pour-overs, ceramic vessels, and cafés exclusively with verified local
.webp photography (such as /images/hero-pour.webp with fetchPriority="high", locked aspect-ratio, CLS === 0, and warm contrast-safe scrims). Never draw cartoon coffee cups or steaming mugs with primitive SVG shapes. - 7.Interactive Beverage & Roast Customizer (
RoastMenuCustomizer.tsx): Support real-time selection across cup size (Tall, Grande, Venti), milk base (Oat, Almond, Whole, Coconut), espresso shot steppers (1–4), and ice/syrup toggles—recalculating tabular price, calories, and loyalty stars earned live before adding to the pickup bag. - 8.Loyalty Star Tier Meter (
RewardsTierMeter.tsx): Display current Star balance, tier badge (Green Leaf, Roasted Gold, Reserve Roaster), smooth .cf-star-fill progress bar with tabular milestone labels (50, 150, 300, 400 ★), and interactive redemption triggers that immediately update available Stars. - 9.Global
⌘K Menu & Store Palette (CommandPalette.tsx): Bind Cmd/Ctrl+K to a modal dialog (role="dialog" aria-modal="true") searching drinks, roasts, cafés, and pages with ArrowUp/ArrowDown navigation, Enter activation, and nested Escape (first press clears query via stopPropagation(), second press closes palette and restores focus). - 10.All 5 Registered Motion Primitives + Offscreen Pause + No-JS Safety: Implement
star-meter-fill, menu-card-rise, pill-toggle-spring, bag-badge-pop, and warm-fade-in via compositor-only @keyframes in tokens.css. Pause repeating animations offscreen via [data-offscreen="true"], ensure No-JS visibility (@media (scripting: none)), and honor prefers-reduced-motion: reduce. - 11.Verified
@phosphor-icons/react Exclusive Iconography: Use @phosphor-icons/react exclusively (Coffee, Star, ShoppingBag, Storefront, Flame, Leaf, Plus, Minus, CheckCircle, MapPin, Sparkle, Clock, SlidersHorizontal). Never use external stock placeholder URLs or empty placeholder rectangles. - 12.Skip Link, Independent Scroll Panes & Zero Overflow: Ship
<a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to content</a>, <main id="main-content">, styled Loading/Empty/Error/Toast states, mobile-collapsed navigation drawers, and 0px horizontal overflow across 390px mobile, 768px drawer/tablet, and 1440px desktop.
4. Blueprint Recipes
- Flagship Craft Coffee Storefront: Pair sticky white-cream navigation (
<FlagshipRetailShell />) with an editorial split photographic Hero (/images/hero-pour.webp + warm dark scrim + single Brew Green CTA), a white rounded menu grid, a deep House Green (#1e3932) Rewards ceremony band hosting <RewardsTierMeter />, and a House Green footer bookend. - Interactive Mobile Pickup Bar: Mount
<RoastMenuCustomizer /> beside a live pickup bag drawer showing active store (Alder St. Flagship · 4 min), item modifiers, calorie badge toggle, subtotal with .toLocaleString("en-US"), and animated .cf-bag-pop item counter. - Whole-Bean Roastery Subscriptions: Contrast 3 rounded white subscription cards (
Single-Origin Weekly, House Blend Bi-Weekly, Reserve Tasting Box) with roast intensity meters and transparent tabular per-bag savings.
5. Explicitly Banned Anti-Patterns
- BANNED — Cartoon Coffee Cup SVGs: Never draw coffee cups, saucers, steam squiggles, or cafés with primitive
<svg> polygons or clipart strokes. Use verified local .webp editorial photography. - BANNED — Hardcoded
#hex Colors in Reusable TSX: Never embed hex literals or Tailwind bg-black / bg-zinc-950 directly in template components; use CSS variables for Light ↔ Dark fidelity. - BANNED — Gold as Primary Button Fill: Never turn roasted gold (
#cba258) into primary submit buttons; reserve it for Rewards tier status badges, star icons, and milestone rings. - BANNED — Vibecode Multi-Stop Neon Gradients: Never apply
from-indigo-500, from-purple-500, via-purple-500, from-fuchsia-500, or to-pink-500. - BANNED — Third-Party Trademarks & External Placeholder URLs: Never include third-party coffee chain names or stock placeholder domains. Use original neutral entities (
Coffeehouse Craft, Northstar Blend, Kestrel Roasters, Arbor Oat, Alder St. Flagship) and RFC 2606 domains (coffeehouse.example.com).
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Physical subjects (beverages, pour-over pitchers, ceramic cups, café interiors, bakery items) MUST use verified local
.webp studio photography (fetchPriority="high" on Hero LCP, locked aspect-ratio for CLS === 0, calibrated contrast-safe scrims, zero baked-in text or logos). - Precision Telemetry Overlays & Cards: Numeric loyalty rings, calorie badges, and order sparklines MUST use
font-variant-numeric: tabular-nums, .toLocaleString("en-US") formatting, opaque badge backdrops with zero text collisions, and clean 1px warm borders.
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.