react-tailwindcss-datepicker
react-tailwindcss-datepicker copied to clipboard
Prevent the datepicker from using system dark theme
For now the datepicker is using the system theme, hence if my system is dark, the datepicker renders dark. However I put it on a page that have a fixed color background and therefore would like to prevent the datepicker from becoming dark, how can I do that?
@vincentteyssier you can just set darkMode: 'class' in your tailwind.config.js file! That way it uses class instead of the system preferences.