/kohaku-frontend:kohaku-frontendfrom kohaku-frontend
Use when building, restyling, or reviewing any web UI, dashboard, admin console, chat/agent interface, node editor, docs site, marketplace, landing page, or terminal UI for a Kohaku / Kohaku-Lab / KohakuBlueleaf project, or whenever the user asks for the "Kohaku style", gemstone palette, KohakuTerrarium look, or wants a project's UI/UX raised to that standard (palette, dark mode, density, mobile/touch, empty/error states, microcopy).
Ships in kohaku-frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The UI language of Kohaku-Lab's projects (KohakuTerrarium, Togeari, KohakuNodeIR, TerrariumMarket, Kohaku-Docs, KohakuTUI…). Gem accents on warm stone, quiet chrome around prominent content, colour that always carries a role, no motion unless work is happening, and a phone layout designed separately from the desktop one. Most rules come from a specific bug or complaint. The reasons are kept so you can apply the rules with judgment.
references/review-checklist.md.light / DEFAULT / shadow plus warm-50…950, and nothing else. No stock Tailwind hues, cool greys, -dark shades or loose hexes. A script enforces this (see Verify).kt-fs-* tiers (micro…h1) for chrome, with an app preset (body 14px) and a reading preset (body 16px, 78ch). Inter for UI, JetBrains Mono for every number, id and path in text, tiles and tables, and numbers are always tabular (chart axes stay Inter with tabular-nums). Muted text for metadata; faint text only for placeholders and disabled items.<768 compact, <1280 regular). On phones: rail → drawer, tables → tap rows → sheets, settings → list → page, dialogs fullscreen. Use pointer: coarse for touch: inputs ≥16px, targets ≥40px, and hover-only actions always visible.:focus-visible everywhere; IME-safe Enter.… while in progress, — for missing values, · to join facts, tooltips as full sentences. Confirms state the consequence and are labelled with the verb. zh-TW and zh-CN are localised properly, not converted.--kt-color-*), use color-mix tints in hand CSS, keep embeddable components on scoped vars with fallbacks, and remap any component library's variables once, globally.Classify the surface, then open only the matching reference:
| building… | read |
|---|---|
| any UI (always) | references/tokens-and-theme.md, references/components.md |
| app shell, panes, mobile, shortcuts, prefs | references/layout-density-touch.md |
| anything async: loading/empty/error, toasts, confirms, copy, i18n | references/states-and-copy.md |
| chat, agent console, log tail, streaming markdown | references/streaming-and-chat.md |
| charts, dashboards, tables of metrics, node/graph editors, docs figures | references/dataviz-and-canvas.md |
| docs site, landing page, README hero, marketplace/catalog | references/docs-and-sites.md |
| CLI output, TUI, terminal dashboards | references/terminal-ui.md |
| review / before shipping | references/review-checklist.md |
Install the tokens for the project's stack (copy from assets/, don't retype):
assets/uno.config.js + assets/tokens.css + assets/base.css. Use Carbon icons (@iconify-json/carbon).assets/tailwind.preset.js (it replaces the default palette) + tokens.css + base.css. For a single file using the Play CDN, set tailwind.config = { darkMode: "class", theme: { colors: …, extend: … } } inline, copying the preset's theme object.tokens.css + base.css, then use the .kt-btn--*, .kt-chip--*, .kt-dot--*, .kt-seg, .kt-input, .kt-banner, .kt-v2-* classes.base.css is the reset. UnoCSS ships none, and @unocss/reset brings a cool-grey default border, so don't add it. dark: utilities follow the html.dark class.<head> script that applies html.dark from the stored preference or the system setting before first paint.tokens.css and adopt everything else.Build with the recipes. Pick the shell archetype, use SectionCard/StatTile/StatusDot/chip/segmented/settings-row recipes, and write the four states for every async region.
Verify (required):
node <skill-dir>/scripts/check-palette.mjs <project-src> # must report 0 errors
Then screenshot each touched view in light and dark at about 1440px and about 390px wide, with touch emulated on the phone run:
npx -y -p playwright node <skill-dir>/scripts/shots.mjs http://localhost:5173/ shots/ --states "?view=settings,?drawer=1"
Give the app URL hooks for each non-initial state so --states can reach them. A state is ?a=1 (query), #/route?a=1 (hash router) or /path?a=1 (history router). Pass --theme-key <app>.theme if the theme is stored under a prefixed key, and --full for pages longer than one screen. The script flags pulsing indicators, sideways scrolling, a <body> that scrolls instead of the window, unstyled links and console errors. It cannot see layout faults, so open the PNGs and look at them. Then press Tab from the top of each view (every stop shows the iolite ring, in reading order, and Esc closes the innermost layer) and walk references/review-checklist.md.
| thing | value |
|---|---|
| accent | iolite #5A4FCF (hover #312A7A; dark text #DDD0F0) |
| light page / card / border / text | #f2eee8 / #ffffff / #e5dfd7 / #2e2a26; canvas #fbfaf8 |
| dark page / card / border / text | #1a1816 / #252220 (v2 card #2a2724) / #3d3835 / #e8e0d8 |
| status | live aquamarine #4C9989 · ok sage #5A9E6F · attention amber #D4920A · danger coral #D46B6B · neutral warm-400 #A09A92 |
| chip | gem 10% fill, 40% border, -shadow text (light) / -light text (dark), text-[11px] rounded-full |
| selected row | bg-iolite/10 |
| radii | control 8px · card 12px · chip full |
| controls | buttons h-8 (dense h-7), icon buttons 28px (40px on touch) |
| section label | text-[10px] uppercase tracking-wider font-medium text-warm-500 |
| font sizes | a kt-text-* tier where one exists (12/14/16/18/20/24px); the fixed recipe sizes 10/11/13/15px stay literal |
| bars | tab strip h-8, app header h-11, phone header h-12, status bar h-6 text-[10px] font-mono |
| rail | 240px (180–480), collapses to a 48px icon strip; drawer w-72 max-w-[85vw] on phones |
| breakpoints | compact <768 · regular <1280 · expansive |
| thresholds | fill/context calm <60%, amber 60–80%, coral >80% |
| streaming | markdown throttle 80ms · follow tail within 80px · batch ≥3 tool calls · preview 240 chars |
| motion | 150ms colour, 200ms fade/slide, pulse 1.5s opacity .4↔1 only for "working" |
These came from a no-skill baseline that built a "polished" dashboard:
Others from our own projects:
user-scalable=no.See the rationalization table in references/review-checklist.md.
assets/base.css (opens in a new tab)assets/tailwind.preset.js (opens in a new tab)assets/tokens.css (opens in a new tab)assets/uno.config.js (opens in a new tab)references/components.md (opens in a new tab)references/dataviz-and-canvas.md (opens in a new tab)references/docs-and-sites.md (opens in a new tab)references/layout-density-touch.md (opens in a new tab)references/review-checklist.md (opens in a new tab)references/states-and-copy.md (opens in a new tab)references/streaming-and-chat.md (opens in a new tab)references/terminal-ui.md (opens in a new tab)references/tokens-and-theme.md (opens in a new tab)scripts/check-palette.mjs (opens in a new tab)scripts/shots.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub treeleaves30760/kohaku-frontend-skill --plugin kohaku-frontend