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

BlogSettings theme option is only ever effectively auto, light and dark do not work #148

Open
tdharris opened this issue Aug 8, 2024 · 0 comments

Comments

@tdharris
Copy link

tdharris commented Aug 8, 2024

It seems that effective theme is always auto even when explicitly setting theme to dark or light within the BlogSettings :

  • Set the BlogSettings to dark theme, then set the OS Style Theme to Light and the page loads with light, not dark :

    theme: "dark"
  • Set the BlogSettings to light theme, then set the OS Style Theme to Dark and the page loads with dark, not light :

    theme: "light"

Is this expected? Is there some way to fix or override with unocss settings to strictly have either dark or light be applied regardless of the OS Style Preference?

Seems related to this line, not sure I see anywhere where settings?.theme is used:

html.use(ColorScheme("auto"));

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

1 participant