personal-website/style.css
2023-04-02 21:37:35 +02:00

73 lines
1.1 KiB
CSS

:root {
--white-neutral: #f4f4f9;
--white-hover: #ececff;
--black-neutral: #1a1a1c;
--black-hover: #282833;
--accent: #7a7a99;
--primary: var(--black-neutral);
--background: var(--white-neutral);
--hover-background: var(--white-hover);
}
body {
color: var(--primary);
background-color: var(--background);
padding: 3ch;
max-width: 80ch;
margin: 0 auto;
font-family: system-ui;
line-height: 1.6;
}
ul {
list-style-type: "-";
padding-left: 1.5em;
}
li {
padding-left: 0.25em;
}
h3 {
line-height: 1.4;
font-weight: normal;
font-size: 1.2rem;
margin: 1.2rem 0;
}
a {
color: inherit;
}
h2 {
line-height: 1.2;
font-size: 1.44rem;
font-weight: normal;
margin: 1.44rem 0;
}
h1 {
line-height: 1.0;
font-weight: normal;
font-size: 1.73rem;
margin: 1.73rem 0;
}
@media (prefers-color-scheme: light) {
:root {
--primary: var(--black-neutral);
--background: var(--white-neutral);
--hover-background: var(--white-hover);
}
}
@media (prefers-color-scheme: dark) {
:root {
--primary: var(--white-neutral);
--background: var(--black-neutral);
--hover-background: var(--black-hover);
}
}