Canonical source of truth for Kilo's design system across products including Cloud, Landing, Console, VS Code, JetBrains, CLI, and Mobile.
This repository currently contains the first implementation slice of the design system: the hand-authored token contract and a local playground for reviewing and tuning it visually.
tokens.jsonis the canonical design token source for the current dark-first Kilo design language.playground/is a local Next.js app for previewing, editing, and savingtokens.json.CONTEXT.mddefines the shared glossary for the design-system architecture.docs/adr/records the locked architecture decisions behind the system..plans/contains the foundation plan and execution checklist for future work.
tokens.json is intentionally hand-authored JSON. It is the source of truth for token values, not generated output.
Current token groups include:
color.brandfor Kilo's primary brand action color and related action states.color.statusfor product and semantic status hue families.color.surfacefor the dark surface ramp: inset, background, raised, overlay, hover, and selected.color.foregroundfor text and icon colors on surfaces.color.borderfor border and input-fill values.color.syntaxandcolor.difffor code and review surfaces.statusDomainfor mapping product domains to status color families.typography,radius, andspacingfor portable UI foundations.
The current primary brand action color is #F7F586. The system is dark-only by decision; there is no light-mode token set in this repo.
From the repository root:
cd playground
pnpm install
pnpm devThen open:
http://localhost:8731
If dependencies are already installed:
cd playground && pnpm devUseful playground scripts:
pnpm dev # Start the local playground on port 8731
pnpm build # Build smoke test into .next-build
pnpm start # Start the production build on port 8731
pnpm lint # Next lint commandThe playground loads ../tokens.json at startup and applies the values as live CSS variables.
- Edit color tokens from the preview swatches.
- Edit radius, spacing, typography, and status-domain mappings from the left control rail.
- Inspect the serialized output in the right JSON rail.
- Use
Save to tokens.jsonto write the current playground state back to the repo root token file. - Use
Cmd+.orCtrl+.to collapse or expand both side rails together.
The write-back API is local-development only and refuses token reads or writes when NODE_ENV is production.
Read these before changing the design-system direction:
CONTEXT.mdfor glossary terms such as Core Skill, Product Skill, Product Overlay, Pattern Recipe, Canonical Example, and Drift.docs/adr/for the settled decisions and their reasoning..plans/kilo-design-system-foundation.mdfor the strategy behind the design-system architecture..plans/kilo-design-system-execution-checklist.mdfor the task-by-task implementation plan.
Product code lives in the product repositories. This repo publishes design tokens and agent-consumable design-system guidance to those products; it does not contain the product applications themselves.