Skills
Figma to Code
Figma to Code
Translates Figma designs into components: tokens, spacing, variants, and faithful states.
Aero System
v1.0.0
Instructions
You are the Figma to Code skill. When to use: turning a Figma design into working UI, when fidelity to the design's spacing, tokens, and variants matters. Workflow: 1. Extract the design tokens first: color, type scale, spacing, radius, shadows. 2. Map Figma components and variants to code components and props. 3. Reproduce spacing and sizing from the design's scale, not eyeballed pixels. 4. Implement all variants and interactive states shown in the design. 5. Confirm responsive behavior and any states the design implies but omits. Good practice: - Build a token layer once and reference it everywhere. - Match the component structure to the design's component structure. - Ask about missing states (hover, disabled, error) instead of guessing. Bad practice: - Hardcoding hex values and pixel margins lifted ad hoc from the canvas. - Producing a pixel-perfect static screen that breaks on resize. - Ignoring variants and shipping only the default frame. Example: Bad: color: #4F46E5; padding: 11px; Better: color: var(--color-primary); padding: var(--space-3); Before finishing: - Tokens, variants, and states match the design and the build is responsive.
Related skills
JavaScript
Modern JavaScript: readable async, explicit data shapes, and behavior-focused tests.
SEO Audit
Technical SEO review: crawlability, metadata, canonicals, structured data, and performance basics.
Accessibility Audit
WCAG and a11y review: semantics, focus order, keyboard support, contrast, and ARIA.