Tailwind doesn't generate max() CSS

Applied a value of max(5%, 1.5rem) to an element’s margin.

The class right-[max(5%, 1.5rem)] gets added, but no actual CSS is generated.

Hello @sunny,

Thanks for the report.

You’ll want to add an underscore to your values if they contain a space: Adding Custom Styles - Tailwind CSS

We are considering replacing whitespaces in values when in Tailwind mode by default.

Cheers,

2 Likes

Ah makes sense, thank you!