Implement Figma designs in code with accurate layout, spacing, typography, and tokens. Use when implementing designs from Figma, translating mockups to React/CSS, or when the user mentions Figma, design specs, or Dev Mode.
Install with Tessl CLI
npx tessl i github:jamesmoss/frontend-skills --skill figma-to-codeOverall
score
90%
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Apply this skill when turning Figma mockups or specs into production UI: extracting layout, spacing, typography, colors, and components while keeping design–code alignment and accessibility.
flex with flex-direction: column and consistent gap (or space-y-* / margin-top on children).flex with flex-direction: row and gap (or space-x-*).flex: 1 (or flex-grow: 1) so the element fills remaining space.w-[72px] or width: token('sizes.18')).max-w-7xl mx-auto for centered, constrained width).p-4, 24px → p-6). Prefer theme spacing when available.gap-2, 16px → gap-4).mt-6, mb-8).w-6 h-6).text-xs, 14px → text-sm, 16px → text-base, 18px → text-lg, 24px → text-2xl). Prefer semantic names (e.g. “body”, “heading”) when the design system has them.leading-tight, leading-normal, leading-relaxed or exact values if specified).tracking-tight, tracking-wide or a custom value).primary, gray.700) when they exist.rounded, 8px → rounded-lg, 9999 → rounded-full). Prefer theme radii when defined.shadow-sm, shadow-md) or match blur/offset/color if no token.If the project uses a token pipeline (Figma → JSON → code):
Design: Card with 24px padding, 16px gap, title 18px semibold, body 14px gray, 8px radius, light border.
<div className="rounded-lg border border-gray-200 bg-white p-6 shadow-sm">
<div className="flex flex-col gap-4">
<h2 className="text-lg font-semibold text-gray-900">Card title</h2>
<p className="text-sm text-gray-600">Card description from Figma.</p>
</div>
</div>If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.