find_tokens_by_type
Searches for all design tokens of a specific type across all workspaces, tokensets, and modes. This is perfect for finding all colors, spacing values, typography settings, or any other token type in your entire design system.Tool Schema
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Token type to search for (see supported types below) |
Supported Token Types
| Type | Description | Examples |
|---|---|---|
color | Color values | #FF0000, rgb(255,0,0), hsl(0,100%,50%) |
dimension | Spacing, sizing | 16px, 1rem, 2em |
fontFamily | Font family names | Inter, Arial, sans-serif |
fontWeight | Font weight values | 400, bold, normal |
fontSize | Font sizes | 16px, 1.25rem |
lineHeight | Line height values | 1.5, 24px |
letterSpacing | Letter spacing | 0.5px, -0.02em |
duration | Time durations | 200ms, 0.3s |
cubicBezier | Easing curves | cubic-bezier(0.4, 0, 0.2, 1) |
number | Numeric values | 42, 3.14 |
string | Text values | "Hello World" |
boolean | True/false values | true, false |
strokeStyle | Border styles | solid, dashed |
border | Border definitions | 1px solid #000 |
transition | CSS transitions | all 0.3s ease |
shadow | Box shadows | 0 2px 4px rgba(0,0,0,0.1) |
gradient | CSS gradients | linear-gradient(to right, #fff, #000) |
typography | Complete text styles | Complex typography objects |
Response
Example Usage in Claude
Find All Colors
Find Typography Tokens
Find Spacing Values
Find Specific Token Types
Common Use Cases
1. Design System Audit
2. Consistency Check
3. Token Inventory
4. Cross-Product Analysis
Notes
- Searches across ALL workspaces you have access to
- No workspace ID needed - searches everything
- Returns tokens grouped by workspace and tokenset
- Includes mode information for each token
- Shows total count of tokens found
Tips
- Broad Search: Great for understanding your entire design system
- Token Types: Use exact type names (color, dimension, fontSize, etc.)
- Cross-Workspace: Finds tokens even across different projects
- Mode Awareness: Shows which mode each token belongs to
See Also
- search_tokens - Search by name, value, or description
- list_resources - Overview of all resources
- get_tokens_by_mode - Get tokens from specific mode
- find_tokens_by_type - This tool