LemmyQuest@lemm.ee to Ask Lemmy@lemmy.world · 8 months ago(Asking as someone who wants to create website) How to make website support dark mode without javascript?lockmessage-squaremessage-square9fedilinkarrow-up127arrow-down14
arrow-up123arrow-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 · 8 months agomessage-square9fedilink
minus-squaredroning_in_my_ears@lemmy.worldlinkfedilinkarrow-up2arrow-down2·edit-28 months agoYou can style both dark mode and light mode with CSS but the question is how will you toggle between them? A button? Then you need JavaScript
minus-squareZak@lemmy.worldlinkfedilinkarrow-up5·8 months agoThe user can toggle their operating system’s setting. During development, the developer can do it in their browser’s dev tools.
You can style both dark mode and light mode with CSS but the question is how will you toggle between them? A button? Then you need JavaScript
The user can toggle their operating system’s setting. During development, the developer can do it in their browser’s dev tools.