1 Generate your tokens

Generate your tokens

Head to the designtoken.md generator and configure a token set that matches your Stitch project's visual direction:

Open the generator →
2 Open Stitch's design system panel

Open Stitch's design system panel

Inside your Google Stitch project:

3 Replace with richer tokens

Replace with richer tokens

Swap out Stitch's default content for your full designtoken.md output:

What changes

See the difference between Stitch's default design.md and what you get with designtoken.md:

Before (Stitch default)
# Design Tokens
## Colors
Primary: #4A7C59
Secondary: #C2785C
Background: #FAFAF9

## Typography
Heading: Plus Jakarta Sans
Body: Inter, 16px
After (with designtoken.md)
# designtoken.md
## Color Palette
### Primary
- **50:** #F0F7F2
- **100:** #D4E8D9
- **200:** #B0D4B8
- **500:** #4A7C59 ← base
- **700:** #30503A
- **900:** #18261D

## Typography Scale
| Level   | Size | Weight | LH  | LS      |
|---------|------|--------|-----|---------|
| display | 48px | 800    | 1.1 | -0.03em |
| body    | 16px | 400    | 1.6 | 0       |
... + spacing, radius, shadows, components

With richer tokens, Stitch's agent gets deterministic values for every design decision (full color scales, precise typography rules, spacing, elevation, and component definitions) instead of interpreting a handful of descriptive lines.

Best practices

Go further

Static token files, whether design.md or designtoken.md, give your agent vocabulary. For runtime token resolution, brand guardrails, and composition intelligence at production scale, explore Designless Studio.

Frequently asked questions

Will Stitch's agent understand designtoken.md format?
Yes. The designtoken.md format uses standard markdown headings, bullet lists, and tables. Any agent that reads markdown — including Stitch's — can parse it. The structured format actually makes it easier for the agent to find specific values than natural-language descriptions.
Should I keep Stitch's original design.md content?
You can keep the prose description section (the "Visual Theme" paragraph) at the top for creative context, then append the structured designtoken.md tokens below. Or replace it entirely — the tokens contain everything the agent needs.
Can I use the visual card tab output instead?
The visual card is a rendered HTML preview for humans. For Stitch's design.md tab, use the markdown output — it's what agents parse. The visual card is useful for reviewing your tokens before pasting them.
Generate your designtoken.md →