一键导入
ui-color-palette-figma
Entry point for UI Color Palette workflows targeting Figma. Use to choose between variables and styles generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Entry point for UI Color Palette workflows targeting Figma. Use to choose between variables and styles generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Define a semantic color system taxonomy and resolve bindings against a palette using get_color_system. Use when the user wants to map semantic token names (role, prominence, state…) to primitive color shades. Produces a SystemData object for use in semantic code generation or design tool deployment.
Entry point for UI Color Palette workflows targeting Penpot. Use to choose between tokens, styles, and board/document preview generation.
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.
Build a full color palette from source colors. Uses get_palette to generate scales and themes, then previews the result visually. Use when the user wants to create a complete palette before auditing, exporting, or deploying it.
Entry point for UI Color Palette workflows targeting Framer. Use to choose between color style synchronization and visual document preview generation.
Generate source colors to seed a palette. Supports three modes — extract dominant colors from an image, generate from a natural language prompt, or derive harmonies from a base color. Output is a set of ColorConfiguration objects ready to pass to ui-color-palette-scale-palette.
| name | ui-color-palette-figma |
| description | Entry point for UI Color Palette workflows targeting Figma. Use to choose between variables and styles generation. |
| argument-hint | <variables|styles> |
Use this folder as the platform entry point for all UI Color Palette → Figma workflows.
Figma does not have a native token format. The canonical artifacts in Figma are:
For design token formats (DTCG, Style Dictionary, etc.), use ui-color-palette-generate-code instead.
SKILL.md at the root is the platform indexreferences/ contains the detailed operational sub-skillsBefore calling any MCP tool, check whether PaletteData is already present in the conversation context.
If it is, use it directly — never call get_palette again. Confirm to the user:
Using the palette already built in this session. Generating Figma artifacts now.
Only rebuild the palette if the user explicitly asks to change colors, preset, or themes.
This platform skill is primarily a routing and orchestration layer.
The agent should:
references/Do not start from raw API calls. Start from the workflow structure.
references/extract-source-colors.md — extract solid fill colors from the current Figma selection to seed a palettereferences/extract-styles-colors.md — extract solid fill colors from Figma paint styles to seed a palettereferences/generate-variables.md — generate or sync Figma local primitive variables and modesreferences/generate-semantic-variables.md — generate or sync Figma semantic variable collection from SystemData (VariableAlias layer on top of primitives)references/generate-styles.md — generate or sync Figma local paint stylesreferences/generate-preview.md — draw the palette as a swatch board on the Figma canvas (canvas rendering only, not variable/style export)Choose the sub-skill by user intent:
references/extract-source-colors.mdreferences/extract-styles-colors.mdreferences/generate-variables.mdSystemData present in context → references/generate-semantic-variables.mdreferences/generate-styles.mdreferences/generate-variables.md), semantics if SystemData is available (references/generate-semantic-variables.md), then styles (references/generate-styles.md), then preview (references/generate-preview.md)references/generate-preview.mdWhen routing a SystemData-based workflow to references/generate-semantic-variables.md, pass SystemData and PaletteData opaquely. The sub-skill:
SystemData.tokens, named by joining token.pathNames with /token.refs[themeIndex].shadeId)isExcluded: true) and unbound refs (shadeId: null) are skippedIf the user asks for "tokens" in the context of Figma, clarify that Figma does not have a native token format and route to variables instead. If they want exportable design tokens, route to ui-color-palette-generate-code.
An agent should think in terms of the Figma Plugin API surface, not only the plugin wrapper:
Use MCP or direct API calls as the execution layer, not as the skill structure.
The plugin bridge files are reference implementations. If the plugin action is unavailable, the agent should reproduce the same behavior directly through Figma API requests.
Delegate this skill to palette-transitioner.
The palette-transitioner agent normalizes PaletteData into the correct row model for Figma (variableRows, styleRows, previewRows), then routes execution through the appropriate Figma sub-skill.