Skip to content

Allow always light theme #200

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

Open
rochacbruno opened this issue Jan 10, 2025 Discussed in #196 · 2 comments
Open

Allow always light theme #200

rochacbruno opened this issue Jan 10, 2025 Discussed in #196 · 2 comments
Labels
enhancement New feature or request front-end good first issue Good for newcomers MEDIUM

Comments

@rochacbruno
Copy link
Owner

Discussed in #196

Originally posted by sjoerdev January 8, 2025
can i make it so its always light theme and make it so it will never switch to dark theme?

@rochacbruno rochacbruno added enhancement New feature or request good first issue Good for newcomers MEDIUM front-end labels Jan 21, 2025
@vardbabayan
Copy link

vardbabayan commented Feb 19, 2025

Hi!
I want to clarify about the implementation
Do you expect a solution to be like this?

  • there is a special flag that indicates that user wants only one theme, either light or dark
    • if flag is provided, the generated site does not have the toggle button to switch themes
    • if flag is not provided, you are able to switch themes

@rochacbruno
Copy link
Owner Author

@vardbabayan

On the config user would be able to provide

extra:
  colorscheme: dracula
  colormode: light
  colormodetoggle: false

The theme can on the html read the
site_data.extra and based on those
settings

  • enable/disable the toggle button
  • force a colormode

not sure of this will require JS, because
the current CSS colorschemes are based on the
media query for the selected mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request front-end good first issue Good for newcomers MEDIUM
Projects
None yet
Development

No branches or pull requests

2 participants