vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
5.79k stars 1.19k forks source link

Feature Request: Light Mode , Dark Mode #279

Open ivan20203 opened 7 months ago

ivan20203 commented 7 months ago

Right now everything is hardcoded to be in dark mode.

I tried to get dark mode and light mode to work with next-themes:

https://github.com/pacocoursey/next-themes

But, I'm not sure the prefixing of dark: works.

As in, i can get the local storage to change to "light" or "dark"

But when i use the dark prefix in the Footer.tsx lets say it does not work.

For my Footer.tsx its a client component so I have no even thought about Server components.

is there some main.css overriding?

Or maybe i should do logic within client components to check local storage.

ivan20203 commented 2 months ago

i can't do that im not admin.

KazeroG commented 6 days ago

+1