fangdididi

Home Grown UI — Design skill for Claude Code

Design community

Agent skill: grow a UI's design tokens from evidence about the product (identity card → OKLCH ramp, accessible accent, spacing, type), emit CSS/DTCG/Tailwind, and lint code for drift back to generic A.

How to install Home Grown UI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open fangdididi/home-grown-ui and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Home Grown UI does

Agent skill: grow a UI's design tokens from evidence about the product (identity card → OKLCH ramp, accessible accent, spacing, type), emit CSS/DTCG/Tailwind, and lint code for drift back to generic AI defaults. EN + 中文

Alternatives in Design

  • Theme Swap — Recolour an extracted site's design around a new brand primary 3.6k ★
  • Home Assistant Vibecode Agent — Home Assistant MCP server agent 617 ★
  • Colorize — Color strategy pass — introduces a single accent at 3-5 intentional placements, or reduces an over-colored UI 418 ★

README

home-grown-ui

**English** | [中文](README.zh-CN.md)

An agent skill that grows a UI's look out of the product itself, then keeps the code on it.

Coding agents reach for the same defaults every time: a violet accent, a purple-to-pink gradient, glows, frosted glass, heavy headings, emoji labels and spacing typed by feel. `home-grown-ui` replaces those defaults with a design system derived from facts about *your* product, and gives you a linter that shows exactly where the code drifts back.

How it works

identity card  ->  derive  ->  emit  ->  adopt  ->  lint
(evidence)         (tokens)    (CSS, DTCG, Tailwind)   (coverage + drift)
  1. Identity card. A small JSON file: product, users, where it is used, three or more evidence lines, two or three character words (template words like "clean" or "modern" are rejected), a world (paper, instrument, kitchen, hospital...), one signature detail and at most two rich moments.
  2. Derive. Turns the card into numbers: a 12-step OKLCH neutral ramp tinted toward the world, light and dark roles, an accent searched until it reaches 4.5:1 on both backgrounds, status colours, a 4px spacing scale, radius, control height, font pairing chosen from the character words, a type scale with grid-aligned line heights, and motion timings.
  3. Emit. Writes tokens.css, tokens.dtcg.json (W3C design-token format) and a tailwind.preset.js that replaces colours, spacing and radius so off-system classes stop existing.
  4. Lint. Scans CSS, HTML, JSX/TSX, Vue, Svelte and Astro for raw colours (with the nearest token), off-scale spacing, and default fingerprints such as violet gradients, gradient text, glows, fake "live" pulses, transition-all, glass, 800-900 weights, uppercase tracked labels, sparkles and emoji labels. It reports token coverage and a verdict: ON_SYSTEM, DRIFTING, OFF_SYSTEM or NOTHING_SCANNED.

Features

  • Evidence-first: every token traces back to a line in the card.
  • Accessible by construct