resolve_v4_theme_variables
Extracts design tokens defined in @theme blocks from a Tailwind v4 CSS file, returning a flat map of CSS custom properties for use in queries.
Instructions
Parses the project's root CSS file (Tailwind CSS v4) and extracts all design tokens defined in @theme blocks. Returns a flat map of CSS custom properties (e.g., --color-primary-500 -> oklch(...)).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"css_path": "<css_path>"
},
"name": "resolve_v4_theme_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css_path | Yes | Absolute path to the CSS file containing the @theme or @import "tailwindcss" directives |