Command Palette

Search for a command to run...

Назад к скиллам
скилл № 69761

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от 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.ts and implemented in lib/ui/theme/darkTheme.ts.
    • In styled-components: use getColor('tokenName') from @lib/ui/theme/getters.
    • As component props: use ThemeColor type (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
  • 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, and margin pixel 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-height values. Cross-reference with codebase component size props (e.g., Button size="md" = 46px height).
  • Typography: Read ALL of: font size, weight, line-height, letter-spacing, and color. Map each to Text component props. Do NOT skip weight — 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: uses buttonPrimary
    • secondary: uses buttonSecondary
    • outlined: uses transparent background with border
  • Button size: Match the Figma button's height against codebase definitions:
    • Button: sm (36px), md (46px)
    • IconButton: xs (24px), sm (28px), md (32px), lg (40px), xl (52px)
  • Typography: Use the Text component from @lib/ui/text.
    • First check if the Figma style name matches a TextVariant (see Typography Variants below). If it does, use variant="..." instead of setting individual props.
    • If no variant matches, map font size to size prop, weight to weight prop, and text color to color prop.
    • If Figma shows a named style that is NOT yet in textVariantsRecord, create a new variant in lib/ui/text/index.tsx before using raw props. This keeps the design system in sync.

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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить Figma с