figma-swiftui

por figma

Traducción de SwiftUI ↔ Figma. Úsalo siempre que el usuario mencione Swift, SwiftUI, iOS, iPhone o iPad — en CUALQUIER dirección — traduciendo un diseño de Figma a…

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

Más skills de figma

video-interaction-mapper
figma
Esta habilidad debe usarse cuando el usuario solicite analizar una grabación de pantalla de UI y mapear los estados de interacción en Figma. Activar para solicitudes como "poner video…
figma-code-connect
figma
Crea y mantiene archivos de plantilla de Figma Code Connect que asignan componentes de Figma a fragmentos de código. Úsalo cuando el usuario mencione Code Connect, componente de Figma…
create-design-system-rules
figma
Reglas personalizadas del sistema de diseño para una implementación consistente de Figma a código en tu proyecto. Genera convenciones específicas del proyecto para la organización de componentes, estilos, tokens de diseño y manejo de assets que guían a los agentes de IA para producir código consistente. Soporta tres formatos de archivos de reglas: CLAUDE.md para Claude Code, AGENTS.md para Codex CLI y .cursor/rules/figma-design-system.mdc para Cursor. Requiere conexión con el servidor MCP de Figma y análisis del código base para descubrir patrones existentes antes de las reglas...
figma-implement-motion
figma
Traduce los movimientos y animaciones de Figma a código de aplicación listo para producción. Úsalo al implementar animaciones o movimientos desde un diseño de Figma — el usuario menciona…
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
Esta habilidad ayuda a los agentes a usar la herramienta MCP use_figma de Figma en el contexto de Slides. Puede usarse junto con figma-use, que tiene contexto fundamental para usar el…
figma-use-figjam
figma
Esta habilidad ayuda a los agentes a usar la herramienta MCP use_figma de Figma en el contexto de FigJam. Puede usarse junto con figma-use, que tiene el contexto fundamental para usar el…
code-connect-components
figma
Establece vínculos bidireccionales entre componentes de diseño de Figma e implementaciones de código usando Code Connect. Requiere conexión con el servidor MCP de Figma y componentes publicados en planes de Organización o Enterprise. Identifica automáticamente componentes no mapeados en selecciones de Figma, luego escanea tu base de código en busca de componentes de código coincidentes por nombre, estructura y props. Presenta los componentes coincidentes para tu revisión antes de crear los mapeos, permitiendo aceptación o rechazo selectivo. Soporta múltiples...