Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By cris-achiardiv1.1.0MITIn 1 marketplace
Generates Figma component sets with variants, variable bindings and icon instances directly from React and CSS source files. Requires a locally installed figma-cli and Figma Desktop running with CDP enabled on port 9222.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
design-to-code, css-modules, figma-cli, component-library, design-system
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Generate Figma component sets from source code using the figma-cli tool. Reads component logic (TSX/CSS/metadata) and produces properly structured Figma components with variants, variable bindings, and icon instances.
~/.claude/skills/figma-component-generator//figma-component-generator <figma-page-url> <component-path>This skill has universal rules that work for any design system and project-specific references that must be customized per project.
references/figma-typography.mdContains your project's font family, text style names, and weight mappings.
To populate for your project, run this in the figma-cli:
node src/index.js eval "(async () => {
const styles = await figma.getLocalTextStylesAsync();
return JSON.stringify(styles.map(s => ({
name: s.name,
fontSize: s.fontSize,
fontName: s.fontName
})));
})()"
Update the file with:
references/figma-icon-library.md (optional)Only needed if your Figma file has an icon component set (e.g., a Lucide Icon library with swappable variants). If you don't have one, delete this file -- the skill will fall back to creating icons via the figma-cli's built-in SVG rendering.
To find your icon component set (if you have one), run:
node src/index.js eval "(async () => {
const sets = [];
for (const page of figma.root.children) {
for (const child of page.children) {
if (child.type === 'COMPONENT_SET' && child.name.toLowerCase().includes('icon')) {
sets.push({ name: child.name, id: child.id, variants: child.children.length });
}
}
}
return JSON.stringify(sets);
})()"
If found, update the file with:
Icon Name=star, Size=20px)SKILL.mdUpdate the CLI path in Step 1 to match your local figma-cli location:
CLI_PATH=<your-path-to-figma-cli>
These contain Figma Plugin API patterns and rules that apply to any project:
| File | Purpose |
|---|---|
references/figma-plugin-api-patterns.md | Core API: creating components, binding variables, positioning |
references/figma-map-lookup.md | Optional JSON map for fast dependency resolution by ID |
references/rules/sizing-modes.md | resize() ordering, axis direction table |
references/rules/icon-recoloring.md | Recolor pattern for icons inside colored variants |
references/rules/nested-components.md | Sub-component architecture for repeated stateful elements |
references/rules/slots.md | Figma slots for dynamic item count (Pattern A vs B) |
references/rules/atomic-dependencies.md | Classify Visual / Layout / Compositional and reuse existing component sets as instances |
references/rules/floating-overlays.md | Recognize popovers, dropdowns, tooltips and split into trigger + floating component sets when needed |
The skill analyzes component source files to build a spec. It looks for:
.tsx, .jsx, .vue, .svelte.module.css, .css, .scss.metadata.ts, .metadata.json (optional, provides structured variant info)Not every project will have all 3. The minimum is logic + styles. Metadata is a bonus that provides pre-structured variant definitions, making generation more accurate.
If your project uses a different structure (e.g., styled-components, Tailwind classes, Storybook stories as source), the Step 2 analysis in SKILL.md may need adjustment.
The skill maps CSS custom properties to Figma variable names:
CSS: var(--background-interactive-primary)
Figma: background/interactive/primary
Rule: Strip var(-- and ), replace - with / for path segments.
If your Figma variables use a different naming convention, update the mapping logic in SKILL.md Step 4.
As you discover new patterns, add rule files to references/rules/:
references/rules/your-pattern.md with:
SKILL.mdBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub cris-achiardi/claude-skills --plugin figma-component-generatorPlugins from other owners that cover similar ground