You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because dark mode css for tailwind seemed bit messy (like i have to add "dark:" to every dark mode class i want to implement),
i tried to make it cleaner by passing arrays of dark mode classes as props to my styled-components where i use dark function i created to return "dark: classname" for every classnames in the array.
This might be because of tailwind not recognizing the use of the dark class names. Try adding those classes to the tailwind config safelist, so the compilers keeps them.
Because dark mode css for tailwind seemed bit messy (like i have to add "dark:" to every dark mode class i want to implement),
i tried to make it cleaner by passing arrays of dark mode classes as props to my styled-components where i use dark function i created to return "dark: classname" for every classnames in the array.
Here are the example:
When i checked the dev-tool, i can clearly see that "dark: classname" is being added. However, the dark mode isnt working when the button is clicked.
After hours of bug-finding, i gave up.
The text was updated successfully, but these errors were encountered: