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
Describe the feature in detail (code, mocks, or screenshots encouraged)
ModeWatcher is designed to automatically add and remove a dark class to the html element, facilitating theme management in conjunction with Tailwind.
However, Tailwind supports custom prefixes for its classes, which also requires using this prefix to the class used to detect dark mode. To address this, introducing a property in ModeWatcher that allows users to specify the class for dark mode detection could resolve the problem. This enhancement would ensure compatibility regardless of the class naming conventions used in Tailwind CSS.
Describe the feature in detail (code, mocks, or screenshots encouraged)
ModeWatcher is designed to automatically add and remove a dark class to the html element, facilitating theme management in conjunction with Tailwind.
However, Tailwind supports custom prefixes for its classes, which also requires using this prefix to the class used to detect dark mode. To address this, introducing a property in ModeWatcher that allows users to specify the class for dark mode detection could resolve the problem. This enhancement would ensure compatibility regardless of the class naming conventions used in Tailwind CSS.
Example
What type of pull request would this be?
New Feature
Provide relevant links or additional information.
https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually
The text was updated successfully, but these errors were encountered: