Loading...
Loading...
Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a Figma design turned into code — e.g. 'code this design', 'implement this frame', 'build this screen/component', 'turn this Figma into React/Vue', 'convert this design to code' — or whenever a Figma URL or the current Figma selection appears alongside a coding request. Works for full screens, single sections, or one component.
npx skill4agent add awdr74100/figwright figma-codegenreferences/get_design_contextfulldedupeComponents: truePrimary/500spacing/4globalVarsmainComponentcomponentPropertiesdedupeComponents: truereferences/grounding.mdcomponent_mapstatuscandidate.filePathmatchedPropshighmediumcandidate.filePathcomponent_mapcandidate.ambiguousWith{ name, filePath }token_mapambiguousWithcandidateinstances[].propscandidate.unmatchedPropsrequiredunmappedinstanceCount > 1dedupedtruncatedget_design_contextinstances[0].nodeIdget_component_apitoken_mapstatusrefmatchedBysource: 'style'candidate.refbg-primary-500var(--color-primary-500)get_design_contextmatchedBy: ['name']candidate.ambiguousWithget_design_contextprojectTokens{ "#6266F0": { ref, name, matchedBy: ["value"] } }refmatchedBy: ["value"]candidatesframework-builtinspacing/4line-height/7weight/Boldbuiltin: { scale, step }p-4gap-4leading-7font-boldp-[16px]unmappedfigmaModes{ Light: …, Dark: … }themedCollectionsfigmaValuecandidate.ref.dark[data-theme]prefers-color-schemedark:dark:prefers-color-schemeColor/Light/*Color/Dark/*save_image_fillsIMAGEicon_map.svgget_screenshotreferences/assets-and-icons.mdcomponent_maptoken_mapanalyze_projectdesign_diffnodeIdget_design_context.figwright/snapshots/design_diffnodeIdaddedremovedchangedpathCard / Header / Titleget_design_contextdesign_diffupdate: truenodeIdno-changesdocs/figma-component-map.md| FigmaName | code/path |FigmaName -> pathcomponent_mapsource: 'map-file'docs/figma-token-map.md| FigmaName | ref |token_mapmatchedBy: ['map-file']refbg-primary-500var(--color-primary-500)lowmediumunmappedambiguousWithmatchedBy: ['value']unmappedhighcomponent_maptoken_mapstaleOverridesw-fullreferences/responsive.mdreferences/verify.mdget_design_contextmotion@keyframestransition<transition>get_node_motionreferences/motion.mdget_design_contextnodeIdhighmediumcomponent_maprefunmappedstrokeAlignscaleModereferences/grounding.mdreferences/verify.md