Skip to content

Conversation

@KashviYadav09
Copy link

Summary

This PR fixes an issue where utilities are not generated when theme keys contain escaped special characters (e.g. brand\:primary).

Tailwind allows escaped characters in theme configuration keys, but named utility values were not being normalized before theme lookup, which caused matching to fail.

What’s changed

  • Added normalization for escaped theme keys
  • Ensured named utility values are unescaped before resolving against the theme
  • Added tests to cover escaped theme keys in configuration and utility generation

Example

// tailwind.config.js
theme: {
  colors: {
    'brand\\:primary': '#ff0000',
  },
}

@KashviYadav09 KashviYadav09 requested a review from a team as a code owner January 21, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant