Tailwind Shades
Server Details
Tailwind CSS palettes (50-950) from any color for v4-v1, and the closest Tailwind color
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- bourhaouta/vscode-tailwindshades
- GitHub Stars
- 77
- Server Listing
- tailwindshades-mcp
TDQS
Scored across 2 tools
The two tools target clearly different outcomes: one maps an arbitrary color to the nearest existing Tailwind shade, the other generates a full 50-950 palette. Descriptions explicitly cross-reference each other and even give decision guidance (use closest match if the difference is invisible, generate a palette if visible), leaving no room for misselection.
Both names are snake_case, which is consistent, but the grammatical patterns differ: 'generate_palette' is verb_noun while 'closest_tailwind_color' is an adjective/noun phrase with no action verb. Readable and unlikely to confuse, but not a single uniform convention.
Two tools is thin for a server, though the scope (Tailwind color matching and palette generation) is genuinely narrow and each tool earns its place. It sits at the borderline where the surface feels minimal rather than well-rounded.
The domain is Tailwind color work, and the pair covers both directions: existing palette lookup and custom palette creation with paste-ready output. Minor gaps exist (e.g. exporting to CSS variables or other frameworks), but the core lifecycle is covered with no dead ends.
Available Tools
2 toolsclosest_tailwind_colorFind the closest Tailwind colorARead-onlyIdempotentInspect
Finds the shade in Tailwind's default palette that looks most like a given color, e.g. #db4d53 -> red-500. Use it to pick an existing Tailwind class (bg-red-500) instead of an arbitrary value. If the difference is visible, use generate_palette to add the exact color as a custom palette instead.
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Any CSS color: hex (#db4d53), rgb(), hsl(), oklch() or a named color | |
| tailwindVersion | No | The project's Tailwind CSS major version. Defaults to 4 |
Output Schema
| Name | Required | Description |
|---|---|---|
| name | Yes | Tailwind color name, e.g. "red" |
| input | Yes | The input color |
| shade | Yes | Closest shade, e.g. 500 |
| distance | Yes | OKLab distance: 0 is identical, under 0.02 is hard to see |
| className | Yes | Color part of a utility class, e.g. "red-400" for bg-red-400 |
| tailwindValue | Yes | Tailwind's value for that shade |
| tailwindVersion | Yes | |
| visiblyDifferent | Yes | True when the Tailwind shade looks different from the input |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and closed-world, so the safety profile is covered. The description adds real value beyond that by explaining the intent (prefer a palette class over an arbitrary value) and the fallback pathway, though it doesn't discuss precision/tie-breaking behavior for near-equal shades.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three tight sentences, front-loaded with the core behavior and followed by decision guidance. No filler, and the example is embedded efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value explanation isn't required, yet the description still previews the result shape (red-500). For a simple two-parameter read tool with full schema coverage, nothing an agent needs in order to call it correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% – both the color format list and the tailwindVersion enum with default are fully documented in the schema. The description's example color reinforces but adds no syntax detail beyond what the schema provides, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('finds the shade in Tailwind's default palette') and grounds it with a concrete example mapping (#db4d53 -> red-500). It is clearly distinguishable from the sibling generate_palette, which is named as the alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit guidance: use this to pick an existing Tailwind class instead of an arbitrary value, and switch to generate_palette when the visual difference is noticeable. The when/when-not split is unambiguous.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_paletteGenerate a Tailwind paletteARead-onlyIdempotentInspect
Generates a full Tailwind CSS palette (50-950) from one color, ready to paste. Call it whenever you add a color to a Tailwind theme (e.g. "add a brand color #db4d53"), instead of writing a single variable or inventing shades. The input color stays exactly at its best-fit shade, and the other shades follow the closest Tailwind color, so they look like Tailwind's own.
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Color name used in the code, e.g. "brand". Defaults to the closest Tailwind color, which replaces Tailwind's own palette of that name (e.g. red), so pass a name unless that is what the user wants | |
| color | Yes | Any CSS color: hex (#db4d53), rgb(), hsl(), oklch() or a named color | |
| format | No | Color format. Defaults to oklch for v4 and hex for older versions | |
| output | No | theme: a v4 @theme block for the main CSS file. config: an object for theme.extend.colors in tailwind.config.js. css: plain CSS variables. Defaults to theme for v4 and config for older versions | |
| tailwindVersion | No | The project's Tailwind CSS major version. Defaults to 4 |
Output Schema
| Name | Required | Description |
|---|---|---|
| code | Yes | The palette as code, ready to paste |
| name | Yes | |
| format | Yes | |
| output | Yes | |
| shades | Yes | |
| inputShade | Yes | Shade that holds the input color unchanged, e.g. 500 |
| tailwindVersion | Yes | |
| closestTailwindColor | Yes | Tailwind color whose curve the palette follows |
| replacesTailwindColor | Yes | True when the code replaces a default Tailwind palette (default color name, theme or config output) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint and a closed world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the input color is preserved at its best-fit shade while the remaining shades are derived from the closest Tailwind color, so the agent knows output is deterministic and visually consistent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, front-loaded with what is produced, then the trigger condition, then a behavioral guarantee. No filler or repetition of schema content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value shape need not be restated. For a single-shot, five-parameter generation tool with fully documented params and annotations, the description covers everything an agent needs to select and invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so every parameter (name, color, format, output, tailwindVersion) is already documented with defaults and enums in the schema itself. The description adds no syntax or format detail beyond that, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource with scope: generates a full Tailwind CSS palette (50-950) from one color, ready to paste. It also contrasts the tool with the naive alternative (writing a single variable or inventing shades), so an agent can tell why this exists rather than reaching for closest_tailwind_color.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit trigger: 'Call it whenever you add a color to a Tailwind theme' with a concrete example prompt. It names the anti-pattern to avoid ('instead of writing a single variable or inventing shades'), giving clear when-to-use and when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
- First observed
closest_tailwind_color - First observed
generate_palette
Related MCP Connectors
Convert colours between hex, RGB, HSL, OKLCH and CMYK, and compute harmonies.
Solve, audit and simulate colorblind-safe chart palettes. WCAG contrast, OKLab ΔE. Read-only.
Generate design systems: OKLCH color palettes, fluid type scales, spacing, shape and icon tokens.
Color API MCP — wraps thecolorapi.com (free, no auth)
Related MCP Servers
- FlicenseBqualityDmaintenanceFinds the closest Tailwind CSS palette colors to any given CSS color value. Supports multiple color spaces and customizable result filtering to help match designs to Tailwind's color system.1-
- AlicenseNot gradedqualityBmaintenanceExtract palettes from images, generate harmonies, gradients, random palettes; Check WCAG and APCA contrast; Suggest nearest passing OkLCH lightness; Simulate color-blindness; Convert and sort colors across formats (hex / RGB / HSL / OkLCH / …)MIT
- AlicenseBqualityDmaintenanceEnables comprehensive color manipulation, conversion between 22+ formats (HEX, RGB, HSL, CMYK, LAB, etc.), palette generation, gradient creation, and accessibility compliance checking. Supports framework-specific outputs for CSS, Swift, Android, Flutter, and Tailwind with high-precision conversions and visualization capabilities.25MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive color conversion, manipulation, analysis, and WCAG accessibility tools supporting multiple formats (hex, rgb, hsl, oklch, oklab) for design systems and web development.14 npm2MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.