design-tokens-transformer

design-tokens-transformer is a skill for Claude Code from modu-ai/moai-cowork. It costs 45 tokens per session (1,078 once invoked), scanned A, original, Apache-2.0.

A converter for design tokens, which are named values for colors, fonts, spacing, borders, shadows, and motion. It translates one shared token source into CSS variables and Tailwind or shadcn-style theme files, and can convert them back for checking.

In plain words
What is it for?
Use it to generate CSS and Tailwind theme files from DTCG tokens, extract tokens from code, or verify that the different formats still match.
Why use it?
It keeps the same visual rules consistent across design files and code, while detecting changes that do not survive a round trip.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the moai-designer plugin — 17 skills shipped together

Good fit Use it to generate CSS and Tailwind theme files from DTCG tokens, extract tokens from code, or verify that the different formats still match.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/modu-ai/moai-cowork/design-tokens-transformer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add modu-ai/moai-cowork --skill design-tokens-transformer
Clone the repo
git clone --depth 1 https://github.com/modu-ai/moai-cowork

Made for: Claude Code.

Or install moai-designer, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-tokens-transformer

README.md
[![agentmods](https://agentmods.dev/badge/skills/modu-ai/moai-cowork/design-tokens-transformer/github.svg)](https://agentmods.dev/skills/modu-ai/moai-cowork/design-tokens-transformer)
Your own site
<a href="https://agentmods.dev/skills/modu-ai/moai-cowork/design-tokens-transformer"><img src="https://agentmods.dev/badge/skills/modu-ai/moai-cowork/design-tokens-transformer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-tokens-transformer

Your own site · 80×15
<a href="https://agentmods.dev/skills/modu-ai/moai-cowork/design-tokens-transformer"><img src="https://agentmods.dev/badge/skills/modu-ai/moai-cowork/design-tokens-transformer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,078 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01078
Opus 5.5 $0.00018 $0.00431
Sonnet 5.5 $0.00009 $0.00216
Haiku 4.5 $0.00005 $0.00108

Measured 1mo ago against content hash 219f6c53dd54, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-tokens-transformer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/moai-designer/skills/design-tokens-transformer/SKILL.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

디자인 토큰 변환

사용자의 원본 토큰과 소비 프로젝트를 먼저 확인한다. 원본이 DTCG라면 그 파일을 기준으로 파생 결과를 만든다. CSS만 있으면 역추출할 수 있지만, 값만으로 브랜드 출처나 의도를 복원했다고 주장하지 않는다. 3계층 파일, Tailwind, shadcn, 다크 모드는 해당 프로젝트에서 실제 사용하는 경우에만 만든다.

입력 확인

  1. 원본 파일을 읽고 파일 경로·버전·토큰 이름·별칭·모드를 기록한다. DESIGN.md의 설명만으로 색 값을 새로 만들지 않는다.
  2. 대상 프로젝트의 CSS, Tailwind 버전, shadcn 사용 여부와 기존 변수 이름을 확인한다. 이미 있는 변수 체계를 보존한다.
  3. $type과 $value는 DTCG Format Module 2025.10에 맞춰 검증한다. 색은 colorSpace·components를 가진 객체, dimension은 숫자와 단위의 객체, shadow는 그림자 객체 또는 그 배열, gradient는 색·위치를 가진 스톱 배열이다. CSS의 #hex, linear-gradient(...), box-shadow 문자열을 그대로 표준 DTCG 값이라고 표기하지 않는다.
  4. 기존 파일이 다른 토큰 형식을 쓰면 그 형식을 명시하고 변환 가능한 값과 수동 결정이 필요한 값을 나눈다. $description은 선택 사항이며, 값의 출처를 자동 증명하지 않는다. 실제 확인한 출처는 별도 기록한다.

변환

  • 원본 경로 → 출력 변수 이름의 대응표를 먼저 작성한다. 이름 충돌, 별칭 순환, 미지원 타입은 출력 전에 보고한다.
  • DTCG 값에서 CSS 값을 만들 때 색 공간 변환·단위·알파·그라디언트 종류처럼 표현이 달라지는 항목은 변환 기준과 오차를 적는다. CSS에서 역추출할 때 잃은 정보는 복원 불가로 표시한다.
  • 일반 CSS 소비처에는 필요한 custom property만 만든다. Tailwind v4의 @theme은 유틸리티가 필요한 변수에만 사용하고, 다른 CSS 변수 참조가 필요할 때는 공식 문서의 @theme inline 동작을 따른다.
  • shadcn을 쓰는 프로젝트에서는 공식 테마 문서의 현재 변수 계약과 프로젝트의 components.json을 대조한다. 보통 --primary와 --primary-foreground처럼 배경·전경 쌍을 만들며, Tailwind 매핑은 --color-primary: var(--primary) 형태다. --base-*나 상태색·차트 다섯 개를 임의의 필수 표준으로 만들지 않는다.
  • 다크 모드가 있으면 프로젝트의 실제 선택자와 토큰을 사용한다. 밝기만 기계적으로 올리거나 임의 색상을 생성하지 않는다. 원본에 없는 모드는 미확정 상태로 남긴다.
  • 폰트 파일은 라이선스·배포 경로가 확인된 경우에만 넣는다. 파일이 있다는 이유로 셀프 호스팅 코드를 자동 생성하지 않는다.

검증

  1. JSON 파싱과 타입별 값 구조, 참조 대상과 순환 여부를 확인한다.
  2. 생성 CSS를 실제 대상 빌드로 검사한다. 대상 빌드를 실행할 수 없으면 정적 검사만 했다고 적는다.
  3. 대응표의 원본 토큰마다 출력 변수와 값을 대조한다. 역변환은 표현 가능한 하위 집합에만 왕복 검사를 하고, 손실 항목은 별도로 열거한다. PASS는 실제 비교 결과가 있을 때만 쓴다.
  4. 배경·전경 쌍을 실제 모드별로 계산해 대비를 확인한다. 주색 위 글자를 흰색으로 고정하지 않는다.
  5. 원본이 금지한 색·글꼴·표현이 있으면 변환 결과와 대조한다. 금지 규칙 자체를 창작하지 않는다.

보고

입력 경로와 확인한 형식, 생성한 파일, 변환한 토큰 수, 손실·충돌 목록, 실제 실행한 파서·빌드·대비 검사의 명령과 결과를 적는다. 확인하지 못한 플랫폼과 렌더 결과는 미검증으로 남긴다.

Read the full file on GitHub · 41 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 219f6c53dd54
  2. 2mo ago Changed · -318 lines · -210 tokens per session e5c339370617
  3. 2mo ago First seen · 358 lines · 255 tokens per session scan A 6128dcac8252

Subscribe to this mod's changes

design-tokens-transformer is a skill published in the GitHub repository modu-ai/moai-cowork (320 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,078 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

design-tokens-transformer compared with skills from other repositories

design-tokens-transformer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-tokens-transformermodu-ai/moai-coworkSkill3201mo agoApache-2.0A45Claude Code
instant-uinaveedharri/benai-skillsSkill841mo agoMITA217Claude Code
ui-polishPrabhdeepSingh/claude-pluginsSkill420d agoMITA73Claude Code
colorsPrabhdeepSingh/claude-pluginsSkill420d agoMITA73Claude Code
layoutPrabhdeepSingh/claude-pluginsSkill420d agoMITA71Claude Code
motion-systemOneWave-AI/open-agent-stackSkill63mo agoMITA58Claude Code
polish-passOneWave-AI/open-agent-stackSkill63mo agoMITA51Claude Code