forcing light mode with autoSwitchAppearance #148
benmatheson
started this conversation in
General
Replies: 1 comment 2 replies
-
Thanks for picking up on this one @benmatheson. This is not the intended behaviour so this is a bug. The params you are using are the correct ones for the behaviour you seek but there's a logic error that is preventing it from working. I'll open an issue for this and fix it in the next update. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I love Congo and was very excited to upgrade to version 2.
I'm trying to force "light mode" but am experiencing the page switching to dark mode on a Mac device that has dark mode in the OS settings. I'm wondering if it's possible to override the OS settings, or whether those will prevail. A live version is here.
My params.toml looks like this:
defaultAppearance = "light" autoSwitchAppearance = false showAppearanceSwitcher = true
When I develop locally and view it on localhost, it indeed appears in light mode. but upon deploying, it switches to dark mode on my Mac with OS preferences for dark mode.
I'm hoping that I'm reading this page correctly and using default and autoSwitchAppearance right.
When I change my Mac OS preferences from light to dark, it switches to light mode. Thanks for any insights!!!
Beta Was this translation helpful? Give feedback.
All reactions