Documentation
Learn how to use Tokens with your AI assistant
Getting Started
Tokens helps you create professional design tokens from your brand colors. You can use it directly in your browser, or connect it to your AI assistant for a more conversational experience.
Pick your colors, preview the generated tokens, and export them in your preferred format.
Open GeneratorAdd our MCP server to your AI assistant and describe the vibe you want.
Setup GuideWhat are Design Tokens?
Design tokens are the smallest building blocks of your design system. Instead of using raw values like #3b82f6, you use named tokens like primary-500.
Why use tokens?
- Consistency: Every component uses the same colors
- Maintainability: Change one token, update everywhere
- Theming: Easily switch between light and dark modes
- Communication: Designers and developers speak the same language
Token Types
Tokens generates several types of tokens:
Primitive Colors
Color scales from 10 (lightest) to 100 (darkest) for each brand color. These are the raw colors you'll reference.
Semantic Colors
Semantic colors named by purpose: primary, secondary, success, warning, danger. These adapt to light/dark mode.
Supporting Tokens
Spacing, typography, border radius, and shadows that complement your colors.
MCP Setup
The Model Context Protocol allows AI assistants to use external tools. There are two ways to use Tokens with MCP:
Connect directly to our server. Best for quick setup and always up-to-date.
https://tokens.flett.cc/mcpRun locally using stdio. Best for privacy and offline access.
View on NPM →Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Option 1: Hosted Server (Recommended)
{
"mcpServers": {
"tokens": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://tokens.flett.cc/mcp"]
}
}
}Option 2: Local NPM Package
First install: npm install -g @flett/design-tokens-mcp-server
{
"mcpServers": {
"tokens": {
"command": "toke-mcp"
}
}
}Restart Claude Desktop and look for the hammer icon in the bottom right.
Add this to your VS Code settings.json:
Hosted Server
{
"github.copilot.chat.mcp": {
"servers": {
"tokens": {
"url": "https://tokens.flett.cc/mcp"
}
}
}
}Then ask Copilot: "Generate design tokens for a calm, professional brand with blue as the primary color"
Add to ~/.cursor/mcp.json:
Hosted Server
{
"tokens": {
"url": "https://tokens.flett.cc/mcp"
}
}Available Tools
These are the tools your AI assistant can use when connected to Tokens:
Generate a complete token system from brand colors.
Parameters:
- brandColors: { primary, secondary, accent } (hex values)
- mode: "light" | "dark" | "both"Describe a vibe and get suggested brand colors.
Parameters: - vibeDescription: "calm and professional" or "bold and energetic"
Export tokens in various formats.
Parameters: - tokenSystem: (from generate_tokens) - format: "css" | "tailwind-v3" | "tailwind-v4" | "json" | "scss" - mode: "light" | "dark" | "both"
Generate a prompt for creating a shadcn/ui component using your tokens.
Parameters: - componentType: "button" | "card" | etc. - tokenSystem: (from generate_tokens) - requirements: (optional) "should have hover animation"
Color Algorithm
Learn how Tokens generates professional, perceptually balanced color scales using OKLCH color space with different approaches for chromatic and achromatic colors.
Our algorithm uses OKLCH color space with parabolic chroma curves and Bezold-Brücke hue shift compensation for chromatic colors. Neutrals use a Tailwind-inspired distribution pattern spaces better UI backgrounds and text contrast.
Read Full Documentation →Glossary
Hover over or tap any underlined term to see its definition. Here are some key terms: