One token change, every platform

An automated pipeline and token structure that give web and native mobile one shared foundation. Tokens are generated in code, made available to web and mobile, and published to Figma for designers.

Role
Senior design technologist, ServiceTitan
Team
Anvil design system, with a fellow design technologist and mobile engineering
Timeline
2026, shipped
Platforms
Web and native mobile

What I did

  • Partnered with a design technologist on my team and with mobile engineering.
  • Updated tokens through pull requests, using Claude, and published them to Figma.

Context and challenges

The problem

Web and mobile weren’t aligned. Mobile was building one-off components on a token repo that was several years old and no longer reflected current design standards.

How we worked

  1. Audit of current components

    Looked at what existed on web and mobile, and where the two had drifted apart.

  2. Token structure workshops

    Worked toward one token structure that could serve both platforms.

  3. Pipeline testing

    Checked that a token change flowed from code to each platform and on into Figma.

  4. Token updates through pull requests

    Used Claude to update tokens in code through pull requests, then published them to Figma.

How it works

  • Tokens live in code: Code is the source of truth for every token.
  • Packaged for each platform: The pipeline packages tokens for web and native mobile.
  • Two themes: We generated one theme for web and one for mobile, so each platform can differ where it needs to while sharing the same foundation.
  • Published to Figma: Tokens update in Figma automatically from code. Publishing the Figma library is still a manual step because of a Figma API limitation, and the library is then applied to the web and mobile component libraries.

Learnings

If I did it again, I’d set up the pipeline before the Figma libraries. Doing it the other way around meant a lot of rework to remap and audit tokens. Claude made that rework exponentially easier.