# Rekodo — Full Documentation for LLMs > Auto-generated complete reference covering installation, design rules, CSS theme tokens, and all components. ## Installation ```bash bun add @rekodo/react ``` ```tsx import "@rekodo/react/styles.css"; import { CassettePlayer, Waveform, Setlist } from "@rekodo/react"; ``` --- # DESIGN.md — Rekodo Design System Visual language, tokens, typography, and aesthetic rules for **Rekodo**. Read this before designing or generating any page with Rekodo. --- ## 1. Aesthetic Direction **Nocturnal Tokyo indie music & culture — clean, tactile, and restrained.** Rekodo is inspired by Shimokitazawa's late-night alleys, vinyl kissaten, cassette labels, and basement live houses. It balances two qualities: 1. **Modern UI library clarity** — clean monochrome dark surfaces, hairline borders, generous whitespace, high-readability typography, and disciplined layout grids. 2. **Tactile physical media soul** — spinning vinyl grooves, dual-reel cassettes, mirrored waveforms, gig-sheet setlists, sleeve packaging, and studio mixer faders. --- ## 2. Color System & Restraint Rules ### Surfaces (Dark Mode Default) | Token | Value | Role | | :--- | :--- | :--- | | `--rkd-bg-canvas` | `#000000` | Page background canvas | | `--rkd-bg-surface` | `#09090b` (`zinc-950`) | Primary cards, showcase frames, panels | | `--rkd-bg-elevated` | `#18181b` (`zinc-900`) | Elevated controls, active tabs, badges | | `--rkd-bg-subtle` | `rgba(24, 24, 27, 0.8)` | Translucent elevated overlays & glass strips | | `--rkd-bg-hover` | `#27272a` (`zinc-800`) | Interactive hover states | ### Text Hierarchy | Token | Value | Role | | :--- | :--- | :--- | | `--rkd-text-primary` | `#fafafa` (`zinc-50` / `white`) | Headings, active track titles, primary labels | | `--rkd-text-secondary` | `#a1a1aa` (`zinc-400`) | Body copy, descriptions, secondary metadata | | `--rkd-text-muted` | `#71717a` (`zinc-500`) | Timestamps, catalog numbers, eyebrows, hints | ### Borders | Token | Value | Role | | :--- | :--- | :--- | | `--rkd-border-subtle` | `rgba(39, 39, 42, 0.8)` (`zinc-800/80`) | Default hairline borders on cards & frames | | `--rkd-border-default` | `#27272a` (`zinc-800`) | Inputs, buttons, dividers | | `--rkd-border-strong` | `#3f3f46` (`zinc-700`) | Hover borders | | `--rkd-border-accent` | `rgba(139, 92, 246, 0.45)` | Active focus / selected states | ### Accents - **Primary Accent:** `--rkd-accent-primary: #8b5cf6` (`violet-500`), hover `--rkd-accent-primary-hover: #a78bfa` (`violet-400`), soft `--rkd-accent-primary-soft: rgba(139, 92, 246, 0.14)`, glow `--rkd-accent-glow: rgba(139, 92, 246, 0.35)`. - **Secondary Flyer Accent (opt-in only):** `--rkd-accent-rose: #e11d48` (`rose-600`), hover `--rkd-accent-rose-hover: #f43f5e` (`rose-500`), soft `--rkd-accent-rose-soft: rgba(225, 29, 72, 0.14)`. - **Semantic Status:** Success `--rkd-status-success: #10b981` (`emerald-500`), Danger `--rkd-status-danger: #f43f5e` (`rose-500`), Warning `--rkd-status-warning: #f59e0b` (`amber-500`), Info `--rkd-status-info: #3b82f6` (`blue-500`). ### Strict Color Rules - **90% monochrome, 10% accent.** Let black, `zinc-950`, `zinc-800` hairlines, and crisp white carry the page. Reserve `violet` for active playback states (playheads, active tracks, waveforms, switches, active tabs). - **Never clash `rose` (red) and `violet` on the same page.** Pick one accent per page (`violet` by default). Only use `rose` (`accent="rose"`, `Button variant="poster"`, `Badge variant="live"`) when intentionally building a dedicated crimson gig-poster experience without violet. - **Avoid rainbow lists.** For `ChannelRow`, `Accordion`, or `Badge` groups, use `zinc` for neutral rows and `violet` for the single primary highlight. - **Primary page CTAs:** Prefer high-contrast solid white (`bg-white text-black hover:bg-zinc-200`) paired with dark bordered secondary buttons (`border-zinc-800 bg-zinc-950 text-zinc-200`). --- ## 3. Typography - **Sans (`--rkd-font-sans`):** `Geist`, system sans-serif. - Display hero: `text-4xl sm:text-6xl font-bold tracking-tight leading-[1.08]` (normal case, never screaming all-caps italic for main body headings). - Section headings: `text-2xl sm:text-3xl font-semibold tracking-tight text-white`. - Card titles: `text-sm` to `text-base font-semibold text-white`. - Body copy: `text-sm` to `text-base leading-relaxed text-zinc-400`. - **Mono (`--rkd-font-mono`):** `Geist Mono`, monospace. - Used for catalog numbers (`SMK-024`), timestamps (`03:48`), audio formats (`FLAC`, `24-BIT`), section eyebrows (`01 / LISTENING ROOM`), keyboard shortcuts (`Kbd`), and install commands. --- ## 4. Layout, Spacing & Radii - **Container width:** `max-w-[1200px]` for marketing/landing pages, `max-w-[1400px]` for documentation shells. - **Vertical rhythm:** Generous section spacing (`mt-24` to `mt-36`) so complex audio hardware components have room to breathe. - **Radii (`--rkd-radius-*`):** - Scale: `xs` (`2px`), `sm` (`4px`), `md` (`8px`), `lg` (`12px`), `xl` (`16px`), `full` (`9999px`). - Page frames & cards: `rounded-xl` (`12px`) or `rounded-lg` (`8px`). - Hardware & physical media artifacts (`Setlist`, `PosterFrame`, `ChannelList`, `AlbumArt`, `ZineCard`): crisp sharp corners (`rounded-none` / `2px`–`4px`) to contrast with smooth UI chrome. - **Dividers & Utilities:** Use 1px hairline borders (`border-zinc-800/80` or `gap-px bg-zinc-800/80` grids) instead of heavy drop shadows. Stylesheet utilities include `.rkd-scrollbar`, `.rkd-hide-scrollbar`, and `@keyframes rkd-eq-bar`. --- ## 5. Do's & Don'ts | Do | Don't | | :--- | :--- | | Use monochrome dark surfaces + single muted `violet` accent | Mix `rose` (red) and `violet` in the same hero or card | | Give audio widgets generous padding (`p-6 sm:p-8`) | Cram 5+ interactive widgets tightly into one frame | | Use `Geist Mono` for musical metadata (BPM, key, duration, catalog #) | Add fake sci-fi telemetry, random hex codes, or noisy HUD chrome | | Pair `CassettePlayer` or `Vinyl` with `Waveform` + `Tracklist` / `Lyrics` | Build generic rounded SaaS cards for music releases | | Keep core audio primitives (`CassettePlayer`, `Vinyl`, `Waveform`, `Lyrics`) controlled & engine-agnostic | Hardcode hidden `