Where to change dark mode background color? #263
-
Hi timlrx, I'd like to preface this question by saying thank you very much for this awesome starter! It's amazing how much functionality you manage to fit in in such a customizable way. I have a question, how do I set the background color for the whole page, and customize for both dark mode and light mode? This is what I've tried (in _app.tsx):
This sets a page-wide background color of primaryCol (defined in tailwind.config.js) for light mode, but it stays with primaryCol for dark mode too. What is the right way of doing this, and is there a smarter way of doing this rather than just throwing in a random div in _app.tsx? Thank you in advance for your time and help. I really appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @mshumayl ,
this is where bg color sleeps. |
Beta Was this translation helpful? Give feedback.
Hello @mshumayl ,
you need to go to
/pages/_document.js
line 37:
this is where bg color sleeps.
Tailwind Background Colors