Skip to content
Cloud & Infrastructure
Skill

/shadcn

shadcn/ui under the ONE 6-token design system — CSS var tokens only, no hex, add components via the CLI. Invoke when editing src/components/ui/ or adding a primitive.

BOOST
From plugin
one
1329 skills16 agents2 commands1 MCP
Install
$ npx -y skills add one-ie/one --skill shadcn --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/shadcn

Context preview

The summary Claude sees to decide when to auto-load this skill.

shadcn/ui under the ONE 6-token design system — CSS var tokens only, no hex, add components via the CLI. Invoke when editing src/components/ui/ or adding a primitive.

SKILL.md

shadcn.SKILL.md
name: shadcn
description: shadcn/ui under the ONE 6-token design system — CSS var tokens only, no hex, add components via the CLI. Invoke when editing src/components/ui/ or adding a primitive.

shadcn/ui in the ONE design system

The 33 primitives in `src/components/ui/` are vendored shadcn. They are styled by the **6-token system** — they reference CSS vars, never literal colors.

The token rule

Components use `bg-background`, `text-font`, `border-border`, `bg-primary text-on-primary`, etc. These map to `--color-*` declared in `Layout.astro`. **Never** a hex literal, raw `hsl()`, or a Tailwind palette utility (`bg-zinc-500`) — the `design-check` hook blocks them.

Muted text: `text-font/60`. Faint: `text-font/40`. Borders: `border-font/10`.

Adding a component

bunx shadcn@latest add dialog

Then sweep the generated file: replace any `bg-zinc-*` / hardcoded colors with the 6-token equivalents before committing. The `design-check` hook will flag what you miss.

Don't

  • Don't add ONE/SDK imports into `ui/` — primitives stay pure and portable.
  • Don't introduce a 7th color token — compose from the 6 + invariants (white/black/transparent/destructive/success).
Ships withone

Make Your Ideas Real. Build Apps, Websites and AI Agents with Plain English with Astro, React, Shadcn and Cloudflare

Get the whole plugin

Other skills on one.