Figma code connect react
Skill kjuhwa/skills-hub/skills/frontend/figma-code-connect-react
Map Figma component variants to React props using @figma/code-connect with co-located *.figma.tsx filesFrom its SKILL.md
npx -y skills add kjuhwa/skills-hub --skill figma-code-connect-reactAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 225 tokens by cl100k_base, as published. Nobody here has run it
Figma Code Connect for React
Bridge Figma component variants to React code using @figma/code-connect.
When to use
- Team uses Figma for design and React for implementation
- Want Figma Dev Mode to show real component code snippets
- Components have variant props that map to Figma enum properties
Steps
- Install —
@figma/code-connectpackage - Configure —
figma.config.jsonat project root withparser: "react"and include/exclude globs - Create
*.figma.tsx— Co-locate with the component, one file per Figma component node - Map variants — Use
figma.enum(),figma.string(),figma.boolean(),figma.instance()for prop mapping - Multiple connections — Use
variantfilter infigma.connect()for different states (e.g., icon-only vs text button)
Key patterns
See content.md for file structure and mapping examples.
What ships with it: 1 file
2.5 KB alongside SKILL.md
- content.md2.5 KB