figma
Bidirectional Figma skill — read designs and write back to Figma. READ: extract tokens, map Vue/Reka UI components, translate Auto Layout to Tailwind. WRITE…
от skillmds★ 42 звезды на GitHub
Установить figma в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Skill: Figma ↔ Vue 3 + shadcn-vue
Reading flow via MCP (Figma → Code)
1. mcp:figma → get_design_context(nodeId or URL) ← always first
2. mcp:figma → get_variable_defs(nodeId) ← formal tokens
3. mcp:figma → search_design_system(query) ← DS components
4. mcp:figma → get_screenshot(nodeId) ← visual reference
Figma → Tailwind Translation
Auto Layout → Flexbox/Grid Vue
| Figma Auto Layout | Tailwind | Vue template |
|---|---|---|
| Horizontal, gap 16 | flex gap-4 |
<div class="flex gap-4"> |
| Vertical, gap 24 | flex flex-col gap-6 |
<div class="flex flex-col gap-6"> |
| Space between | flex justify-between |
|
| Fill container (width) | flex-1 or w-full |
|
| Fixed width 320px | w-80 or w-[320px] |
|
| Wrap | flex flex-wrap |
|
| Align center | items-center |
|
| Grid 3 cols, gap 16 | grid grid-cols-3 gap-4 |
Colors → shadcn-vue CSS Variables
| Figma Semantic | shadcn CSS Variable | Tailwind |
|---|---|---|
| Primary | --primary |
bg-primary text-primary-foreground |
| Background | --background |
bg-background |
| Foreground | --foreground |
text-foreground |
| Muted | --muted-foreground |
text-muted-foreground |
| Destructive | --destructive |
text-destructive border-destructive |
| Border | --border |
border-border |
| Card | --card |
bg-card |
Figma Typography → Tailwind
| Figma | Tailwind |
|---|---|
| 12px Regular | text-xs |
| 14px Regular | text-sm |
| 14px Medium 500 | text-sm font-medium |
| 14px Semibold 600 | text-sm font-semibold |
| 16px Regular | text-base |
| 18px Semibold | text-lg font-semibold |
| 20px Bold | text-xl font-bold |
| 24px Bold | text-2xl font-bold |
| 30px Bold | text-3xl font-bold |
Figma line-height (absolute) → Tailwind (relative):
- 16px line-height with 14px font →
leading-none(1) - 20px / 14px →
leading-tight(1.25) - 20px / 16px →
leading-5(1.25) - 24px / 16px →
leading-6(1.5) ← default body
Spacing → Tailwind Scale (base 4px)
| Figma px | Tailwind | rem |
|---|---|---|
| 2 | gap-0.5 p-0.5 |
0.125 |
| 4 | gap-1 p-1 |
0.25 |
| 8 | gap-2 p-2 |
0.5 |
| 12 | gap-3 p-3 |
0.75 |
| 16 | gap-4 p-4 |
1 |
| 20 | gap-5 p-5 |
1.25 |
| 24 | gap-6 p-6 |
1.5 |
| 32 | gap-8 p-8 |
2 |
| 40 | gap-10 p-10 |
2.5 |
| 48 | gap-12 p-12 |
3 |
Border radius → Tailwind
| Figma | Tailwind |
|---|---|
| 4px | rounded |
| 6px | rounded-md |
| 8px | rounded-lg |
| 12px | rounded-xl |
| 16px | rounded-2xl |
| 50% / circle | rounded-full |
Shadows → Tailwind
| Figma | Tailwind |
|---|---|
0 1px 2px rgba(0,0,0,0.05) |
shadow-sm |
0 1px 3px rgba(0,0,0,0.1) |
shadow |
0 4px 6px rgba(0,0,0,0.07) |
shadow-md |
0 10px 15px rgba(0,0,0,0.1) |
shadow-lg |
0 25px 50px rgba(0,0,0,0.25) |
shadow-2xl |
Figma → shadcn-vue Vue Component Mapping
| Visual pattern in Figma | shadcn-vue component |
|---|---|
| Surface / Card with padding | <Card> + sub-parts |
| Primary button | <Button> |
| Destructive button | <Button variant="destructive"> |
| Ghost button | <Button variant="ghost"> |
| Text input | <Input> |
| Text area | <Textarea> |
| Dropdown / Select | <Select> + sub-parts |
| Select with search | Combobox (Command + Popover) |
| Modal / Overlay | <Dialog> |
| Bottom sheet | <Sheet> |
| Temporary notification | toast() from vue-sonner |
| Badge / Chip | <Badge> |
| Context menu | <DropdownMenu> |
| Tooltip | <Tooltip> |
| Tabs | <Tabs> + sub-parts |
| Accordion | <Accordion> + sub-parts |
| Checkbox | <Checkbox> |
| Toggle on/off | <Switch> |
| Loading placeholder | <Skeleton> |
| Empty state | <Empty> + sub-parts |
| Data table | <DataTable> |
| Breadcrumb | <Breadcrumb> + sub-parts |
| Form field | <Field> or <FormField> |
| Button group | <ButtonGroup> |
| Input with icon | <InputGroup> |
| Spinner | <Spinner> |
| Stepper | <Stepper> + sub-parts |
Components without shadcn-vue equivalent → Reka UI primitive
<!-- Custom component with Reka UI -->
<script setup lang="ts">
import { ComboboxRoot, ComboboxInput, ComboboxContent, ComboboxItem } from 'reka-ui'
</script>
<template>
<ComboboxRoot>
<ComboboxInput class="..." />
<ComboboxContent class="...">
<ComboboxItem v-for="item in items" :key="item.id" :value="item">
{{ item.label }}
</ComboboxItem>
</ComboboxContent>
</ComboboxRoot>
</template>
Expected output: figma-spec.md
# Figma Spec — [Frame Name]
## Extracted tokens
### Colors
| Token | Hex | Tailwind equiv. | CSS var |
|---|---|---|---|
| Brand blue | #2563EB | `bg-blue-600` | `--primary` |
### Typography
| Usage | Size | Weight | Tailwind |
|---|---|---|---|
| Heading | 24px | 700 | `text-2xl font-bold` |
### Dominant spacing
| Usage | Value | Tailwind |
|---|---|---|
| Gap between cards | 24px | `gap-6` |
## Mapped components
#
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл figma?
Bidirectional Figma skill — read designs and write back to Figma. READ: extract tokens, map Vue/Reka UI components, translate Auto Layout to Tailwind. WRITE: push components, screens, and design tokens from code to Figma. Requires /figma:figma-use skill before every use_figma call.
Как установить скилл figma?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл figma запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…