Skip to main content

export_mode

Exports design tokens from a specific mode in your chosen format (JSON, CSS, iOS, Android).

Tool Schema

Parameters

Response

The response contains the exported token data as a string in the requested format.

Supported Formats

JSON (W3C Design Tokens)

Standard W3C Design Tokens format:

CSS Custom Properties

CSS variables ready for your stylesheets:

iOS (Swift)

Swift code with UIColor and CGFloat definitions:

Android (XML)

Android XML resources:

Example Usage in Claude

Export CSS Variables

You can copy this CSS and use it in your project.
You: Give me the JSON format for the Dark mode so I can use it in my design system Claude: I’ll export the Dark mode tokens in W3C Design Tokens JSON format.
You: Export the Light mode in both iOS Swift and Android XML formats Claude: I’ll export the tokens in both formats for you. iOS Swift:
Android XML:
You: Export CSS variables for my component library
You: Generate Swift color constants for the iOS app
You: Export JSON format to generate style documentation
You: Export both iOS and Android formats to ensure consistency