ben-rogerson / twin.macro

🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
MIT License
7.89k stars 184 forks source link

Can't find min-w or min-h Tailwind classes #862

Open davegomez opened 2 months ago

davegomez commented 2 months ago

Whenever we try to use a min-w or min-h class, we get a similar error message saying twin.macro couldn't find the class.

✕ min-h-20 was not found

Try one of these classes:

- min-h-0 > 0px
- min-h-min > min-content
- min-h-max > max-content
- min-h-fit > fit-content
- min-h-full > 100%

Our projects use @emotion/react@11.11.4, and our Tailwind preset config does not change width, height, or any other variation.

It seems that this has been going on for a while already because I couldn't find any code using the classes I'm mentioning. We have always used arbitrary values min-w—[value].