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

Disable dark mode #56

Closed
0x0f0f0f opened this issue Feb 9, 2024 · 8 comments
Closed

Disable dark mode #56

0x0f0f0f opened this issue Feb 9, 2024 · 8 comments

Comments

@0x0f0f0f
Copy link

0x0f0f0f commented Feb 9, 2024

Is there a way of enabling only light/dark mode?

@willfaught
Copy link
Owner

There was a long time ago, but I dropped it because it seemed like most people would want the matching mode. What's your use case for doing that?

@0x0f0f0f
Copy link
Author

There was a long time ago, but I dropped it because it seemed like most people would want the matching mode. What's your use case for doing that?

I'm making my friend's personal website and we would like to enforce light mode only.

@willfaught
Copy link
Owner

I meant what is the reason for having only light mode? I'd like to better understand your motivation. Wouldn't it look better at night in dark mode?

@willfaught
Copy link
Owner

Closing since there's no response. Please reopen if you have more to add.

@0x0f0f0f
Copy link
Author

I meant what is the reason for having only light mode? I'd like to better understand your motivation. Wouldn't it look better at night in dark mode?

It would look better, but I'm creating websites for customers which would only like the light theme.

@willfaught
Copy link
Owner

I added a paige.color_scheme config option in the latest version. This should address your need.

@0x0f0f0f
Copy link
Author

Is it v0.75.0? I've set

[paige]
color_scheme = "light"

In hugo.toml but it stays in dark mode.

@willfaught
Copy link
Owner

Yes, 75. I verified it works with the exampleSite in Safari and Chrome. Does that work for you? Be sure you don't have any browser extensions running that can affect the colors, like a dark mode extension.

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