---
title: "Figma agent vs. one button: shipping design tokens to npm"
description: "Automating a design-token release pipeline (Figma variables → DTCG JSON → Terrazzo CSS → npm) with the Figma agent worked but took six minutes per run."
url: "https://swe.quest/articles/figma-agent-vs-one-button-shipping-design-tokens-to-npm-f2d5e60d7604e2ca"
canonical: "https://blog.gitbutler.com/design-tokens-ai-agent-vs-button"
source: "GitButler"
published: "2026-09-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["design-systems","ai-agents","ci-cd","ai-coding","deployment"]
---

# Figma agent vs. one button: shipping design tokens to npm

A post on [GitButler](https://swe.quest/sources/gitbutler.md), published 2026-09-07, 10 min read, Case study. Original: [https://blog.gitbutler.com/design-tokens-ai-agent-vs-button](https://blog.gitbutler.com/design-tokens-ai-agent-vs-button)

## Summary

Automating a design-token release pipeline (Figma variables → DTCG JSON → Terrazzo CSS → npm) with the Figma agent worked but took six minutes per run. The agent's sandbox has no git or network, so it had to stream a 54 KB file through its own capped context into a GitHub connector. The winning setup is the existing plugin's "Push to server" button opening a PR, plus two Claude-written GitHub Actions workflows. One rebuilds CSS, infers patch/minor bumps (majors need an explicit label) and comments a token diff; the other publishes via npm trusted publishing over OIDC. The takeaway: use LLMs to write scripts and CI, not as a runtime for deterministic pipelines, and let tools move bytes by file path rather than through model context.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- GitHub Actions basics ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- npm package publishing
- design tokens

## Keywords

Figma, Claude Code, GitHub Actions, npm trusted publishing, Terrazzo, Tokens Brücke, MCP, DTCG

## Related posts

- [How Coinbase used Code Connect to guide agents and shrink token costs](https://swe.quest/articles/how-coinbase-used-code-connect-to-guide-agents-and-shrink-token-costs-b8a9afa8129ad3ba.md): Figma · 2026-09-02 · Easy · 6 min read · Design systems, AI for coding, AI agents, Evaluation
  Coinbase's design system team mapped every Coinbase Design System component to its code counterpart with Figma Code Connect.
- [The making of the Figma Pattern Library](https://swe.quest/articles/the-making-of-the-figma-pattern-library-500fd6e5ca81c90e.md): Figma · 2024-11-21 · Medium · 9 min read · Design systems, Frontend, Accessibility
  Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style.
- [How We Built Our Design Agent](https://swe.quest/articles/how-we-built-our-design-agent-5b29ee59fcf5b432.md): LangChain · 2026-10-29 · Medium · 21 min read · AI agents, LLMs, Video & media
  Content Studio, LangChain's Slack-based design agent, produces on-brand videos, graphics, slide decks and UI recreations entirely as code, running on Managed Deep Agents with a per-thread LangSmith Sandbox.
- [Automating cross-repo documentation with GitHub Agentic Workflows](https://swe.quest/articles/automating-cross-repo-documentation-with-github-agentic-workflows-e38fd8e813d70616.md): GitHub Engineering · 2026-07-08 · Medium · 9 min read · AI agents, Documentation, CI/CD, Supply chain security, Developer productivity
  Aspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer.
- [Shipping huggingface\_hub every week with AI, open tools, and a human in the loop](https://swe.quest/articles/shipping-huggingface-hub-every-week-with-ai-open-tools-and-a-human-in-the-loop-beb8acfe6f6762ac.md): Hugging Face · 2026-06-23 · Medium · 10 min read · CI/CD, Deployment, AI agents, Supply chain security, Python
  huggingface\_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
