brignano/ai-tools/design-system

Claude Code and agent skill by brignano/ai-tools

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

How to style anything with brignano/design — wiring it into a new project (npm or jsDelivr, fonts, browserslist, Tailwind bridge, a product's mark, components, templates, icons), what each colour token means, fill vs ink vs surface steps, the mono voice, the two tiers, dark mode, chart colours, and diagram/diff colours. Use when starting any new project, site or app, and before writing any UI, CSS, Tailwind classes, colour, theme, chart or diagram colours or component styling, in any repo.

Install

npx vskill@latest install brignano/ai-tools/design-system

SKILL.md

The same SKILL.md was published earlier as brignano/ai-tools/design-system.

Styling — always use the design system

Before writing any UI, styling, or colour, read [`brignano/design`](https://github.com/brignano/design) — `DESIGN.md` for the rules, `tokens.css` for the values, `releases/` for what each version changed. It is public, versioned, and the single source of truth for brignano.io, life, julia, hoststats, homelab, driftwood and anything new. This skill is a short summary of it. If this skill and DESIGN.md disagree, DESIGN.md wins. Never invent a palette, pick fonts, or keep a UI kit's default theme instead.

Starting a new project

Wire it in from the first commit, not as a later restyle.

  1. Pick the tier. Tool tier (life, homelab, driftwood: dense, 15px body,

no decorative motion) is the default with no class. A public marketing surface (brignano.io) opts in with class="tier-marketing" on <html>, which unlocks the larger scale and scroll motion. Colour is identical across both. If unsure, it is a tool.

  1. Install rather than copy values:

``sh npm install @brignano/design ``

That takes the latest 0.x; npm view @brignano/design version prints it. Keep the caret npm writes. A caret on 0.x pins the minor (^0.9.0 takes 0.9.1 but never 0.10.0), so a new minor release needs an explicit bump in every consumer. Read that version's notes in releases/ before bumping.

No build step? Use jsDelivr, pinned to the version that command prints (the same path serves components.css, templates/ and icons/): https://cdn.jsdelivr.net/npm/@brignano/design@<version>/tokens.css

A claude.ai Artifact can't do either: its CSP blocks stylesheets from every host except Google Fonts. See claude.ai Artifacts below.

  1. Import. Plain CSS:

``css @import "@brignano/design/tokens.css"; @import "@brignano/design/components.css"; /* buttons, fields, messages, the voice classes */ @import "@brignano/design/tokens.chart.css"; /* only if the surface has charts */ ``

components.css is the shared controls and patterns as plain CSS, in one layer (brignano.components) that your own unlayered CSS beats without !important (DESIGN.md §14). State comes from the attribute that makes it true (disabled, aria-invalid, aria-current), never a class. Use a component before writing your own; each one's page under previews/ is its docs (snippet, when to use it, when not to, accessibility).

Tailwind v4 — this order, and use the bridged utilities (bg-card, text-ink, bg-interactive, bg-danger-surface, …), never the stock palette (blue-600, gray-*, violet-*):

``css @import "tailwindcss"; @import "@brignano/design/tokens.css"; @import "@brignano/design/tailwind.css"; ``

  1. Set the product's mark. A product with its own mark colour sets it

once, <html data-mark="teal"> (or violet, magenta), and its brand glyph, error pages and .rule draw in it (--mark-current), the same in its app as on its product page. With no attribute the mark is the family amber, which personal tools share. A product gets its own hue when it gets a product page, not before.

  1. Start from a template and the icon set. Whole-page layouts ship as

@brignano/design/templates/<name>.css, imported after components.css: app-shell (the frame a tool app sits in), settings, error (404, 500, offline), article, changelog and legal. The transactional email is templates/email.html + email.txt, not a stylesheet: fill its colours from the tokens with scripts/email-tokens.mjs. Icons come only from the package's icons/ (Lucide outlines in currentColor, at @brignano/design/icons/<name>.svg): paste one inline and size it with .icon-sm, .icon or .icon-lg. Need one that isn't there? Add it to design from Lucide; don't draw one or pull in another set.

  1. Load the fonts yourself. The tokens only name them: Geist (--sans)

and IBM Plex Mono (--mono). Use next/font, Fontsource or the geist package, and load Geist as the variable font or include weight 800: .display and .stamp need it. Heavy Geist is the display treatment in both tiers. Silkscreen is being retired: --display still names it on the marketing tier until brignano/design#142 removes it, so only a surface that already uses var(--display) still loads it.

  1. Set the browser floor in the consumer's package.json, or Lightning CSS

(Next, Vite, Parcel) lowers light-dark() and data-theme on an inner element stops re-theming that section:

``json "browserslist": ["chrome >= 123", "edge >= 123", "firefox >= 120", "safari >= 17.5"] ``

  1. Theme switching. No attribute follows the OS. A manual toggle sets

data-theme="light"|"dark". Tailwind consumers must set `data-theme` alongside `.dark`, in both the pre-paint script and the toggle — Tailwind keys off the class, the tokens key off the attribute (DESIGN.md §11):

``js root.classList.toggle("dark", d); root.setAttribute("data-theme", d ? "dark" : "light"); ``

  1. Before calling it set up: grep for hex, rgb(, hsl( and stock

Tailwind colour utilities (there should be none), look at the page in both themes, and note in the README that it uses @brignano/design, which tier, and its mark if it has one.

claude.ai Artifacts

Every Artifact Claude builds for Anthony (tracker, plan page, dashboard, explainer, review page) is on this system, in the tool tier, with no mark attribute. Run the kit first, then write the page:

sh
bash "<this skill's directory>/artifact-kit.sh" <scratchpad>/<artifact-name>

It puts the latest package's tokens.css and components.css beside a starter index.html (Geist and IBM Plex Mono from Google Fonts, --bg body, an eyebrow, a theme toggle that sets data-theme) and prints the Artifact files map to publish with. Build on the starter: components from components.css (.card, .btn, .pill-*, .table, .stat, .msg-*, .num), values from tokens, page layout as the only local CSS.

  • **The design system replaces the artifact-design skill's look, not its

contract.** Keep its rules for the title, script hosts, phone width, storage and size. Skip its palette, font and "define tokens on :root" advice: tokens.css already themes light and dark through color-scheme and data-theme, so the page writes no :root colours and no prefers-color-scheme block of its own.

  • Never hand-copy a subset of tokens into the page. That is how the Idea

Ledger sat on 0.1.0 colours, with a caption grey under the contrast floor, while the package moved on. Republishing an old artifact? Re-run the kit into its folder (it leaves index.html alone) and publish the refreshed stylesheets with it.

  • Not covered: Claude Docs and typed Artifacts (Slides, Design) take their

look from the Artifact type or its design system, not from page CSS.

  • Charts in an Artifact use --chart-1..8 (tokens.chart.css from the same

tarball, published the same way).

The rules that matter most

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/brignano/ai-tools/design-system/badge)](https://verified-skill.com/skills/brignano/ai-tools/design-system)

Something wrong with this skill or its page? Tell us.