By the way, if your website only uses minimal styling, or no styles at all, consider setting
<meta name="color-scheme" content="light dark" />
in the <head>. This allows browsers to also use their default dark mode styles on your page, without you having to do anything. If you don't, it'll always be light mode.
For example, these screenshots show this minimal document and how it will be rendered when the browser is set to light or dark mode.
#HTML #DarkMode #WebDev #WebDesign #accessibility