• droning_in_my_ears@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    8 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
      ·
      8 months ago

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