Next.js Discord

Discord Forum

automatic nightmode?

Answered
North Pacific hake posted this in #help-forum
Open in Discord
North Pacific hakeOP
Hi there, my nextjs 14 sites all have no night mode while my nextjs 15 projects seem to have automatic nightmode, how to disable this? This is how my globals.css is:

@tailwind base;
@tailwind components;
@tailwind utilities;
Answered by North Pacific hake
its the absense of a theme
View full answer

21 Replies

@B33fb0n3 maybe it's the default browser style that adapts your system preference. Check the html & css and take a look *why* its now dark mode
North Pacific hakeOP
my globals.css is the same on my nextjs 14 and nextjs 15 however this only happens on nextjs 15
same browser
both deployed
different browser too
@North Pacific hake my globals.css is the same on my nextjs 14 and nextjs 15 however this only happens on nextjs 15
yeah, check your html & css on the parts of the website that changing
@B33fb0n3 yeah, check your html & css on the parts of the website that changing
North Pacific hakeOP
i think its just regular tailwind
i see nothing out of the ordinary
any specific place to look at?
@North Pacific hake any specific place to look at?
normally you right click the specific element that looks different.
After the correct element is either directly selected or you need to search a bit. When the specific element is selected you can check the css to see why is colored like that
North Pacific hakeOP
its the whole site btw
all elements
i am using daisyui btw
but i doubt its that
@North Pacific hake its the whole site btw
some styles might be also excluded in classes and not directly on your element. I am pretty sure you know how to read css. Else let me know, than I can get into detail..
North Pacific hakeOP
its the absense of a theme
Answer
North Pacific hakeOP
on daisyui
which gives weird night mode
when its night time