# Tailwind Shades

Turns any color into a full Tailwind palette from 50 to 950 and finds the closest default shade, so the agent stops guessing.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 78
- Author: bourhaouta
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/bourhaouta/vscode-tailwindshades/tree/HEAD/packages/mcp
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/tailwind-shades

## What it does

The server hands your agent real Tailwind CSS palettes. Ask it to add a brand color and it gets the full `50` to `950` range in your project's Tailwind format, with the input color sitting exactly at `brand-500`. Tailwind v4, v3, v2 and v1 are all covered.

Five read-only tools do the work: `generate_palette` builds a palette from one color, `find_closest_tailwind_color` matches a color to a default shade, `get_tailwind_palette` returns Tailwind's own values, `list_tailwind_colors` lists the color names, and `convert_color` outputs `oklch()`, hex and rgb. There is also an `add_brand_color` prompt: it tells the agent to detect the project's Tailwind version, call `generate_palette` and paste the result into the theme. In Claude that prompt shows up as a slash command.

Setup can be remote through `https://tailwindshades.bourhaouta.com/mcp`, no API key and nothing to install. The local route runs `npx -y tailwindshades-mcp` and needs Node.js 20 or later, but keeps everything on your machine. On an older Node version the local server will not start, so use the remote URL there.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://tailwindshades.bourhaouta.com/mcp`

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http tailwindshades https://tailwindshades.bourhaouta.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add mcp -- npx -y tailwindshades-mcp
```

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://tailwindshades.bourhaouta.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp -- npx -y tailwindshades-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://tailwindshades.bourhaouta.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "tailwindshades-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://tailwindshades.bourhaouta.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "tailwindshades-mcp"
            ]
        }
    }
}
```

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://tailwindshades.bourhaouta.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add mcp npx -y tailwindshades-mcp
```

## When to use it
- build a shade palette from a brand color
- pick the nearest default Tailwind class instead of an arbitrary value
- pull Tailwind's own color values without retyping them
- convert a color to `oklch()` for a Tailwind v4 project
- check which text and background pairs pass WCAG AA

## Example prompts
- Add a brand color #db4d53 to my theme
- Generate a Tailwind palette from #db4d53 for version 4
- Find the closest Tailwind color to #db4d53

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
