Sico / ui
CLAUDE.md273 starsChanged 6 months agoMITView on GitHub
Design tokens + Atomic components for SICO. React 19 + Tailwind CSS v4 + shadcn/ui restyles. npm run dev (Storybook :6006) / lint / test / build-storybook. Each component is a 4-file unit: Development is driven by skills. Always invoke the relevant skill before writing code. Depends on: @sico/config (dev) · Depended on by: @sico/shared, @sico/app.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- frontend/packages/app/CLAUDE.mdCLAUDE.md
- frontend/packages/config/CLAUDE.mdCLAUDE.md
- frontend/packages/shared/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- android-testerSkill
- add-agentSkill
- add-benchmarkSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
Use semantic tokens (bg-button-primary-rest), not foundation tokens (bg-neutral-800).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
@sico/ui — CLAUDE.md
Design tokens + Atomic components for SICO. React 19 + Tailwind CSS v4 + shadcn/ui restyles.
Commands
npm run dev (Storybook :6006) / lint / test / build-storybook.
Structure
packages/ui/
├── src/
│ ├── components/ui/ shadcn-restyled atomic components
│ ├── lib/utils.ts `cn()` helper (clsx + tailwind-merge)
│ ├── styles/
│ │ └── globals.css Tailwind v4 entry + `@theme {}` design tokens
│ ├── assets/fonts/ Bundled font files
│ └── index.ts Package entry
├── stories/ Storybook stories + MDX (one pair per component)
├── test/ Vitest (components / config / lib)
├── components.json shadcn CLI config
├── vite.config.ts Storybook + Vitest only (no build)
├── vitest.config.ts Extends `@sico/config/vitest.config.base.ts`
├── tsconfig.json Extends `@sico/config/tsconfig.react.json`
└── eslint.config.cjs Extends base + storybook pluginEach component is a 4-file unit:
src/components/ui/{name}.tsx Shadcn restyle (cva + Base UI primitives)
stories/{name}.stories.tsx Live demos + Controls
stories/{name}.mdx Narrative + Token Audit
test/components/{name}.test.tsx Props → className matrixConventions
Tokens
- Token layers (high → low): Component → Shadcn Theme → Semantic → Brand → Foundation. Each layer references the one below via
var(), never reverse, never skip-and-hardcode.
Components
- Components are shadcn restyles — start from
shadcn add, only swap styles to SICO tokens; never change props, interaction, a11y, cva structure, or Radix primitives. - Use semantic tokens (
bg-button-primary-rest), not foundation tokens (bg-neutral-800).
Workflow
Development is driven by skills. Always invoke the relevant skill before writing code.
[`sico-add-tokens`] ──► globals.css `@theme {}` (design tokens; independent)
[`shadcn`] ──► src/components/ui/{name}.tsx (CLI scaffold)
│
▼
[`sico-add-shadcn-components`] orchestrates:
├─► restyle to SICO tokens
├─► [`sico-add-stories`] ────► stories/{name}.{stories.tsx,mdx}
└─► [`sico-add-shadcn-tests`] ─► test/components/{name}.test.tsxDependencies
Depends on: @sico/config (dev) · Depended on by: @sico/shared, @sico/app.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

