]> gitweb.ps.run Git - chirp/blobdiff - src/main.zig
change colors
[chirp] / src / main.zig
index 24bdc51a2cbee1f424e54154735844248ddd8e1a..460ea4cbb9319e18d4cc8b77d1e16c6bb176481c 100644 (file)
@@ -616,11 +616,14 @@ fn write_start(res: *http.Response) !void {
         \\<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>&#128035;</text></svg>">
         \\<meta name="viewport" content="width=device-width, initial-scale=1.0" />
         \\<style>
+        \\  :root {
+        \\    color-scheme: light dark;
+        \\  }
         \\  form {
         \\    display: inline-block;
         \\  }
         \\  body {
-        \\    margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#444;padding:0 10px;
+        \\    margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;padding:0 10px;
         \\  }
         \\  h1,h2,h3{line-height:1.2}
         \\</style>