Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to force dark mode? #194

Open
LetThatSinkIn opened this issue Dec 21, 2023 · 1 comment
Open

Possible to force dark mode? #194

LetThatSinkIn opened this issue Dec 21, 2023 · 1 comment

Comments

@LetThatSinkIn
Copy link

Hello,

Is it possible to force dark mode as the only theme that can possibly be displayed? Not a defect by any means, I just don't want my site presented in light mode - ever.

Thanks

@isubhampadhi56
Copy link

Under component folder there is a file Layout.js. I added a line after line 18 as below.
image
Basically it's uses a local storage variable theme to determine if dark mode enabled or light mode. Initially when you load the website there is no theme variable exist. The variable initiates when you click the change mode button. What i did i initialize the theme variable on website load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants