dark mode

This commit is contained in:
andrzej 2024-05-24 12:50:57 +02:00
parent 71b2a700b5
commit ca271760eb
1 changed files with 52 additions and 19 deletions

View File

@ -11,6 +11,7 @@
} }
:root { :root {
@media (prefers-color-scheme: dark) {
--text: #e0def4; --text: #e0def4;
--love: #eb6f92; --love: #eb6f92;
--gold: #f6c177; --gold: #f6c177;
@ -26,6 +27,31 @@
--hl-low: #21202e; --hl-low: #21202e;
--hl-med: #403d52; --hl-med: #403d52;
--hl-high: #524f67; --hl-high: #524f67;
}
@media (prefers-color-scheme: light) {
--text: #575279;
--love: #b4637a;
--gold: #ea9d34;
--rose: #d7827e;
--pine: #286983;
--foam: #56949f;
--iris: #907aa9;
--base: #faf4ed;
--surface: #fffaf3;
--overlay: #f2e9e1;
--hl-low: #f4ede8;
--hl-med: #dfdad9;
--hl-high: #cecacd;
}
--shadow-color: rgba(0, 0, 0, 0.6);
--text-shadow: 0.04em 0.04em var(--shadow-color);
} }
body { body {
@ -38,20 +64,22 @@ h3,
h4 { h4 {
font-family: League, Verdana, Geneva, Tahoma, sans-serif; font-family: League, Verdana, Geneva, Tahoma, sans-serif;
color: var(--gold); color: var(--gold);
text-shadow: 0.8rem 0.8rem var(--base); margin: 0px;
} }
h1 { h1 {
font-size: 8rem; font-size: 8rem;
text-shadow: var(--text-shadow);
} }
h2 { h2 {
font-size: 6rem; font-size: 6rem;
text-shadow: var(--text-shadow);
} }
h3 { h3 {
font-size: 4rem; font-size: 4rem;
color: var(--love); color: var(--iris);
} }
main { main {
@ -59,16 +87,21 @@ main {
font-size: 2rem; font-size: 2rem;
width: 60%; width: 60%;
margin: auto; margin: auto;
font-weight: 600;
color: var(--text); color: var(--text);
} }
p, section {
ul { margin-bottom: 8rem;
}
.container {
background-color: var(--surface); background-color: var(--surface);
border-radius: 10rem; border-radius: 10rem;
padding: 5rem; padding: 5rem;
box-shadow: 1rem 1rem var(--base); box-shadow: 1rem 1rem var(--shadow-color);
} }
figcaption { figcaption {
@ -76,7 +109,7 @@ figcaption {
font-size: 2em; font-size: 2em;
font-weight: 1000; font-weight: 1000;
color: var(--iris); color: var(--iris);
text-shadow: 0.08em 0.08em var(--base); /* text-shadow: var(--text-shadow); */
} }
b { b {