Skip to content
Back to skills

Figma Tokens To Designmd

ASecurity

Convert a Figma design-token JSON export into a design.md design-system file (google-labs-code/design.md format). Use when the user has Figma tokens/variables JSON and wants a machine-readable design.md with colors, typography, spacing and rounding tokens.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentspythongobashgitfrontend

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add me-cedric/agent-compass --skill figma-tokens-to-designmd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Figma Tokens To Designmd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Figma Tokens To Designmd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/me-cedric-figma-tokens-to-designmd/badge)](https://www.skillsdirectory.com/skills/me-cedric-figma-tokens-to-designmd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: figma-tokens-to-designmd
description: >
  Convert a Figma design-token JSON export into a design.md design-system file
  (google-labs-code/design.md format). Use when the user has Figma
  tokens/variables JSON and wants a machine-readable design.md with colors,
  typography, spacing and rounding tokens.
risk_level: low
writes_files: true
requires_tools: [python3]
license: MIT
metadata:
  version: "1"
---

# Figma tokens → design.md

Map a Figma **design-token** JSON export to a `design.md` file in the
[google-labs-code/design.md](https://github.com/google-labs-code/design.md)
format (YAML token front matter + Markdown sections).

> This is the design-**system** `design.md` (colors/typography tokens) — a
> different artifact from a Google *design-doc*. Do not overwrite any existing
> design-doc.

Use [`figma-mcp-frontend`](../figma-mcp-frontend/SKILL.md) instead when the goal
is to implement screens from live Figma design context rather than to persist the
token set.

## Inputs

A Figma token JSON file provided by the user (W3C DTCG `{"$type","$value"}` or
Tokens-Studio `{"type","value"}` shape).

## Output

`design.md` at the repository root, or the path the project already uses, with:

1. **YAML front matter** (delimited by `---`): `name` (required), plus token maps
   `colors`, `typography`, `rounded`, `spacing` (and `components` when present).
2. **Markdown body** — `##` sections, present ones in this **exact order**:
   `Overview`, `Colors`, `Typography`, `Layout`, `Elevation & Depth`, `Shapes`,
   `Components`, `Do's and Don'ts`.

## Procedure

1. Run the mapper to produce a first draft:

   ```bash
   python3 skills/figma-tokens-to-designmd/scripts/figma_to_designmd.py \
     <tokens.json> design.md --name "<Design system name>"
   ```

   It flattens the token tree and buckets tokens by type (color → `colors`,
   dimension/spacing → `spacing`, radius → `rounded`, font/typography →
   `typography`).

2. Review the generated front matter. **Verify the nested token schema against
   the design.md spec** and adjust key names/shape if the spec differs — the
   script's mapping is a starting point, not the authority.

3. Fill in the `##` body sections with human-readable rationale (keep them in the
   canonical order; omit a section rather than reordering).

## Validation

- The file must start with a `---` YAML front-matter block containing a non-empty
  `name`.
- Any `##` sections present must appear in the canonical order above.

Files in this skill

  • SKILL.md2.4 KB
  • scripts/figma_to_designmd.py4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.