Description
What version of Tailwind CSS are you using?
v4.1.3
What build tool (or framework if it abstracts the build tool) are you using?
Tailwind Play
What version of Node.js are you using?
Tailwind Play
What browser are you using?
n/a
What operating system are you using?
n/a
Reproduction URL
https://play.tailwindcss.com/OFXbKDyZ5G
Describe your issue
It seems hyphenated custom theme properties are supposed to be supported, like in the example the --color-nice-blue
works just fine with a bg-nice-blue
.
But if I try the same with a custom container size I get broken behaviour.
If I set --container-custom
, I can apply @custom:font-bold
and I see it render bold (since we're wider than the specified 2rem). In Tailwind Play's autocomplete, when I type @cus
I see @custom:
and @max-custom:
and @min-custom:
. This is all as expected.
But if I set --container-hyphenated-custom
, the same doesn't work, and I don't see it render bold. In the autocomplete, interestingly, I see @max-hyphenated-custom:
and @min-hyphenated-custom:
, but no @hyphenated-custom:
.