Open argyleink opened 3 years ago
Would like to help with this issue too, but it seems it's not possible to overwrite the prefers-color-scheme
value by using javascript. 🤔
Would like to help with this issue too, but it seems it's not possible to overwrite the
prefers-color-scheme
value by using javascript. 🤔
hi @zeaccs! thanks for expressing interest in contributing 🎉
here's a summary of what needs to happen to get this feature:
color-scheme="light"
attribute which will override autolocalhost:3000
and then toggling light/dark as the color-scheme attributeit looks like a lot, but i think following what colormode has done will get your 90% of the way. there's a paved path you can piggy back on, since there's a few angles to synchronize and orchestrate.
let me know if you want to chat about this in slack or gitter, i can provide more help as/if you get blocked 👍🏻
@argyleink Yes, slack please.
Instead of only relying on the system preference, it'd be nice to offer an extension preference for theme. Use same logic as color syntax, but allow dark/light/auto.