{ "name": "export_mode", "description": "Export a specific mode's tokens in various formats (json, css, ios, android)", "inputSchema": { "type": "object", "properties": { "tokenset_id": { "type": "string", "description": "The ID of the tokenset" }, "mode_id": { "type": "string", "description": "The ID of the mode to export" }, "format": { "type": "string", "enum": ["json", "css", "ios", "android"], "default": "json", "description": "The export format (default: json)" } }, "required": ["tokenset_id", "mode_id"] }}
You: Export the Light mode from my Colors tokenset as CSSClaude: I'll export the Light mode tokens as CSS custom properties.Here's your CSS export:```css:root { /* Brand Colors */ --color-primary: #007AFF; --color-secondary: #5856D6; --color-background: #FFFFFF; /* Spacing */ --spacing-small: 8px; --spacing-medium: 16px; --spacing-large: 24px;}
You can copy this CSS and use it in your project.
### Export for Development
You: Give me the JSON format for the Dark mode so I can use it in my design systemClaude: I’ll export the Dark mode tokens in W3C Design Tokens JSON format.
{ "color": { "primary": { "value": "#0A84FF", "type": "color", "description": "Primary brand color for dark mode" }, "background": { "value": "#000000", "type": "color" } }}
### Cross-Platform Export
You: Export the Light mode in both iOS Swift and Android XML formatsClaude: I’ll export the tokens in both formats for you.iOS Swift:
You: Export CSS variables for my component library
### 2. Mobile Apps
You: Generate Swift color constants for the iOS app
### 3. Design System Documentation
You: Export JSON format to generate style documentation
### 4. Cross-Platform Consistency
You: Export both iOS and Android formats to ensure consistency
## Notes- Only exports tokens from the specified mode- Aliased tokens are resolved to their actual values in the export- Comments and descriptions are included where supported by the format- The export is returned as a string that you can copy to your project## Tips1. **Format Selection**: Choose the format that matches your target platform2. **Mode Selection**: Export different modes for theme support (Light/Dark)3. **Copy Content**: The export content is displayed but not automatically saved4. **Batch Exports**: Request multiple formats in one conversation## See Also- [export_tokenset](/mcp/tools/export-tokens) - Export complete tokenset with all modes- [list_tokens_by_mode](/mcp/tools/list-tokens-by-mode) - Preview tokens before export- [get_mode](/mcp/tools/get-mode) - Get mode details