• droning_in_my_ears@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    3 months ago

    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

    • Zak@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 months ago

      The user can toggle their operating system’s setting. During development, the developer can do it in their browser’s dev tools.