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
I would like to propose simplifying the application of variables for the Dark Scheme. Instead of having to define variables twice due to the media query for the user's preference and the case for forced dark scheme, we could use the light-dark color function. For forced elements, we could set color-scheme based on the data-theme attribute.
Browser support is solid at this point, unless folks are stuck on older versions (pre-2024). I've used it on a couple of projects with no issues.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to propose simplifying the application of variables for the Dark Scheme. Instead of having to define variables twice due to the media query for the user's preference and the case for forced dark scheme, we could use the light-dark color function. For forced elements, we could set
color-scheme
based on thedata-theme
attribute.Browser support is solid at this point, unless folks are stuck on older versions (pre-2024). I've used it on a couple of projects with no issues.
Beta Was this translation helpful? Give feedback.
All reactions