/cards:designfrom cards
The single, authoritative design system for themable VSCode UI in this project — VS Code's own webview conventions fused with the Cards extension's concrete tokens and component specs. Use whenever building, styling, or reviewing UI in a Cards extension webview or HTML embedded in a card; every component follows the modules bundled here rather than ad-hoc values or generic best-practice guesses.
Ships in cards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
READ FIRST — NON-NEGOTIABLE. Every color in this system is a CSS custom property supplied by the live VS Code theme (
--vscode-*) or the Cards host (--cards-status-*). There are no brand hexes to memorize and none may be invented. A page authored against these variables matches the user's theme — light, dark, or high contrast — without per-theme CSS.
Flat, compact, theme-transparent UI that reads as native VS Code chrome. Separation comes from hairline borders and background steps, never elevation; type is small and quiet; motion is nearly absent. Two contexts consume the same rules — HTML embedded in cards (documents served by the Cards server, loaded by src in sandboxed iframes) and the extension's own webviews — differing only in delivery mechanics (contexts.md).
var(--vscode-*) or var(--cards-status-*); literal hex/rgb in a component is a bug. See foundation/colors.md.foundation/shadows.md.foundation/typography.md, foundation/radius.md.border: 1px solid var(--x-border, transparent) so HC themes materialize edges automatically. See foundation/colors.md.outline: 1px solid var(--vscode-focusBorder) — never a box-shadow ring. See principles/accessibility.md §3.contexts.md — read for every task| File | Covers |
|---|---|
| contexts.md | The two consumption contexts and their deltas: card HTML (CDN Tailwind + vscode-elements, CSP limits, self-painted surface) vs extension webviews (built Tailwind bridge, npm vscode-elements, codicon.css) |
foundation/ — read first| File | Covers |
|---|---|
| foundation/colors.md | --vscode-* variable groups, --cards-status-* registry, theme classes, HC pattern |
| foundation/typography.md | Font variables, 13px base, size ramp, weights 400/600, code/kbd/links |
| foundation/spacing.md | spacing.size* scale, webview body padding, Cards 12/12/6/0 conventions |
| foundation/radius.md | cornerRadius.* scale (2/4/6/8/12/circle), strokeThickness 1px |
| foundation/shadows.md | shadow-popover / shadow-dialog / shadow-legacy; flat-by-default |
| foundation/motion.md | ≤150ms durations, hover = background swap only, vscode-reduce-motion |
| foundation/layers.md | Page-local z scale, thumb-only scrollbars, --cards-scrollbar-width |
principles/ — read per task| File | Covers |
|---|---|
| principles/accessibility.md | Variable-pair contrast model, focus contract, WCAG rules for webviews |
| principles/interaction-and-ux-laws.md | UX laws, control-state contract, sanctioned hover/active treatments |
| principles/layout-and-hierarchy.md | Hierarchy, panel-first adaptive sizing, composition rules |
| principles/implementation-hygiene.md | Cross-cutting technique rules (CSS safety, margins, icons, borders) |
components/ — read per element on the page| File | Covers |
|---|---|
| components/buttons.md | Primary/secondary/icon buttons, Cards status buttons, <vscode-button> |
| components/inputs.md | Text fields, textareas, validation states |
| components/select.md | Native select + custom dropdown triggers |
| components/checkbox-radio.md | Checkboxes and radios |
| components/menus.md | Context/dropdown menu panels |
| components/list-rows.md | 22px list/tree rows, selection/focus/hover states |
| components/tabs.md | Editor-style and panel-underline tab strips |
| components/tables.md | Data tables, striping, sortable headers |
| components/panels.md | Containers, section headers, card surfaces |
| components/dialogs.md | Modal dialogs, quick-input overlays |
| components/badges.md | Counter badges, Cards status badges/dots |
| components/tooltips.md | Hover tooltips |
| components/progress.md | Progress bars, skeleton shimmer, spinners |
| components/codicons.md | Icon usage, per-context delivery, fallbacks |
contexts.md first and identify which context you're in; it changes delivery, not design.foundation/ before writing any styles.components/ module for each element on the page; follow its tables, don't improvise.principles/ modules per the task table below.| Task | Read at minimum |
|---|---|
| Card-embedded HTML page | contexts.md, foundation/ (all), components per element |
| New webview view/panel | contexts.md, foundation/ (all), layout-and-hierarchy, components per element |
| Form UI | inputs, select, checkbox-radio, buttons, accessibility |
| List/tree or picker UI | list-rows, menus, dialogs (quick-input), interaction-and-ux-laws |
| Status UI (badges, boards) | colors (status registry), badges, buttons, list-rows |
| Overlay (menu/tooltip/dialog) | layers, shadows, menus/tooltips/dialogs, accessibility |
| A11y review | accessibility, interaction-and-ux-laws, every component in the view |
| CSS cleanup | implementation-hygiene, contexts.md |
Domain-specific decisions live here; generic engineering rules live in principles/implementation-hygiene.md.
--vscode-* and --cards-status-* variables only; the status hexes are stated once in foundation/colors.md and nowhere else.principles/accessibility.md §1).border: 1px solid var(--x-border, transparent) on every bordered control.@tailwindcss/browser@4 + @vscode-elements/elements; webviews: the @cards.management/web/styles Tailwind bridge + npm vscode-elements. Hand-rolled CSS is the fallback, not the default.@vscode/webview-ui-toolkit is deprecated. Never reference or emulate it.statusColors.ts in code, --cards-status-* in pages, both documented in foundation/colors.md.contexts.md).data-vscode-theme-kind / theme-class change.cards html check, two-file pairing) belong to the cards:html-files skill — this skill owns design only.Documented departures from the general rules; anything not listed here follows the rule.
--cards-status-* are literal hexes behind variables, theme-invariant by design (same value in light/dark). See foundation/colors.md.cornerRadius scale. See foundation/radius.md.#ffffff on todo/active/archived, #000000 on needs-review/done — theme-invariant text paired with the theme-invariant fills, a sanctioned exception to the no-literal-hex rule (a theme variable here fails contrast in one polarity). See components/badges.md, principles/accessibility.md §1.2.principles/accessibility.md.components/codicons.md.foundation/spacing.md.foundation/shadows.md.rgba(0,0,0,0.5) — an alpha overlay, not a themeable surface. See components/dialogs.md.shadow-diagram token; the surrounding page chrome stays flat. See foundation/shadows.md and the cards skill's work-diagram-style.md reference.https:// assets are allowed in card HTML (any origin; http://////relative rejected). The sanctioned CDN stack (Tailwind browser build, vscode-elements module, codicon stylesheet) is the default baseline; other external assets are permitted with pinned versions. See contexts.md.components/badges.md (opens in a new tab)components/buttons.md (opens in a new tab)components/checkbox-radio.md (opens in a new tab)components/codicons.md (opens in a new tab)components/dialogs.md (opens in a new tab)components/inputs.md (opens in a new tab)components/list-rows.md (opens in a new tab)components/menus.md (opens in a new tab)components/panels.md (opens in a new tab)components/progress.md (opens in a new tab)components/select.md (opens in a new tab)components/tables.md (opens in a new tab)components/tabs.md (opens in a new tab)components/tooltips.md (opens in a new tab)contexts.md (opens in a new tab)foundation/colors.md (opens in a new tab)foundation/layers.md (opens in a new tab)foundation/motion.md (opens in a new tab)foundation/radius.md (opens in a new tab)foundation/shadows.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub goodfoot-io/cards.management --plugin cards8 skills in this plugin
/blocker-contractAuthoritative test for creating, retaining, or reporting blocked work./cardsYou must load this skill whenever the user asks to create, read, comment on, or modify a card, or launch a card in the cloud and monitor it/debugThis skill should be used when the user asks to "debug the cards assistant", "troubleshoot cards", "find cards logs", "check cards server health", "cards not working", "where are cards logs", "test cards API", asks what a Cards error code means, or reports a failure with Cards packages, the extension, licensing or registration, Claude Code hooks, Codex or Antigravity sessions, worktrees, configuration, authentication, or release tooling./html-filesAuthor HTML files in a card repository — two-file pairing, sidecar schema, relative assets/ references, inline CSS styling, and the cards html check gate./implementImplement, validate, and fast-forward merge a card-bound worktree./markdownMarkdown guidelines for card content.