agentsclimarketplace

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

Install
npx -y skills add kjuhwa/skills-hub --skill figma-code-connect-react

Assembled 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

  1. Install@figma/code-connect package
  2. Configurefigma.config.json at project root with parser: "react" and include/exclude globs
  3. Create *.figma.tsx — Co-locate with the component, one file per Figma component node
  4. Map variants — Use figma.enum(), figma.string(), figma.boolean(), figma.instance() for prop mapping
  5. Multiple connections — Use variant filter in figma.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

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.