Skip to content
Agentmart
Submit a tool

boxel-theme-development

Use when the deliverable is a theme ARTIFACT — creating, converting, auditing, or patching Theme, StructuredTheme, StyleReference, DetailedStyleReference, or…

Skill by cardstack

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cardstack-boxel-theme-development

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when the deliverable is a theme ARTIFACT — creating, converting, auditing, or patching Theme, StructuredTheme, StyleReference, DetailedStyleReference, or BrandGuide cards; importing/exporting Google DESIGN.md design-system briefs; logo/mark usage and functional palettes. NOT for deciding a card's visual language (boxel-design) and NOT for applying tokens inside card templates (boxel-ui-guidelines).

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/boxel-theme-development

What's inside

Skill name
boxel-theme-development
Description
Use when the deliverable is a theme ARTIFACT — creating, converting, auditing, or patching Theme, StructuredTheme, StyleReference, DetailedStyleReference, or BrandGuide cards; importing/exporting Google DESIGN.md design-system briefs; logo/mark usage and functional palettes. NOT for deciding a card's visual language (boxel-design) and NOT for applying tokens inside card templates (boxel-ui-guidelines).
License
MIT
Instructions
64 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • design-md-adapter.md · references/
  • shadcn-boxel-token-mapping.md · references/

SKILL.md (first lines)

# Boxel Theme Development

Use this for the theme artifact itself. Use `boxel-design` when the task is primarily styling a card template, and pair both skills when a card design drives a new theme.

## Read First

1. `boxel/references/theme-design-system.md` for the Boxel theme hierarchy, Brand Guide fields, the Boxel Brand Guide rule, and dark mode (§3.3: `data-theme`, `darkModeVariables`).
2. `boxel-ui-guidelines/references/theme-token-contract.md` for the full list of tokens a theme must satisfy — the only inventory; nothing else lists them.
3. `references/shadcn-boxel-token-mapping.md` before assigning semantic color, spacing, radius, or component-facing token values.
4. `references/design-md-adapter.md` when the input or output is a Google `DESIGN.md` file, a brand brief, or a generic design-system document.
5. `boxel-design/SKILL.md` when inventing visual direction, voice, typography, or brand mood.
6. `boxel-ui-guidelines/references/use-boxel-design-tokens-for-theming.md` when checking how templates will consume the theme.
7. `source-code-editing/SKILL.md` before editing any `.gts`; `boxel/references/lint-workflow.md` before declaring `.gts` work done.

## Workflow

1. **Classify the job.**
   - Create: build a new Theme/StyleReference/BrandGuide instance.
   - Convert: map `DESIGN.md`, a brand guide, an existing site, or another token system into Boxel fields.
   - Audit: compare an existing theme card against Boxel fields, DESIGN.md rules, accessibility, and downstream template needs.
   - Patch: preserve the existing theme class and structured fields while improving values and prose.

2. **Choose the narrowest correct card type** from the ThemeCard Types table in `boxel/references/theme-design-system.md` (`StructuredTheme` floor, `StyleReference`, `DetailedStyleReference`, `BrandGuide`). Boxel built-in feature work uses `@cardstack/base/Theme/boxel-brand-guide` as the source of truth.

3. **Gather source material.**
   - Existing Theme/BrandGuide JSON, if present.
   - Any `DESIGN.md`, style guide, brand guide, logo pack, font URLs, screenshots, or reference sites.
   - Current realm conventions: where Theme cards live, how instances link `cardInfo.theme`, and whether a parent card computes `cardTheme`.

4. **Map values before writing.**
   - Tokens are exact implementation values.
   - Prose explains why and when to use them.
   - Place brand material where the Brand Guide Pattern in `boxel/references/theme-design-system.md` says: marks in `markUsage`, brand colors in `brandColorPalette`, role colors in `functionalPalette`, semantic UI values in `rootVariables` and `darkModeVariables`. Never invent miscellaneous string fields for brand assets.
   - Treat each paired surface token as a surface/foreground pair ("Colors" in the token contract; the neutral surfaces such as `--canvas` and `--field` have no pair and must read under `--foreground`): `--primary` is a fill, not text, and `--muted` is a pale *surface* while `--muted-foreground` is quiet-but-readable *text*; defining both as dark grays yields dark-on-dark tables in long-form Markdown.
   - Normalize `rootVariables.spacing` for the runtime's `--spacing * 4` rule ("Spacing" in the token contract; conversion table in `references/shadcn-boxel-token-mapping.md`).
   - Put design rationale in `visualDNA` and the DetailedStyleReference markdown fields.

5. **Build or patch the Theme card.**
   - Preserve rich theme structure. Do not flatten `BrandGuide` or `StyleReference` into raw `cssVariables`, and never build on the bare `Theme` card: `StructuredTheme` is the minimum, `BrandGuide` when custom variables outside the contract are needed.
   - Include `attributes.cardInfo` for name, summary, thumbnail, and notes.
   - Omit `relationships["cardInfo.theme"]` on Theme cards themselves.
   - Do not write `cssImports`; it is derived from the font fields (`boxel-ui-guidelines/references/font-loading-theme-card-owns-imports.md`).
   - Never nest `@media` blocks inside `cssVariables` — the theme parser silently skips those declarations. Dark-mode values belong in `darkModeVariables`.
   - Use absolute URLs for cross-realm theme links unless a relative path has been verified.

6. **Validate.**
   - If a `DESIGN.md` file exists and the CLI is available, run `npx @google/design.md lint DESIGN.md`; request approval first if package download is required.
   - If editing `.gts`, run the Boxel lint gate from `boxel/references/lint-workflow.md`.
   - Preview the Theme/BrandGuide card and at least one consuming card instance.
   - Check contrast for semantic pairs (`--primary`/`--primary-foreground`, etc.) and ensure ordinary templates can use semantic tokens without reaching into raw brand colors.
   - Audit component-facing values against `references/shadcn-boxel-token-mapping.md`, especially primary-as-text and spacing-scale failures.

## Done Criteria

- [ ] The chosen card type matches the source material and intended reuse.
- [ ] Tokens and prose both exist when the theme is more than token-only.
- [ ] Brand assets live in `markUsage`; brand palette lives in `brandColorPalette` and `functionalPalette`.
- [ ] `rootVariables`, `darkModeVariables`, and `typography` are structured where the card type supports them.
- [ ] No Theme card links to another Theme through `cardInfo.theme`.
- [ ] Boxel built-in feature work uses the Boxel Brand Guide.
- [ ] If DESIGN.md was involved, token/prose mapping was checked against `references/design-md-adapter.md`.
- [ ] Shadcn/Boxel token pairing was checked: `--primary` is not ordinary text, foreground pairs exist, and spacing uses the Boxel normalized value.

From cardstack/boxel-skills, MIT.

More from cardstack/boxel-skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 7, 2026 (22 days ago)
Last release
Oct 23, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from cardstack

Cite this page

boxel-theme-development skill. Agent Mart. https://agentmart.dev/skills/cardstack-boxel-theme-development (last updated 2026-10-24)