Wrong `preferred_color_scheme` color scheme
See original GitHub issueAfter 664af3446ce13740130c9d62ab97fdccf5584a16, the preferred_color_scheme
looks incorrect:
It seems that this is caused by https://github.com/giscus/giscus/blob/664af3446ce13740130c9d62ab97fdccf5584a16/client.ts#L118
My browser version is Mozilla Firefox 106.0.5.
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
preferredColorScheme(_:) | Apple Developer Documentation
Use one of the values in ColorScheme with this modifier to set a preferred color scheme for the nearest enclosing presentation, like a...
Read more >How to implement a color scheme switch with the system ...
To accomplish this, you will need to store the user's display preference from a Bool to a custom enum. Then, from this custom...
Read more >prefers-color-scheme - CSS: Cascading Style Sheets | MDN
The prefers-color-scheme CSS media feature is used to detect if a user has requested light or dark color themes.
Read more >Reading and setting color scheme in SwiftUI - Nil Coalescing
Users can set a preferred color scheme to light or dark on their devices and when our apps use standard system colors in...
Read more >prefers-color-scheme: Hello darkness, my old friend - web.dev
The prefers-color-scheme media feature is used to detect if the user ... the right CSS and therefore avoid a flash of incorrect color...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did #785 fix it for you?
MDN - color-scheme
normal
: Use browser default. Not necesarily related to@media (prefers-color-scheme)
! This is idential tolight
in most browser settingslight
: Use light themedark
: Use dark themelight dark
: Use either of light or dark theme. The correct way to transparently pick up@media (prefers-color-scheme)
only light
: Disable “Auto Dark Theme” (Currently introduced in Chrome on Android, see Chrome Developers)