Skip to content

Commit 4fade8f

Browse files
authored
Merge pull request #70 from KlingonDragon/patch-1
Simple dark mode
2 parents bf34875 + e78e60e commit 4fade8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
:root {
2+
color-scheme: light dark;
3+
}
14
/* horizontal flex */
25
body > div {
36
position: absolute;
@@ -44,7 +47,7 @@ input {
4447
}
4548

4649
.container {
47-
background-color: #eee;
50+
background-color: light-dark(#eee, #222);
4851
border-radius: 1em;
4952
margin: 1em;
5053
}
@@ -61,4 +64,4 @@ a.unimportant-link:link, a.unimportant-link:visited {
6164
noscript {
6265
font-weight: bold;
6366
color: darkorange;
64-
}
67+
}

0 commit comments

Comments
 (0)