You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The design system doesn’t appear to support the prefers-color-scheme: dark CSS media feature. Not sure if this is on the roadmap but would be a nice feature, though I know it’s not a trivial update.
I suppose one approach would be to create alternate $theme-colors-mozilla and $theme-colors-firefox maps for dark mode, then create CSS vars for them like in the example above and have the get-theme() function reference the CSS vars instead of hex codes. I think that would avoid having to refactor everything but it would limit browser support.
Steps to reproduce
Enable dark mode.
Expected result
Theme colors should update to dark background with light text.
Actual result
Nothing happens.
Environment
All
The text was updated successfully, but these errors were encountered:
Description
The design system doesn’t appear to support the
prefers-color-scheme: dark
CSS media feature. Not sure if this is on the roadmap but would be a nice feature, though I know it’s not a trivial update.Here’s a simple example showing the basic idea:
I suppose one approach would be to create alternate
$theme-colors-mozilla
and$theme-colors-firefox
maps for dark mode, then create CSS vars for them like in the example above and have theget-theme()
function reference the CSS vars instead of hex codes. I think that would avoid having to refactor everything but it would limit browser support.Steps to reproduce
Enable dark mode.
Expected result
Theme colors should update to dark background with light text.
Actual result
Nothing happens.
Environment
All
The text was updated successfully, but these errors were encountered: