react-tailwindcss-datepicker icon indicating copy to clipboard operation
react-tailwindcss-datepicker copied to clipboard

Prevent the datepicker from using system dark theme

Open vincentteyssier opened this issue 2 years ago • 1 comments

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 avatar Sep 05 '23 14:09 vincentteyssier

@vincentteyssier you can just set darkMode: 'class' in your tailwind.config.js file! That way it uses class instead of the system preferences.

mikefogg avatar Sep 14 '23 01:09 mikefogg