Skip to content

Commit

Permalink
Add dark mode and light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Oct 7, 2023
1 parent 84ae934 commit eeebbdd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
src: url("NotoSans-Regular.ttf") format("truetype");
}

@media (prefers-color-scheme: dark) {
body {
background-color: #202124;
color: #BDC1C6;
}
}

@media (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
}
}

body {
font-family: "NotoSans-Regular";
margin: 0;
Expand Down

0 comments on commit eeebbdd

Please sign in to comment.