From 6aedb0980dff48cd1ee3308bedd8ae87e8922cf1 Mon Sep 17 00:00:00 2001 From: Nikita Korotaev <104270279+iambabyninja@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:15:52 +0500 Subject: [PATCH] add darkMode option (#4) --- index.html | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 26c9f53..6373e67 100644 --- a/index.html +++ b/index.html @@ -28,10 +28,9 @@ height: 100%; padding: 0; margin: 0; - background-color: #f8f9fa; display: flex; flex-direction: column; - font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; + font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } .container { @@ -91,6 +90,19 @@ margin-top: 0; text-align: center; } + + @media (prefers-color-scheme: dark) { + body { + background-color: #121212; + color: #ffffff; + } + #editor { + border: 1px solid #555; + } + #output { + border: 1px solid #555; + } + } @@ -109,7 +121,18 @@