AI YOU
Let’s talk
Case 02AI agents · Design → Code · Front-end

Handoff Agent

Paste the Figma link. Get the flow in code — with the design system components, the project’s patterns and accessibility built in.

CompanyGetnet · Santander Group
RoleDesign Engineer — agent concept and architecture
Year2026
StatusIn use by pilot squads
CheckoutFlow.tsx
import { Screen, Header, Card, Button } from "@ds/core";import { PaymentMethods } from "@/features/checkout"; export function CheckoutFlow() {  return (    <Screen>      <Header title="Pagamento" onBack={goBack} />      <Card variant="elevated" padding="space.inset.md">        <Amount value={total} items={3} />      </Card>      <PaymentMethods items={methods} />      <Button variant="primary" size="lg">        Confirm payment      </Button>    </Screen>  );}
DS componentstokens, not hexproject patternsa11y
Problem

Handoff was manual translation: every screen redrawn in code, with components rebuilt and loose values.

Solution

An agent that reads the Figma link and generates the flow in code using the design system’s components and tokens.

My role

Concept, Figma → DS mapping, generation rules and integration with the project’s patterns.

Result

Flows reach the code already up to standard — and the team’s time goes to business rules, not pixels.

01Context

Handoff was where design got lost.

The design system existed on both sides — in Figma and in code. Even so, every delivered screen turned into a translation job: someone looked at the frame, rebuilt the structure, guessed the spacing and, often, rebuilt a component that already existed.

The bigger the flow, the bigger the gap between what was designed and what reached production. The problem wasn’t a lack of DS; it was the lack of a bridge that used the DS end to end.

Every manual translation is a new chance to drift.— the lesson of every design QA
02Problem

Three frictions the team paid for on every delivery.

01

Manual translation

Hours per screen rebuilding in code what was already done in Figma — and in the design system.

02

Silent drift

Loose hex values and pixels slipped into the code unnoticed, until design QA or the next theme.

03

Lost context

States, variants and flow rules stayed in Figma and didn’t make it to the code in one piece.

03Goals

What the agent had to respect.

  • ✓From link to flow — one Figma link becomes the full flow, not a lone screen.
  • ✓DS first — components and tokens from the catalog, never made-up CSS.
  • ✓Project patterns — the team’s folder structure, names and conventions.
  • ✓Human in the loop — out comes a reviewable PR, not magic code.
04How it works

Four steps between the frame and the pull request.

The agent doesn’t "draw code". It reads the file’s structure, matches each node with what already exists in the design system and only then generates code — following the patterns the team already uses.

01

Read

Frames, instances and variables from the Figma link.

02

Map

Each node is matched with a component or token from the catalog.

03

Generate

Code in the project’s structure, names and conventions.

04

Verify

Token lint and accessibility checklist before the PR.

05From node to component

The heart of the agent is the mapping.

Pick a Figma node and see what the agent does with it. Note the last case: when there’s no equivalent component, it flags it instead of making one up.

Figma nodes

Illustrative examples — the real catalog of components and tokens is the team’s design system.

06Before × after

The same snippet, with and without the agent.

Manual handoffloose values

<div style={{ padding: 16, background: "#FFF" }}>  <p style={{ fontSize: 15, color: "#333" }}>Total</p>  <button style={{ background: "#E10A1E", borderRadius: 12 }}>    Confirmar  </button></div>

With the agentdesign system

<Card padding="space.inset.md">  <Text variant="body-sm" tone="muted">Total</Text>  <Button variant="primary">    Confirmar  </Button></Card>

The difference doesn’t show on today’s screen. It shows in the next theme, the next accessibility audit and the next rebrand — when tokenized code changes on its own and hex-filled code has to be hunted down.

07Decisions

What we decided — and what we left out.

✓We decided

  • Open a PR, don’t commit directly: the agent proposes, the team reviews and approves.
  • The DS catalog as the source of truth: the agent only uses what exists.
  • Fail loudly: with no equivalent component, it flags instead of improvising.

✕We dropped

  • Generating CSS from the layout: pixel-perfect today, tech debt tomorrow.
  • One giant prompt with no context: the agent needs to know the project.
  • Converting everything at once: large flows go in reviewable steps.
The agent doesn’t replace the dev. It removes the part nobody wanted to do.
08Results

Less translation, more product.

1

Figma link becomes the full flow in code

−60%

in handoff time per screen

0

hardcoded hex values in generated flows

90%

of nodes mapped straight to DS components

The most important effect was cultural: designers started caring more about file structure, because a well-organized file turns into better code — and the design system truly became the common language between design and engineering.

09Agent × team

Who does what in this flow.

The agent does

  • Reads frames, components and variables from the file
  • Maps each node to the design system catalog
  • Generates the code and runs token and accessibility checks

The team decides

  • PR review and approval
  • Cases with no equivalent component in the DS
  • Business rules, integrations and complex states
10Next steps

From generated flow to guaranteed flow.

  1. Quality gate — the agent only generates when the frame passes the DS Maturity Audit.
  2. Tests alongside the code — interface scenarios generated from the Figma states.
  3. Multi-screen flows — navigation and complete states in a single PR.
Fact sheetInspect
Company
Getnet · Santander Group
Year
2026
Role
Design Engineer — concept, mapping and architecture
Team
Me + front-end engineering + DS
Stack
Figma API · LLM · TypeScript · React
Status
In use by pilot squads
Next case · 03 Content Agent

An agent that sets the tone for all content.

See all cases