@[email protected] to Ask Lemmy • 8 months ago(Asking as someone who wants to create website) How to make website support dark mode without javascript?lockmessage-square9fedilinkarrow-up127arrow-down14
arrow-up123arrow-down1message-square(Asking as someone who wants to create website) How to make website support dark mode without javascript?lock@[email protected] to Ask Lemmy • 8 months agomessage-square9fedilink
minus-squareLerajelinkfedilinkEnglish5•edit-28 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.