# What is Design-to-Code? > Design-to-code is the process of turning Figma decisions into working front-end code. Transferring tokens outlasts generating markup from a canvas. - Source: https://flashdsm.com/glossary/design-to-code - Site: Flash DS (https://flashdsm.com) - Updated: 2026-08-06 --- ## Definition Design-to-code describes the process of turning design decisions made in a tool such as Figma into working front-end code. The durable version transfers design tokens rather than generating markup from a canvas, because tokens stay valid as the interface changes while generated markup does not. Also written as: Design handoff, Figma to code ## Two approaches that get confused **Generating code from a canvas.** Point a tool at a Figma frame and get JSX or HTML back. This demos extremely well and disappoints in production: the output has no relationship to your component library, the nesting reflects how the designer grouped layers, and the second the design changes you regenerate and lose any edits. **Transferring the decisions.** Move the tokens instead - colour, spacing, type, radius - and let engineers build components that reference them. Less impressive in a demo. It is the one that survives, because the tokens stay valid when the layout changes, and because the code stays code that a person wrote and can maintain. Almost every team that tries the first approach ends up at the second. ## Why handoff keeps failing The failure is not the moment of handoff. It is everything after. A designer updates a colour in Figma. That change has to reach a stylesheet. There is no automatic path, so it reaches it through a message in a channel, which someone reads, or does not. Multiply by every change over a year. Both sides are working correctly. The connection between them is a person remembering. ## The Figma API constraint Worth knowing before evaluating any tool in this space: Figma's REST API endpoint for reading variables is available only on Enterprise plans. This means a tool that syncs Figma variables over the REST API works in a demo on an Enterprise account and does nothing on the Professional plan most teams have. Plugins are not subject to this, because they read variables from inside the file through the plugin API. If you are comparing sync tools, ask which one each uses. ## What a working loop looks like 1. Design decisions live as tokens, in one place both sides reference. 2. A change on the design side arrives as a **diff**, not an overwrite. 3. A person with edit rights reviews and applies it. 4. A pull request opens against the repository, going through normal code review. 5. AI coding agents read the same tokens live, so generated code lands inside the system rather than beside it. The review step in the middle is not friction to be optimized away. A tool that silently rewrites a team's tokens costs more trust than the automation returns. ## Where this fits with Flash DS Flash DS uses a Figma plugin as its transport, so it works on any Figma plan. A publish becomes a reviewable token diff, and an approved diff can open as a pull request. ## Related terms - https://flashdsm.com/glossary/design-token - https://flashdsm.com/glossary/token-drift - https://flashdsm.com/glossary/mcp-design-tokens