LemmyQuest@lemm.ee to Ask Lemmy@lemmy.world · 10 months ago(Asking as someone who wants to create website) How to make website support dark mode without javascript?lockmessage-squaremessage-square9fedilinkarrow-up126arrow-down14
arrow-up122arrow-down1message-square(Asking as someone who wants to create website) How to make website support dark mode without javascript?lockLemmyQuest@lemm.ee to Ask Lemmy@lemmy.world · 10 months agomessage-square9fedilink
minus-squareLeraje@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4arrow-down1·edit-210 months agoIf you’re not wanting to use JS then you’re reliant on the users browser supporting prefers-color-scheme (caniuse) or forcing them to reload the page.
If you’re not wanting to use JS then you’re reliant on the users browser supporting
prefers-color-scheme
(caniuse) or forcing them to reload the page.