figma-swiftui

von figma

SwiftUI ↔ Figma-Übersetzung. Verwende, wenn der Benutzer Swift, SwiftUI, iOS, iPhone oder iPad erwähnt – in BEIDE Richtungen – und ein Figma-Design in… übersetzt.

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

Mehr Skills von figma

video-interaction-mapper
figma
Diese Fähigkeit sollte verwendet werden, wenn der Benutzer darum bittet, eine UI-Bildschirmaufnahme zu analysieren und Interaktionszustände in Figma zu kartieren. Auslöser für Anfragen wie "Video einfügen…
figma-code-connect
figma
Erstellt und pflegt Figma Code Connect-Vorlagendateien, die Figma-Komponenten Code-Snippets zuordnen. Verwenden Sie dies, wenn der Benutzer Code Connect, Figma-Komponente… erwähnt.
create-design-system-rules
figma
Benutzerdefinierte Design-System-Regeln für eine konsistente Figma-zu-Code-Implementierung in Ihrem Projekt. Generiert projektspezifische Konventionen für Komponentenorganisation, Styling, Design-Tokens und Asset-Handling, die KI-Agenten zu konsistentem Code führen. Unterstützt drei Regeldateiformate: CLAUDE.md für Claude Code, AGENTS.md für Codex CLI und .cursor/rules/figma-design-system.mdc für Cursor. Erfordert Figma-MCP-Serververbindung und Codebase-Analyse, um bestehende Muster vor der Regel... zu entdecken.
figma-implement-motion
figma
Übersetzt Figma-Bewegungen und Animationen in produktionsreifen Anwendungscode. Verwenden Sie dies bei der Implementierung von Animationen/Bewegungen aus einem Figma-Design – der Benutzer erwähnt…
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…
figma-use-slides
figma
Diese Fähigkeit hilft Agenten, das Figma-use_figma-MCP-Tool im Slides-Kontext zu verwenden. Kann zusammen mit figma-use verwendet werden, das grundlegendes Wissen zur Nutzung des…
figma-use-figjam
figma
Diese Fähigkeit hilft Agenten, das use_figma MCP-Tool von Figma im FigJam-Kontext zu verwenden. Kann zusammen mit figma-use verwendet werden, das grundlegendes Wissen zur Nutzung des…
code-connect-components
figma
Stellt bidirektionale Verknüpfungen zwischen Figma-Designkomponenten und Code-Implementierungen mithilfe von Code Connect her. Erfordert eine Figma-MCP-Serververbindung und veröffentlichte Komponenten in Organisation- oder Enterprise-Plänen. Identifiziert automatisch nicht zugeordnete Komponenten in Figma-Auswahlen und durchsucht dann Ihre Codebasis nach passenden Codekomponenten anhand von Name, Struktur und Props. Präsentiert gefundene Komponenten zur Überprüfung, bevor Zuordnungen erstellt werden, und ermöglicht selektive Annahme oder Ablehnung. Unterstützt mehrere...