export_tokens
Exports design tokens from a specific mode in your chosen format (JSON, CSS, iOS, Android).Tool Schema
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenset_id | string | Yes | Tokenset ID |
mode_id | string | Yes | Mode ID |
format | string | Yes | Export format: json, css, ios, android |
Response
Supported Formats
JSON (W3C)
W3C Design Tokens format:CSS
CSS Custom Properties:iOS (Swift)
Swift UIColor and CGFloat:Android (XML)
XML Resources:Example Usage
Export CSS
Claude: [Exports both formats and displays them]
Claude: [Exports Light mode]
[Exports Dark mode]
Created:
- tokens-light.css (50 tokens)
- tokens-dark.css (50 tokens)