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 की और Skills

video-interaction-mapper
figma
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता किसी UI स्क्रीन रिकॉर्डिंग का विश्लेषण करने और इंटरैक्शन स्थितियों को Figma में मैप करने के लिए कहे। "वीडियो डालें..." जैसे अनुरोधों के लिए ट्रिगर करें।
figma-code-connect
figma
Figma Code Connect टेम्पलेट फ़ाइलें बनाता और बनाए रखता है जो Figma घटकों को कोड स्निपेट से मैप करती हैं। उपयोग तब करें जब उपयोगकर्ता Code Connect, Figma घटक का उल्लेख करता है…
create-design-system-rules
figma
आपके प्रोजेक्ट में consistent Figma-to-code implementation के लिए custom design system rules। Component organization, styling, design tokens, और asset handling के लिए project-specific conventions उत्पन्न करता है जो AI agents को consistent code बनाने में मार्गदर्शन करते हैं। तीन rule file formats का समर्थन करता है: Claude Code के लिए CLAUDE.md, Codex CLI के लिए AGENTS.md, और Cursor के लिए .cursor/rules/figma-design-system.mdc। Rule बनाने से पहले existing patterns खोजने के लिए Figma MCP server connection और codebase analysis की आवश्यकता होती है...
figma-implement-motion
figma
Figma मोशन और एनिमेशन को प्रोडक्शन-रेडी एप्लिकेशन कोड में अनुवाद करता है। Figma डिज़ाइन से एनिमेशन/मोशन लागू करते समय उपयोग करें — उपयोगकर्ता उल्लेख करता है…
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
यह कौशल एजेंटों को स्लाइड्स संदर्भ में Figma के use_figma MCP टूल का उपयोग करने में मदद करता है। इसे figma-use के साथ उपयोग किया जा सकता है, जिसमें इसके उपयोग के लिए मूलभूत संदर्भ है…
figma-use-figjam
figma
यह कौशल एजेंटों को FigJam संदर्भ में Figma के use_figma MCP टूल का उपयोग करने में मदद करता है। इसे figma-use के साथ उपयोग किया जा सकता है, जिसमें इसके उपयोग के लिए मूलभूत संदर्भ है…
code-connect-components
figma
Figma डिज़ाइन घटकों और कोड कार्यान्वयन के बीच Code Connect का उपयोग करके द्विदिश लिंक स्थापित करें। Figma MCP सर्वर कनेक्शन और Organization या Enterprise योजनाओं पर प्रकाशित घटकों की आवश्यकता है। Figma चयनों में स्वचालित रूप से अमैप्ड घटकों की पहचान करता है, फिर नाम, संरचना और प्रॉप्स द्वारा मिलान कोड घटकों के लिए आपके कोडबेस को स्कैन करता है। मैपिंग बनाने से पहले समीक्षा के लिए मिलान किए गए घटकों को आपके सामने प्रस्तुत करता है, जिससे चयनात्मक स्वीकृति या अस्वीकृति की अनुमति मिलती है। कई का समर्थन करता है...