79683206

Date: 2025-06-28 17:58:59
Score: 3
Natty:
Report link

@rozsazoltan's way of setting variant doesn't work for automatically inheritable properties, like text color. It will break the utility in dark mode unless your text color utility is applied to the direct parent of the text. The example introduced in Tailwind v4 official doc tries to define background color variants, which is fine.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Kevin Hu