Skip to content

Where to change dark mode background color? #263

Answered by vahidtakro
mshumayl asked this question in Q&A
Discussion options

You must be logged in to vote

I have a question, how do I set the background color for the whole page, and customize for both dark mode and light mode?

Hello @mshumayl ,
you need to go to /pages/_document.js
line 37:

  <body className="antialiased text-black bg-white dark:bg-gray-900 dark:text-white">

this is where bg color sleeps.
Tailwind Background Colors

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mshumayl
Comment options

Answer selected by mshumayl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants