Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

design-system-authoring

БесплатноБез исполняемых скриптовНе проверен

Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs…

makifbaysalот makifbaysal★ 123 звезды на GitHub

Об этом скилле

Design System Authoring

Overview

A design system the team will actually build with is derived from the code that already exists, named by role, proven against contrast in both themes, and proposed — never invented in a vacuum. The proposal is what every developer run in those repositories will build with from the day it is approved, so a vague token or a missing dark value becomes a hundred one-off decisions downstream.

Core principle: Read everything first, keep what is shared, give every deliberate difference a reason, and report the rest as drift.

1. Find what exists

Read every repository with a UI (clone the ones not in your workspace: git clone --depth 1 <root_path or remote_url> _design/<name>, then grep_code/read_file with path: "_design/<name>"). Note every value with the file and line it came from.

Stack Tokens live in Fonts Components
Web, Tailwind v4 @theme in src/index.css / app/globals.css; :root and .dark / [data-theme=dark] CSS variables <link> in index.html, @font-face, next/font in app/layout.tsx src/components/{ui,atoms,molecules,…}, INVENTORY.md, components.json, *.stories.tsx
Web, Tailwind v3 tailwind.config.{js,ts} theme.extend + the CSS variables it points at same same
Web, CSS-in-JS createTheme (MUI), extendTheme (Chakra), theme.ts (styled-components / emotion) same same
iOS (SwiftUI) Assets.xcassets/**/*.colorset/Contents.json (Any/Dark), Theme.swift, Color+*.swift, Font+*.swift UIAppFonts in Info.plist Views/Components/, DesignSystem/
Android (Compose) ui/theme/Color.kt, Theme.kt, Type.kt, Shape.kt res/font/ ui/components/
Android (views) res/values/colors.xml, themes.xml, values-night/, dimens.xml res/font/ res/layout/, custom views
Flutter ThemeData, ColorScheme, ThemeExtensions (lib/ui/core/theme/) fonts: in pubspec.yaml lib/ui/core/{atoms,molecules,organisms}

Find the real palette by frequency, not by the theme file alone — a value used in 40 places is the palette, one used once is a one-off or drift. Read-only, in the workspace:

grep -rhoE '#[0-9a-fA-F]{6}\b' src | tr 'a-f' 'A-F' | sort | uniq -c | sort -rn | head -40
grep -rhoE 'Color\(0x[0-9A-Fa-f]{8}\)' lib | sort | uniq -c | sort -rn | head -40

Nothing to derive from

A new product with no UI code yet: the brief is the source. Ground every choice in the audience, the subject matter and the references the brief names (rule avoid-ai-default-looks applies hardest here), make ONE deliberate proposal rather than a menu, and write each decision with its reason in DESIGN.md's Overview — the human approves or annotates it like any other.

2. Name by role, never by hue

  • Colour: background, foreground, surface, surface-raised, muted, muted-foreground, border, input, ring, and each action/status colour with its text-on-it pair: primary/on-primary, secondary/on-secondary, accent/on-accent, destructive/on-destructive, success, warning, info (each with on-*). Keep the convention the code already uses (primary-foreground in a shadcn repo) — one convention per design system.
  • Type: font.family.sans / font.family.display / font.family.mono, a font.size scale, font.weight, line-height, and the named roles (typography.heading-1, body, body-sm, label, caption) as composite tokens.
  • Spacing on a 4px base (space.1 = 4px … space.16 = 64px); radius (radius.sm/md/lg/full); shadow by elevation (shadow.sm/md/lg); motion (duration.fast/normal, easing.standard); layout (breakpoint.sm/md/lg/xl, container.max); on mobile size.touch-target.
  • blue-500 is a palette value, not a role. A raw palette may exist as its own palette group that role tokens alias ("$value": "{palette.green.700}"); components only ever see roles.

3. The DTCG token tree

Groups are objects; a token is an object with $value (and $type, on the token or inherited from its group; $description where the use is not obvious). Values in the form the code writes them — #RRGGBB hex by default (the contrast check reads it), 16px, 150ms. Both themes carry the SAME keys; a key missing from one theme is a defect.

{
  "color": {
    "$type": "color",
    "light": {
      "background": { "$value": "#FFFFFF" },
      "foreground": { "$value": "#1C2024" },
      "muted-foreground": { "$value": "#5A6560" },
      "primary": { "$value": "#1F5F4A", "$description": "Primary action, links, focus ring" },
      "on-primary": { "$value": "#FFFFFF" }
    },
    "dark": {
      "background": { "$value": "#111416" },
      "foreground": { "$value": "#E8ECEA" },
      "muted-foreground": { "$value": "#9AA5A0" },
      "primary": { "$value": "#5FB894" },
      "on-primary": { "$value": "#0B1F17" }
    }
  },
  "font": {
    "family": { "
Полный SKILL.md на GitHub

Установить design-system-authoring в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл design-system-authoring?

Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns

Как установить скилл design-system-authoring?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл design-system-authoring запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить design-system-authoring с