Design 6
From design to code with AI: Figma, UI generation and design tokens.
- Build design tokens into separate light and dark CSS files
Build a palette and per-mode semantic token JSON into a :root file and a [data-theme="dark"] file with Style Dictionary, and check that aliases follow the mode.
Node.js 24 · style-dictionary 5.7.0 - Move Design Tokens from JSON into Tailwind v4 @theme
Convert a token JSON file into an @theme block with a script, then see in the build output that a name outside Tailwind namespaces makes no utility class.
Node.js 24 · tailwindcss 4.3.3 · @tailwindcss/cli 4.3.3 - Shrink and Check AI-Generated SVG Files with svgo
Shrink an AI-generated SVG with svgo, compare sizes before and after, then grep for a missing viewBox and for script or event attributes before publishing.
Ubuntu 24.04 · Node.js 24.22.0 · svgo 4.1.0 - Check an AI-Picked Palette for WCAG Contrast Ratio
Port the WCAG relative-luminance formula to a short Python script, test an AI-generated palette against 4.5:1 and 3:1, and re-prompt only the pairs that fail.
Python 3.12 · WCAG 2.2 · Claude Sonnet (claude -p) 2026-10 - Build design tokens JSON into CSS variables
Build color, spacing and font token JSON into :root CSS variables with Style Dictionary, and use its reference errors to vet token files an AI generated.
Node.js 24 · style-dictionary 5.7.0 - Convert Figma designs to code with Claude Code
Connect Figma's official remote MCP server to Claude Code and generate code that reflects design tokens and layout from selected frame links.
Claude Code · Figma remote MCP · 2026-10 docs