figma-swiftui

작성자: figma

SwiftUI ↔ Figma 변환. 사용자가 Swift, SwiftUI, iOS, iPhone 또는 iPad를 언급할 때마다 사용하세요 — 어느 방향이든 — Figma 디자인을 변환하여…

npx skills add https://github.com/figma/mcp-server-guide --skill figma-swiftui

Figma ↔ SwiftUI

Translation between Figma designs and SwiftUI code, both directions. This file is a router — actual guidance lives in the references below.

Pick the direction

DirectionTriggerReference
Design → codeUser wants SwiftUI in their iOS project from a Figma file/framereferences/design-to-code.md
Code → designUser wants to push SwiftUI views / screens / tokens into a Figma filereferences/code-to-design.md

If the request is ambiguous — a Figma URL and .swift files both present, no verb makes it clear — ask the user which direction before loading a reference.

Shared context (applies to both directions)

These points hold regardless of direction; the direction-specific references assume them.

  1. get_design_context is the read tool for Figma. Pass clientLanguages: "swift" and clientFrameworks: "swiftui" so the response is framed as Swift. URL → tool args: figma.com/design/:fileKey/:fileName?node-id=:nodeId → use fileKey, replace - with : in nodeId. For figma.com/design/:fileKey/branch/:branchKey/:fileName, use branchKey as fileKey.
  2. The React+Tailwind in get_design_context output is a structural reference, not a literal source. It approximates the visual. Never transliterate position: absolute / pixel frames / mix-blend-mode stacks into SwiftUI or into Figma — the screenshot is the source of truth in both directions.
  3. iOS HIG semantic colors are tokens, not hex. var(--backgrounds/primary, …), var(--labels/secondary, …), var(--separators/non-opaque, …) etc. map to Color(.systemBackground), Color.secondary, Color(.separator) in SwiftUI, and to variables in a semantic collection in Figma. Keep the mapping; drop the literal RGBA.
  4. SF Symbols round-trip by name in both directions — never by codepoint. Design → code: get_design_context substitutes Figma's SF Symbol glyph runs back into <SFSymbol>{Image(systemName: "...")}</SFSymbol> wrappers in the response. Use those names verbatim. Code → design: call figma.util.getSfSymbolCharacter(name) inside use_figma to convert a symbol name to the matching character — never look up codepoints by hand.
  5. Recognize the underlying iOS pattern, not the literal node / view name. The same patterns recur in both directions: large title + back chevron + trailing action = NavigationStack chrome; bottom row of icon+label pairs = TabView; repeating same-height rows with leading/trailing chrome = List. Match those system patterns rather than rebuilding them from primitives.
  6. For code → design, use_figma is the API. Always load figma-use before any use_figma call. If the task involves building a full screen, also load figma-generate-design; if it involves building components or a design system, also load figma-generate-library.

References

DocWhen to load
references/design-to-code.mdTranslating a Figma design / frame into SwiftUI
references/code-to-design.mdPushing SwiftUI views / screens / tokens into Figma

figma의 다른 스킬

video-interaction-mapper
figma
이 스킬은 사용자가 UI 화면 녹화를 분석하고 상호작용 상태를 Figma에 매핑해 달라고 요청할 때 사용해야 합니다. "비디오를 넣어줘..."와 같은 요청에 의해 트리거됩니다.
official
create-design-system-rules
figma
Custom design system rules for consistent Figma-to-code implementation across your project. Generates project-specific conventions for component organization, styling, design tokens, and asset handling that guide AI agents to produce consistent code Supports three rule file formats: CLAUDE.md for Claude Code, AGENTS.md for Codex CLI, and .cursor/rules/figma-design-system.mdc for Cursor Requires Figma MCP server connection and codebase analysis to discover existing patterns before rule...
official
figma-code-connect
figma
Figma 컴포넌트를 코드 스니펫에 매핑하는 Figma Code Connect 템플릿 파일을 생성하고 유지 관리합니다. 사용자가 Code Connect, Figma 컴포넌트를 언급할 때 사용합니다.
official
figma-implement-motion
figma
Figma의 모션과 애니메이션을 프로덕션에 바로 적용 가능한 애플리케이션 코드로 변환합니다. Figma 디자인에서 애니메이션/모션을 구현할 때 사용하세요 — 사용자가 언급하는 경우…
official
figma-use-motion
figma
Motion / animation context for the `use_figma` MCP tool — animating Figma nodes via manual keyframes, animation styles, easing, and timeline duration. Load…
official
figma-use-slides
figma
이 스킬은 에이전트가 Slides 컨텍스트에서 Figma의 use_figma MCP 도구를 사용할 수 있도록 도와줍니다. Figma 사용에 대한 기본 컨텍스트를 제공하는 figma-use와 함께 사용할 수 있습니다.
official
video-interaction-mapper
figma
이 스킬은 사용자가 UI 화면 녹화를 분석하고 인터랙션 상태를 Figma에 매핑해 달라고 요청할 때 사용해야 합니다. "비디오를 넣어…"와 같은 요청에서 트리거됩니다.
official
figma-use-figjam
figma
이 스킬은 에이전트가 FigJam 컨텍스트에서 Figma의 use_figma MCP 도구를 사용할 수 있도록 도와줍니다. 사용에 대한 기본 컨텍스트를 제공하는 figma-use와 함께 사용할 수 있습니다…
official