name:uikit-tempo
description:Implements dark listening-room music streaming players, AI stem studios, podcast queues, spatial waveform visualizers, audio telemetry dashboards, auth flows, and catalog landing pages using the Tempo Audio Studio design system (W3C DTCG tokens, Tailwind v4 @theme, dual Dark & Light mode parity, #1ed760 playback voltage with #07140b AAA ink, compositor-only @keyframes, 7 TSX templates including ListeningRoomShell, AudioWaveformCanvas, TrackQueueTable & CommandPalette, and governance/eval specs).
license:MIT
version:"2.2.0"
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"tempo"
version:"2.2.0"
category:"media-streaming"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/tempo-hero.webp"
uikit-tempo — Master Execution Protocol (v2.2.0)
You are building UI with the Tempo — Audio Studio UI Skill Pack (tokens/ + templates/ + governance/eval specs). Pair with registry/backbone/ (uikit-backbone) for full component and page-recipe coverage while preserving Tempo's dark listening-room acoustics, functional playback emerald voltage, and pill-control geometry.
LISTENING-ROOM MANDATE: Never treat this pack as loose aesthetic inspiration. Anchor dark surfaces on #101012 (var(--background)), elevated studio decks on #18181c (var(--surface) / var(--card)), interactive hovers on #24242b (var(--tm-surface-hover)), and crisp #f5f5f7 foreground ink so cover artwork and live frequency spectra supply the color. Reserve #1ed760 playback emerald strictly for functional transport controls, active equalizer bars, scrubber progress, and primary pills—ALWAYS paired with #07140b deep forest-obsidian ink (9.82:1 AAA). Wire sticky transport controls, <canvas> frequency visualization with offscreen pause and reduced-motion static bars, keyboard-navigable track queues, and dual Dark/Light parity automatically on the very first pass.
1. Task-Based Read Routing
Always read DESIGN.md and tokens.css first, then load the exact companion specs and drop-in templates for the surface you are building:
2. Bootstrap Procedure (Step 0 Before Writing Components)
- 1.Load Typefaces in
src/app/layout.tsx:
Import Plus_Jakarta_Sans (--font-plus-jakarta-sans, weights 400, 500, 600, 700) and JetBrains_Mono (--font-jetbrains-mono, weights 400, 500, 600) via next/font/google, attach both variable classes to <html>, and apply .tm-root to <body>.
- 2.Import
tokens.css and tokens/tailwind.css:
Place @import "./uikit-tempo.tokens.css"; (and optionally tokens/tailwind.css) immediately after @import "tailwindcss"; in src/app/globals.css. Default :root mounts dark listening-room tokens (#101012), while [data-theme="light"] / .light switches cleanly to daylight studio tokens (#f8f9fa).
- 3.Install All 7 Starter Templates:
Verify ListeningRoomShell.tsx, AudioWaveformCanvas.tsx, TrackQueueTable.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx exist under src/components/uikit-tempo/ (npx uikits-md@latest add tempo --platform all --out .).
Install @phosphor-icons/react alongside react and react-dom. Do not substitute another icon set or raw emoji glyphs for transport controls.
3. First-Pass Mandatory Execution Rules (12 Rules)
Every surface authored with uikit-tempo MUST fulfill all 12 rules automatically on the first pass:
- 1.Dark-First Listening-Room Canvas with Daylight Parity: Anchor default screens on
#101012 (var(--background)), recessed frames on #09090b (var(--app-bg)), decks on #18181c (var(--surface) / var(--card)), and interactive row hovers on #24242b (var(--tm-surface-hover)). Bind 100% of TSX styling to CSS custom properties—zero hardcoded #hex utilities—so [data-theme="light"] (#f8f9fa / #ffffff / #111315 / #128a3d) renders with full AA contrast. - 2.AAA Playback Voltage Contrast Lock: Whenever
#1ed760 (var(--primary) / var(--accent)) fills a circular play orb, primary pill CTA, or active progress pill in dark mode, pair it exclusively with #07140b (var(--primary-foreground), 9.82:1 AAA). Never place white text over #1ed760. In light mode, #128a3d pairs with #ffffff (--primary-foreground) and small emerald status text reads from --success (#0f7533, 5.81:1 AA). - 3.Functional Accent Discipline: Keep UI chrome achromatic charcoal (
#101012–#2a2a32). Reserve #1ed760 for play/pause orbs, active equalizer bars, live scrubbing, and primary CTAs. Let album artwork and subtle --tm-glow-album radial washes supply atmospheric mood. - 4.Pill Controls & Circular Play Orbs: Style primary buttons, filter pills, and global search inputs with
rounded-[var(--radius-pill)] (9999px), circular play buttons as rounded-full with .tm-play-orb hover spring (scale(1.06)), and studio decks/cards at 0.75rem (12px, var(--radius)). Never use rounded-3xl bubbles or sharp 0px buttons. - 5.Tabular Audio Telemetry Typography: Style display headlines with
Plus Jakarta Sans at tight -0.025em to -0.035em tracking and bold/semibold weight contrast (600–700 titles vs 400 metadata). Lock every timecode (02:14 / 03:42), BPM (118 BPM), loudness target (-14.0 LUFS), sample rate (48 kHz / 24-bit), and play counter to font-mono tabular-nums. - 6.Sticky Bottom Transport Bar: Every workspace or listening-room shell (
<ListeningRoomShell />) includes a persistent sticky bottom transport bar displaying current track artwork swatch, title/artist, play/pause orb, previous/next controls, interactive progress scrub range with timecodes, and volume/mute control—responsive down to 390px mobile without overflow. - 7.Procedural
<canvas> Frequency Visualizer with Offscreen Pause: Render live audio spectrum bars via <AudioWaveformCanvas />, reading resolved CSS custom properties (getComputedStyle) so Dark and Light themes paint dynamically. Observe canvas visibility via IntersectionObserver to pause requestAnimationFrame offscreen, and draw crisp static frequency bars immediately under prefers-reduced-motion: reduce. - 8.Interactive Queue & Stem Table: Ship
<TrackQueueTable /> with live search input, stem/tag filter pills, keyboard row navigation (ArrowUp / ArrowDown / Enter to play), favorite heart toggles, active playing row highlight (var(--highlight)), inline animated equalizer bars (.tm-eq-bar), and right-aligned tabular-nums BPM and duration columns. - 9.Keyboard Command Palette (
⌘K) & Nested Escape: Include <CommandPalette /> for instant jumping across tracks, stems, playlists, loudness presets, and studio routes. Pressing Escape clears an active query first or closes only the topmost overlay (stopPropagation) and restores focus to the trigger. - 10.Compositor-Only Motion & Bulletproof Reveals: Restrict animations to
transform and opacity using the 5 registered motion behaviors (equalizer-bar-pulse, cover-art-lift, play-orb-spring, queue-row-glide, transport-progress-flow). Wrap below-the-fold sections in <ScrollReveal /> with html.js-ready no-JS visibility safety, mount viewport detection, and horizontal-track outer wrapping. - 11.Complete Data-State Parity: Every queue, library, or telemetry view ships with matched
.tm-skeleton loading rows/cards, a clearable Empty State (No matching tracks + Reset filters), a dismissible Stream/Render Error banner (var(--destructive) + Retry), and accessible live status announcements (aria-live="polite"). - 12.Skip Link, Brand Hygiene & Zero Placeholders: Render
<a href="#main-content"> as the first focusable control on every route. Use @phosphor-icons/react exclusively for icons, procedural Canvas/SVG or palette-locked generated artwork per ASSETS.md, neutral studio names (Northstar, Kestrel, Vesper, Arbor, Helios, Cinder), and RFC 2606 domains (example.com).
4. Blueprint Recipes (Quick Reference)
- Listening Room Home:
<ListeningRoomShell> + featured release hero with --tm-glow-album + live <AudioWaveformCanvas> + 4-column album deck grid (.tm-cover-card with .tm-play-orb) + <TrackQueueTable> + sticky bottom transport bar. - AI Stem & Mastering Console:
<ListeningRoomShell> + <AudioWaveformCanvas mode="stems"> + 4 channel stem badges (<StatusBadge tone="live" | "stem" | "mastering" | "clipping">) + loudness <Sparkline> telemetry cards + <TrackQueueTable>. - Audio Studio Marketing Landing: Sticky pill navbar + hero display headline (
Plus Jakarta Sans clamp(36px, 5vw, 68px)) + interactive embedded <AudioWaveformCanvas> prompt/preview stage + <ScrollReveal> feature deck + tier comparison + footer. - Full 11-Screen Architecture: See
APP_PATTERNS.md for complete structural specifications covering Landing, Workspace, List/Queue, Detail, Settings, Docs/API, Pricing, Auth, Create/Edit Form, Empty/Loading/Error, and Footer.
5. Explicitly Banned Anti-Patterns
- BANNED: Pairing white ink (
#ffffff) on #1ed760 playback emerald—always use var(--primary-foreground) (#07140b in dark mode). - BANNED: Hardcoded
#hex, bg-black, bg-slate-900, bg-indigo-600, text-white, or text-purple-500 inside reusable TSX components—use semantic CSS variables from tokens.css. - BANNED: Generic neon/vibecode gradients (
from-indigo-500, from-purple-500, from-fuchsia-500, to-pink-500), puffy rounded-3xl cards, or heavy shadow-2xl utilities. - BANNED: Unthrottled
<canvas> animation loops that ignore IntersectionObserver visibility or prefers-reduced-motion: reduce. - BANNED: Third-party brand names, trademarks, borrowed track titles, external stock placeholder image hosts, bare empty placeholder rectangles, or non-Phosphor icon sets.
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.