/atelier:design-token-syncfrom atelier
Generates CSS custom properties, Tailwind theme config, typed JS constants, and Figma Variables API payload from an Atelier brand file. Use after brand color or font changes.
Ships in atelier. 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.
One-way: reads .atelier/brand.json (see brand-memory), writes token files. It never reads its outputs back and never calls Figma.
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" tokens # project root = cwd, writes dist/tokens/
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" tokens --root ./site --out src/styles/tokens --targets css,dts
JS API. The module path is passed as an argument and turned into a file URL, so the import works with Windows, macOS and Linux paths:
node --input-type=module -e "const { pathToFileURL } = await import('node:url'); const m = await import(pathToFileURL(process.argv[1]).href); const files = await m.syncTokens({ projectRoot: '.', outDir: 'dist/tokens', targets: ['css', 'tailwind'] }); for (const f of files) console.log(f);" "${CLAUDE_SKILL_DIR}/index.mjs"
syncTokens({ projectRoot, outDir, targets }) resolves to the absolute paths it wrote. The same module exports the pure emitters emitCss, emitTailwind, emitDts, emitJs and emitFigmaVariables: each takes a brand config object and returns the file content as a string.
| CLI | API | Default | Meaning |
|---|---|---|---|
[projectRoot] or --root <dir> | projectRoot | cwd | Directory holding .atelier/brand.json |
--out <dir> | outDir | dist/tokens | Output directory: absolute, or relative to the project root |
--targets <list> | targets (array or comma string) | all | Any of css, tailwind, dts, figma |
-h, --help | Print usage to stdout and exit 0 |
An unknown or empty target list is a usage error. All files are rendered before any is written.
| Target | File | Contents |
|---|---|---|
| css | tokens.css | :root with --color-<key> per palette entry and --font-<slot> per font |
| tailwind | tailwind.config.js | ESM export default { theme: { extend: { colors, fontFamily } } } |
| dts | tokens.js | ESM: frozen colors and fonts objects, plus one export const per color |
| dts | tokens.d.ts | Types for tokens.js: ColorName, FontName, literal-typed colors, fonts and consts |
| figma | figma-variables.json | Request body for Figma POST /v1/files/:file_key/variables |
The CLI prints one absolute path per line; the API returns them in the order tokens.css, tailwind.config.js, tokens.d.ts, figma-variables.json, tokens.js (only the requested targets).
tokens.css starts with /* Generated by atelier design-token-sync. Do not edit by hand. */. tailwind.config.js, tokens.js and tokens.d.ts start with the same text as a // comment. figma-variables.json has no header (JSON has no comments). Do not hand-edit: change brand.json and re-run.
Use the Tailwind file as a preset (import tokens from './dist/tokens/tailwind.config.js', then presets: [tokens]), or with Tailwind v4 via @config.
0: files written, or --help.2: usage error (usage printed to stderr), or a failure such as a missing or invalid brand.json (atelier: <message> on stderr).Silkscreen, 'Courier New', monospace becomes "Silkscreen", "Courier New", monospace: family names are quoted and escaped, generic families (serif, sans-serif, monospace, system-ui, ui-monospace and the like) and the vendor keywords -apple-system and BlinkMacSystemFont stay bare. Tailwind gets one array entry per family, with sans-serif (monospace for the mono slot) appended when the stack has no generic family. The vendor keywords do not count as one, because a browser without them skips them.brand-500, default); object keys are quoted where needed. Named exports in tokens.js use safe identifiers: other keys are camelCased (brand-500 -> brand500, brand-primary -> brandPrimary), reserved words and the names colors, fonts and Object get a trailing _ (default -> default_, Object -> Object_), and a name that is already taken gets another _. colors['brand-500'] always works with the original key, and tokens.d.ts marks each renamed export with its key.palette collection of COLOR variables ({ r, g, b, a } from 0 to 1) and a typography collection of STRING variables holding the first family of each stack, each collection with one mode named default. To apply it: curl -X POST -H "X-Figma-Token: $FIGMA_TOKEN" -H "Content-Type: application/json" --data @dist/tokens/figma-variables.json https://api.figma.com/v1/files/<file_key>/variables. Figma allows this endpoint only for full members of Enterprise orgs, with a token that has the file_variables:write scope. Every change is a CREATE, so posting twice duplicates the collections.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ethany33/atelier --plugin atelier8 skills in this plugin
/accessibility-design-auditWCAG 2.1 A and AA accessibility audit of a URL or local HTML file with axe-core in headless Chromium. Writes a markdown report grouped by impact plus raw JSON and exits 1 on critical or serious violations, so it doubles as a CI gate. Use after design changes (colors, contrast, typography, forms, modals), before shipping a page, or when asked to check a11y, WCAG, ADA or Section 508./brand-asset-pipelineRender one SVG logo mark into a PNG brand asset pack (favicons 16 to 180 px, apple-touch-icon and Android Chrome icons, Open Graph, Twitter and LinkedIn covers, Steam store capsules). With --root it takes the background color, mark path and Steam target from .atelier/brand.json. Use when bootstrapping site icons, rebranding, or making social or Steam store art./brand-memoryCreate, read, update, validate and audit the project's brand file, .atelier/brand.json (studio, product, voice, hex palette, font stacks, logos, social handles, deploy target, motion and surface tokens). Use when starting a design workflow, running /brand-init, /brand-get, /brand-set or /brand-audit, changing a brand color or font, or checking brand.json against its schema./html-to-videoRecord an HTML page, local .html file or URL as an MP4 (H.264) or WebM (VP9) video with frame-exact timing (virtual clock), optional muxed audio and a JPG poster. Use for product or game trailers, animated demo clips, screencasts of a local dev server, changelog or social videos, and turning CSS/JS animations into a video or GIF./og-card-generatorRender 1200x630 Open Graph and Twitter card PNGs, one per page, from .atelier/brand.json colors, fonts, logo and studio name; single card from flags or a batch from a pages.json manifest. Use when adding og:image or twitter:image meta tags, setting up social link previews for a site or blog, or regenerating cards after a brand color or font change./responsive-image-pipelineResize PNG/JPG/WebP images into AVIF and WebP srcset variants (EXIF-rotated, never upscaled), a fallback <img> file and a base64 LQIP placeholder, then print a copy-paste <picture> snippet with truthful srcset widths. Cached per source. Use for site images, hero art, gallery screenshots, srcset, page-weight or LCP work, or reprocessing after swapping an asset.Other plugins' skills for the same job