Skip to main content
Glama

generate_tokens

Export design tokens from active UI presets to CSS, JavaScript, JSON, or Tailwind formats for consistent styling across projects.

Instructions

Export the active preset's design tokens in various formats for use in your project.

Args:

  • format ('css'|'js'|'json'|'tailwind'): Output format (default: 'css')

    • css: :root { --color-surface: ...; } CSS custom properties

    • js: TypeScript const export for use with style objects

    • json: Raw token JSON

    • tailwind: theme.extend config for tailwind.config.js

  • include_comments (boolean): Add section headers in output (default: true)

Returns: Token file content as a string. Requires active preset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format for token exportcss
include_commentsNoAdd section headers in output

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ncsound919/OG-Glass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server