LemmyQuest@lemm.ee to Ask Lemmy@lemmy.world · 8 个月前(Asking as someone who wants to create website) How to make website support dark mode without javascript?lockmessage-squaremessage-square9fedilinkarrow-up126
arrow-up126message-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 · 8 个月前message-square9fedilink
minus-squareLerajelinkfedilinkEnglisharrow-up7·edit-28 个月前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.
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.