You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a JavaScript-based config (tailwind.config.js) and defining theme keys that include a lowercase letter followed by an uppercase letter (e.g., lightGreen or LightGreen), the expected utility class (e.g., bg-lightGreen) is not generated. Instead, Tailwind generates bg-light-green, converting the key to kebab-case.
Utility class name transforms lowercase+uppercase keys (camelCase/PascalCase) to kebab-case unexpectedly when using JavaScript config file · Issue #18114 · tailwindlabs/tailwindcss
Activity
woohm402 commentedon May 22, 2025
I opened a PR that might fix this: #18115 .
From what I saw,
apply-config-to-theme.ts
andtheme.ts
handle the key transformation differently, so I tried to align them.Could someone confirm if this approach makes sense or if there’s a reason it was done differently? Thanks!