figma-to-code/SKILL.md
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.
npx skillsauth add jamesmoss/frontend-skills figma-to-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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>
tools
Apply Tailwind CSS utility-first styling, responsive design, and theming. Use when styling with Tailwind, building UI with utility classes, configuring tailwind.config, or when the user mentions Tailwind.
development
Build UIs with Chakra UI components, layout primitives, and theming. Use when using Chakra UI, ChakraProvider, Box, Flex, Stack, or when the user mentions Chakra.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.