Figma
Implement UI from Figma designs using MCP tools. Use when a prompt includes a Figma link, or when implementing/updating UI components based on a Figma design.
от vultisig★ 22 звезды на GitHub
Установить Figma в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Figma Design Implementation
Figma MCP Usage
- When a prompt includes a Figma link (
https://figma.com/...), use Figma MCP to open and inspect the design first. - If MCP cannot access the design (auth, permissions, network, or node issues), do not proceed or "imagine" the design. Stop and briefly explain why the MCP connection failed and what access is needed.
- Never implement UI "according to the design" without actually retrieving it via MCP (e.g., code, metadata, or screenshot) in this session.
- Use existing color tokens from this codebase's semantic HSLA system.
- Colors are defined in
lib/ui/theme/ThemeColors.tsand implemented inlib/ui/theme/darkTheme.ts. - In styled-components: use
getColor('tokenName')from@lib/ui/theme/getters. - As component props: use
ThemeColortype (e.g.,color="primary",bgColor="foreground"). - Key token categories:
- Text:
text,textSupporting,textShy - Semantic:
primary,success,danger,info,idle - Surfaces:
background,foreground,foregroundExtra,foregroundSuper - Buttons:
buttonPrimary,buttonSecondary,buttonNeutral
- Text:
- Colors are defined in
- Never hardcode hex values from Figma. Always find the matching semantic token in
lib/ui/theme/darkTheme.ts. - When a Figma color doesn't match any token, stop and ask rather than guessing.
Mandatory Design-to-Code Mapping
Before writing ANY implementation code from a Figma design, you MUST extract and explicitly list a property mapping table in the plan. Do NOT skip this step. Do NOT guess or assume values.
1. Extract every property from every element
For EACH element in the Figma get_design_context output, extract:
- Colors: Read the exact color on every element (backgrounds, borders, text, icons). Map each to a codebase semantic color token. Do NOT reuse a "similar" token — use the exact one from the design.
- Spacing: Read the exact
gap,padding, andmarginpixel values between every pair of adjacent elements. Different gaps between different elements mean nested containers with different gap values — never flatten into a single gap. - Dimensions: Read exact
height,width,min-heightvalues. Cross-reference with codebase component size props (e.g., Buttonsize="md"= 46px height). - Typography: Read ALL of: font
size,weight,line-height,letter-spacing, andcolor. Map each toTextcomponent props. Do NOT skipweight— the default may differ from the design.
2. Present the mapping table in the plan
Use this format:
| Element | Figma Property | Figma Value | Code Prop/Token |
|----------------|---------------|----------------|----------------------------------|
| Icon | color | (from design) | getColor('contrast') |
| Message | color | (from design) | Text color="supporting" |
| Button | bg | (from design) | Button kind="secondary" |
| Button | height | 46px | Button size="md" |
| Icon<>Message | gap | 8px | VStack gap={8} |
| Message<>Btn | gap | 24px | VStack gap={24} |
3. Cross-reference component props with Figma values
When the design uses a known codebase component (Button, Text, etc.):
- Button kind: Match the Figma button's background and border colors against the theme tokens in
lib/ui/theme/darkTheme.ts.primary: usesbuttonPrimarysecondary: usesbuttonSecondaryoutlined: uses transparent background with border
- Button size: Match the Figma button's
heightagainst codebase definitions:Button:sm(36px),md(46px)IconButton:xs(24px),sm(28px),md(32px),lg(40px),xl(52px)
- Typography: Use the
Textcomponent from@lib/ui/text.- First check if the Figma style name matches a
TextVariant(see Typography Variants below). If it does, usevariant="..."instead of setting individual props. - If no variant matches, map font size to
sizeprop, weight toweightprop, and text color tocolorprop. - If Figma shows a named style that is NOT yet in
textVariantsRecord, create a new variant inlib/ui/text/index.tsxbefore using raw props. This keeps the design system in sync.
- First check if the Figma style name matches a
4. Never assume defaults
- Do NOT assume an icon color matches surrounding text color — check the icon's own color.
- Do NOT assume all gaps between elements are the same — check each pair individually.
- Do NOT assume a component size prop without checking the Figma height in pixels.
- Do NOT pick the "closest" value — use the exact value from the design.
Typography Variants
The Text component supports named variant props that map to Figma's named typography styles. **Always use a variant when the Figma style name matches one in thi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Figma?
Implement UI from Figma designs using MCP tools. Use when a prompt includes a Figma link, or when implementing/updating UI components based on a Figma design.
Как установить скилл Figma?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Figma запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…