Published on
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 57bf4cf..c7bd350 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -13,7 +13,7 @@ const articles = (await getCollection("blog")).sort(
---
-
+
{
articles.map((article) => (
diff --git a/src/styles/global.css b/src/styles/global.css
index 527607b..8b48d0c 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -6,6 +6,8 @@
--tertiary-background-color: hsl(0 0% 90%);
--text-color: hsl(0 0% 10%);
--accent-color: #1e40af;
+
+ color-scheme: light;
}
@media (prefers-color-scheme: dark) {
@@ -20,6 +22,26 @@
}
}
+html.Light {
+ --background-color: hsl(0 0% 100%);
+ --secondary-background-color: hsl(0 0% 95%);
+ --tertiary-background-color: hsl(0 0% 90%);
+ --text-color: hsl(0 0% 10%);
+ --accent-color: #1e40af;
+
+ color-scheme: light;
+}
+
+html.Dark {
+ --background-color: hsl(0 0% 10%);
+ --secondary-background-color: hsl(0 0% 15%);
+ --tertiary-background-color: hsl(0 0% 20%);
+ --text-color: hsl(0 0% 90%);
+ --accent-color: #93c5fd;
+
+ color-scheme: dark;
+}
+
html {
scroll-behavior: smooth;
}