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 {
@media (prefers-color-scheme: dark) {
--text: #e0def4;
--love: #eb6f92;
--gold: #f6c177;
@ -28,6 +29,31 @@
--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 {
background-image: linear-gradient(to bottom right, var(--overlay), var(--base));
}
@ -38,20 +64,22 @@ h3,
h4 {
font-family: League, Verdana, Geneva, Tahoma, sans-serif;
color: var(--gold);
text-shadow: 0.8rem 0.8rem var(--base);
margin: 0px;
}
h1 {
font-size: 8rem;
text-shadow: var(--text-shadow);
}
h2 {
font-size: 6rem;
text-shadow: var(--text-shadow);
}
h3 {
font-size: 4rem;
color: var(--love);
color: var(--iris);
}
main {
@ -59,16 +87,21 @@ main {
font-size: 2rem;
width: 60%;
margin: auto;
font-weight: 600;
color: var(--text);
}
p,
ul {
section {
margin-bottom: 8rem;
}
.container {
background-color: var(--surface);
border-radius: 10rem;
padding: 5rem;
box-shadow: 1rem 1rem var(--base);
box-shadow: 1rem 1rem var(--shadow-color);
}
figcaption {
@ -76,7 +109,7 @@ figcaption {
font-size: 2em;
font-weight: 1000;
color: var(--iris);
text-shadow: 0.08em 0.08em var(--base);
/* text-shadow: var(--text-shadow); */
}
b {