DS4FUN · From Figma to code at Pay4Fun
I led Pay4Fun’s design system so designers and engineers could work from the same reference when building and reviewing components.
Interface work kept coming back at handoff
When a component moved from Figma into code, colors, states and behavior could drift from what the team had discussed. Designers had to explain the intent again and front-end engineers had to rebuild parts of the interface. The system had to keep those decisions where both teams could find them while building and reviewing the work.
How an interface decision reaches a button in code
I led the Figma variable architecture so designers and front-end engineers could work with the same color roles. I wrote the button construction guide and worked with front-end engineering on implementation. In Storybook, the team could inspect and try variants, states and combinations of theme and audience.
The captures show two parts of that handoff. Figma shows which values change from one theme to another. Storybook shows the button running in the documentation. Together, they show what the team could refer to when building and reviewing the component.
A color keeps its role when the theme changes
Color shows how Figma and code can drift. If a component asks for a fixed value, someone has to decide what to use when the theme changes. I defined tokens by their purpose. The base surface uses the same reference, which resolves to neutral/200 in light mode and neutral/900 in dark mode.
In dark-mode reviews with front-end engineering, some names still left room for interpretation. I refined those names so the intended use was clear to the people implementing the components.
What the choice requires. Each name needs to be specific enough to guide implementation and broad enough to work across screens.

Documentation records how components should behave
The reference also had to cover states, sizes and behavior. I organized the documentation so front-end engineers could try variants and look at the code before building.
A table shows why that matters. When someone selects a row, available actions and pagination have to work together. I documented the composition so the team could review that behavior as a whole.

What the choice requires. When the library changes, examples and states need to follow the implementation to remain useful.
Fixes need to survive the next sync
Dark mode exposed a case the documentation needed to cover. The export still contained light-theme values for icons and statuses. I recorded why the code used other values so the next sync would preserve the fix while the source in Figma was corrected.
I also defined which states, keyboard behavior, focus and accessibility checks to cover in component review. The frame auditor helped check color, typography and contrast.
The automated comparison covers exported color and shape tokens. Text styles go through design review. In the audit, the menu accent bar’s contrast improved from 2.9:1 to 4.16:1 (deliverable).
Audit a frame against the design system
Interactive demo. A frame with five planted violations. Pick a finding to see where it is, fix it, and watch the score go up.
Fictional design system: 4 px grid · touch ≥ 44 px · text ≥ 4.5:1 · color by token
Compliance score
64/100
100 − 10 × 3 errors − 3 × 2 warnings = 64
Each error costs 10 points; each warning, 3.
By category
- Color1 error
- Typographyok
- Spacing1 warning
- Radiusok
- Componentsok
- Naming1 warning
- Stylesok
- WCAG contrast1 error
- Heuristics1 error
Findings
5 open
- Off-token color: #4F6BED hard-coded as the button background.How to fix: Use the color.action.primary token (#2346D9).
- Text/Help in #979797 on white: contrast of 2.9:1. The AA minimum is 4.5:1.How to fix: Use color.text.secondary (#5B606B), at 6.3:1.
- Button is 36 px tall: touch target below 44 px.How to fix: Swap in the Button/Large instance, at 48 px.
- Two 13 px gaps, off the 4 px grid.How to fix: 12 px between field and help text, 16 px before the button.
- Layer with a generic name: “Rectangle 12”.How to fix: Rename it to Field/Amount.
Fictional design system. The frame's errors are planted on purpose, such as the too-light help text (finding 2), and each “Fix” applies the token that passes the rule. The real tool audits Figma frames and also scores the handoff on 5 pillars: states, rules, scope, accessibility and performance.
The company website put the stylesheet to use
The stylesheet went live on the company website. Distributing the library as a package to other product teams was the next step. That called for a known package version, migration guidance and a review with each product’s own navigation and data.
What changed
Designers and developers reportedly used the components and tokens. The stylesheet went live on the company website, and distributing the package to other products was the next step. The overall time comparison covers two projects whose scope and complexity may have differed.
- −40%
overall time on the first project built with the system, against the last one built without it
Evidence: Reported - 225 tokens
and 45 components in the library shared by design and engineering
Evidence: Reported - 4 designers and 25 devs
use the system's components and tokens
Evidence: Reported - Definition of done
documentation, states and behavior, with automated checks and design review
Evidence: System rule
Sources and limits
The deliverables and criteria above are documented in the system. I report 45 components and 225 tokens used by 4 designers and 25 developers. I also report ~40% less overall time when comparing the last project without the DS with the first one using it, almost 100% less Design QA rework and, as a separate measure, 30% less time from discovery to production: a feature took 10 working days and now takes 7.
Images show design system variables and documentation, with no Pay4Fun product screens. The button playground records an earlier version; the Storybook capture is from 30 October 2026. The cover is an illustrative AI composition and does not replace inspection of the interface.
Without a published baseline, period and comparable complexity, the reported gains do not isolate the DS's effect.
Automated checks have partial coverage and do not replace human review. The contrast improvement concerns the menu accent bar and does not establish compliance for the whole system; the record retains a primary-button contrast exception still to be resolved.
The 2026 roadmap targets are plans, not results. The automation guide describes the specified flow; this case does not measure its operation.
The next stage is to follow a consuming product: record the migration, compare tasks of similar complexity and measure time and rework against a baseline.
How to read the level of evidence
- Evidence: System rule
- A guarantee of the project, checkable in the code or in the documented decision.
- Evidence: Reported
- Stated by me or by stakeholders, with no published data.
Implementation guides and roadmap
How I organized the tokens
I split the palette into two layers. Primitives store raw values and semantic tokens name their purpose. Components use the semantic layer exclusively. I kept theme and audience independent, with the same semantic roles for every combination.
How I standardized component construction
I wrote guides for ten components and the icon library. They cover Auto Layout, tokens, content properties and variants. The input guide includes visible focus, aria-describedby and aria-invalid.
The planned token automation
I documented the flow for front-end: a script reads variables from the Figma API, Style Dictionary generates CSS and JavaScript, and Jenkins publishes changes to the repository. The guide covers repository setup and credentials.
2026 roadmap targets
The plan targeted more than 85% of production components coming from the design system, 95% parity between Figma and code, and all critical components free of WCAG 2.2 errors. To track parity, DesignOps would define the indicators and engineering would extract the data. The plan also called for a council with representatives from the teams.
Updated .
Hiring a Senior Product Designer or DesignOps Lead?
I am available immediately, 100% remote. Let's talk about how I can help your product.


