-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Describe the problem:
I have darkMode: 'class' in my config.
When using these classes: bg-gray-100 bg-opacity-50 dark:bg-gray-900 , the bg-opacity is only applied in light mode, but in dark mode bg-opacity is ignored.
I had to add the dark variant to: backgroundOpacity: ['dark'], then also add dark:bg-opacity-50 to the element to get it to work in dark mode.
Expected behaviour: dark mode should also respect the bg-opacity class (unless overriden for dark).
Link to a minimal reproduction:
nekooee, laymonage, Kalissaac, bluskript, wepsree and 2 more
Metadata
Metadata
Assignees
Labels
No labels