ui-color-palette-generate-semantic-code
Generate semantic code files alongside primitives by passing a color system configuration to generate_code.
Skill by a-ng-d
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/a-ng-d-ui-color-palette-generate-semantic-code
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.
About
Use cases: design
Reviews
Write a reviewNo 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/ui-color-palette-generate-semantic-code
What's inside
- Skill name
ui-color-palette-generate-semantic-code- Description
- Generate semantic code files alongside primitives by passing a color system configuration to generate_code. Use when the user wants design tokens or code that includes both primitive shades and semantic layer (role/prominence/state mappings). Requires a SystemConfiguration in context or gathered from the user.
- License
- MIT
- Instructions
- 125 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Generate Semantic Code Use the **ui-color-palette** MCP tool `generate_code` with a `system` parameter to produce **two output files**: a primitives file and a semantics file. Building the color system taxonomy is handled by `ui-color-palette-build-color-system`. Primitive-only code export (no semantic layer) is handled by `ui-color-palette-generate-code`. --- ## Pre-flight — Check session state Before asking any questions, check the conversation context. ### If `GeneratedSemanticCode[format]` is already in context Display it directly without calling `generate_code` again. Only regenerate if the user changes a parameter or requests a fresh export. ### If `SystemConfiguration` is already in context Skip Step 0 questions about the system. Use the existing `system` config. ### If `base` and `themes` are already in context Reuse them. Do not call `get_palette` or `get_color_system` again. ### If neither `SystemConfiguration` nor `system` bindings are available Ask the user to define the taxonomy first, or route to `ui-color-palette-build-color-system`. --- ## Step 0 — Gather parameters ### Required **1. Palette inputs** — confirm `base` and `themes` are available. If not, recover from context or run `ui-color-palette-scale-palette` first. **2. System configuration** — confirm `system` (schema + bindings) is available. If not, run `ui-color-palette-build-color-system` first or ask the user to provide the taxonomy. **3. Format** — ask to choose. Default: `css`. **4. Color space** — ask only for formats that use it (`css`, `scss`, `less`, `dtcg-tokens`). Default: `RGB`. --- ## Tool — `generate_code` | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | | `base` | object | Yes | Base palette configuration | | `themes` | array | Yes | Theme configurations | | `format` | enum | No | Output format (default: `css`) | | `colorSpace` | enum | No | Color space for output values (default: `RGB`) | | `system` | object | Yes (for semantic) | `SystemConfiguration` — schema + bindings | ### `format` values and their two output files | Value | Primitives file | Semantics file | `colorSpace` used? | | ----- | --------------- | -------------- | ------------------ | | `css` | `primitives.css` | `semantics.css` | Yes | | `scss` | `primitives.scss` | `semantics.scss` | Yes | | `less` | `primitives.less` | `semantics.less` | Yes | | `tailwind-v3` | `primitives.js` | `semantics.js` | No | | `tailwind-v4` | `primitives.css` | `semantics.css` | No | | `dtcg-tokens` | `primitives.json` | `semantics.json` | Yes | | `style-dictionary-v3` | `primitives.json` | `semantics.json` | No | | `universal-json` | `primitives.json` | `semantics.json` | No | | `native-tokens` | `tokens.json` (merged) | — | No | | `swift-ui` | `Primitives.swift` | `SemanticTokens.swift` | No | | `ui-kit` | `Primitives.swift` | `SemanticTokens.swift` | No | | `compose` | `Primitives.kt` | `SemanticTokens.kt` | No | | `resources` | `primitives.xml` | `semantics.xml` | No | | `csv` | `primitives.csv` | `semantics.csv` | No | `colorSpace` applies only to `css`, `scss`, `less`, and `dtcg-tokens`. Values: `RGB` · `LCH` · `OKLCH` · `LAB` · `OKLAB` · `HSL` · `HSLUV` · `HSV` · `CMYK` · `HEX` · `P3` > **Note**: `native-tokens` (Tokens Studio) merges primitives and semantics into a single `tokens.json` with multiple sets when `system` is provided. ### What the output contains **Primitives file** — same as without `system`: one variable/token per shade (e.g. `--blue-500`). **Semantics file** — one variable/token per bound token path, referencing the primitive: - Default theme block (`:root` / `$variables` / top-level object) uses the default theme's resolved ref. - Per-theme override blocks are only emitted when a token's ref **differs** from the default — excluded tokens are omitted entirely. Unbound tokens (no binding or ref not found in palette) appear as comments in the semantics file. --- ## Workflow 1. Confirm `base`, `themes`, and `system` are available. 2. Ask for `format` (and `colorSpace` if applicable) if not already specified. 3. Call `generate_code` with `base`, `themes`, `format`, `colorSpace` (if applicable), and `system`. 4. **Session state**: store result as `GeneratedSemanticCode[format]` slot. 5. **Do not read or analyze the returned files.** Present each file as-is in its own fenced code block, labelled with the filename. Do not parse, summarize, or reason over the content — the output can be very large. 6. Offer to write the files locally or commit via `gh-cli` / `gitlab-cli-skills`. --- ## Arguments `$ARGUMENTS` can specify the target format or color space. - `/ui-color-palette:generate-semantic-code css oklch` - `/ui-color-palette:generate-semantic-code dtcg-tokens` - `/ui-color-palette:generate-semantic-code tailwind-v4` ## Tips - **Format recommendations**: prefer `tailwind-v4` for new web projects, `dtcg-tokens` for design token interoperability, `css` for maximum compatibility. - **Excluded tokens**: tokens with `isExcluded: true` are present in `SystemData` but do not appear in the semantics file output. - **Unbound tokens**: appear as commented-out hints in the semantics output so the user can see what needs a binding. - **Primitives unchanged**: the primitives file is identical whether `system` is provided or not — the semantic layer is purely additive. --- ## Recommended subagents
From a-ng-d/claude-ui-color-palette, MIT.
More from a-ng-d/claude-ui-color-palette
- 0.499score
ui-color-palette-sketch
a-ng-d
Entry point for UI Color Palette workflows targeting Sketch.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ui-color-palette-framer
a-ng-d
Entry point for UI Color Palette workflows targeting Framer.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ui-color-palette-penpot
a-ng-d
Entry point for UI Color Palette workflows targeting Penpot.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-build-color-system
a-ng-d
Define a semantic color system taxonomy and resolve bindings against a palette using get_color_system.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-audit-palette
a-ng-d
Audit color pairs for contrast compliance against WCAG 2.1 and APCA standards.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-scale-palette
a-ng-d
Build a full color palette from source colors.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-manage-palettes
a-ng-d
Browse, publish, share, update, and delete palettes on the UI Color Palette platform.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
ui-color-palette-figma
a-ng-d
Entry point for UI Color Palette workflows targeting Figma.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
ui-color-palette-generate-source-colors
a-ng-d
Generate source colors to seed a palette.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
ui-color-palette-generate-code
a-ng-d
Export palette configuration as code or design tokens via the generate_code MCP tool using base and themes.
SkillCFreshness: C★ 1Claude Code +9 - 0.437score
gitlab-cli-skills
a-ng-d
Comprehensive GitLab CLI (glab) command reference and workflows for all GitLab operations via terminal.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
ui-color-palette-help
a-ng-d
Display a quick-start guide and list all available commands.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 23, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- ui-color-palette.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from a-ng-d
- 0.499score
ui-color-palette-framer
a-ng-d
Entry point for UI Color Palette workflows targeting Framer.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ui-color-palette-sketch
a-ng-d
Entry point for UI Color Palette workflows targeting Sketch.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
ui-color-palette-penpot
a-ng-d
Entry point for UI Color Palette workflows targeting Penpot.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-manage-palettes
a-ng-d
Browse, publish, share, update, and delete palettes on the UI Color Palette platform.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-build-color-system
a-ng-d
Define a semantic color system taxonomy and resolve bindings against a palette using get_color_system.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
ui-color-palette-audit-palette
a-ng-d
Audit color pairs for contrast compliance against WCAG 2.1 and APCA standards.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
ui-color-palette-generate-semantic-code skill. Agent Mart. https://agentmart.dev/skills/a-ng-d-ui-color-palette-generate-semantic-code (last updated 2026-10-24)