Skip to main content
Glama

create_theme

Scaffold an enterprise CSS theme from component design tokens. Generates light and dark mode variables with automatic prefix detection.

Instructions

Scaffold a complete enterprise CSS theme from the component library's design tokens. Analyzes the CEM to detect the token prefix and categories, then generates a ready-to-customize CSS file with light mode variables, dark mode overrides (via prefers-color-scheme and explicit class), and color-scheme declarations. Returns the full CSS content and per-category token counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNameNoName for the theme (used in CSS class selectors). E.g. "brand" generates ".brand-light" and ".brand-dark". Defaults to "theme".
prefixNoOverride the CSS custom property prefix detected from the CEM. E.g. "--hx-". When omitted, the prefix is detected automatically.
libraryIdNoOptional multi-library dispatch hint. When set, src/mcp/index.ts uses it to pick the correct CEM before invoking this tool. Schema-aware MCP clients must allow it through to support multi-library projects.

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/bookedsolidtech/helixir'

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