From 0cd241c539733e0fd346f69a1c0c5420af7c116b Mon Sep 17 00:00:00 2001 From: Araozu Date: Wed, 1 May 2024 06:50:59 -0500 Subject: [PATCH] Fix styles on dark mode --- public/global.css | 4 ++++ src/pages/index.astro | 2 +- tailwind.config.mjs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/global.css b/public/global.css index 9711a13..29f523d 100644 --- a/public/global.css +++ b/public/global.css @@ -2,12 +2,16 @@ :root { --c-bg: #101010; --c-on-bg: #dedede; + + --c-bg-2: #18181b; } @media (prefers-color-scheme: light) { :root { --c-bg: #f5f5f5; --c-on-bg: #101010; + + --c-bg-2: white; } } diff --git a/src/pages/index.astro b/src/pages/index.astro index 53df2dd..a942f0b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -34,7 +34,7 @@ import Sidebar from "../components/Sidebar.astro";