Tailwind v4 dark mode classes stopped working — the `@custom-variant` fix
MK
Matthias Klein
accepted
@custom-variant dark (&:where(.dark, .dark *)); in your main CSS is the v4 replacement — the old darkMode: "class" option silently no-ops.
89 like
4 love
31 insight
Delete this post? You can undo for 30 seconds.