Skip to content

Commit

Permalink
Add a minimum viable dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danott committed Jan 14, 2024
1 parent 4592b51 commit 14e7653
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

body {
margin: 4rem auto;
max-width: 40rem;
max-width: 44rem;
line-height: 1.6;
font-family: monospace;
font-size: 20px;
color: #444;
padding: 0 1rem;
Expand All @@ -19,3 +20,9 @@ img {
max-width: 100%;
height: auto;
}

@media (prefers-color-scheme: dark) {
html {
filter: invert(90%) hue-rotate(25deg);
}
}

0 comments on commit 14e7653

Please sign in to comment.