tailwind-merge-recipe

Community

Fix Tailwind class conflicts with CSS variables.

Authortnunamak
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Tailwind class merging can break when you use custom CSS variable tokens, leading to incorrect or conflicting utility classes.

Core Features & Use Cases

  • Extends tailwind-merge behavior: Adds custom theme keys and validator functions so Tailwind utilities match your design tokens.
  • Prevents class conflicts: Ensures tokens like custom colors, spacing, and typography merge correctly instead of producing unintended duplicates.
  • Works with dynamic token naming: Uses regex-based validators to cover families of utilities rather than only fixed allowlists.

Quick Start

Paste the provided extendTailwindMerge configuration into your project, then import and use cn(...) when composing Tailwind class strings that include your custom CSS variable-based utilities.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tailwind-merge-recipe
Download link: https://github.com/tnunamak/dotfiles/archive/main.zip#tailwind-merge-recipe

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.