feat: add dark theme

use prefers-color-scheme
main
sudo pacman -Syu 2022-07-14 12:38:17 +07:00
parent bd0b5f9fa0
commit 2b5a7f5f0e
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
3 changed files with 28 additions and 1 deletions

View File

@ -18,3 +18,7 @@ make
- https://motherfuckingwebsite.com/
- http://bettermotherfuckingwebsite.com/
- https://evenbettermotherfucking.website/
- https://thebestmotherfucking.website/
- https://perfectmotherfuckingwebsite.com/
- https://primer.style/design/foundations/color
- https://primer.style/primitives/colors

View File

@ -1 +1 @@
body{font-family:recursive,sans-serif;font-variation-settings:"MONO" 0,"CASL" 1;margin:5% auto;max-width:75%;line-height:1.8}code{font-family:recursive,monospace;font-variation-settings:"MONO" 1,"CASL" 1}
body{font-family:recursive,sans-serif;font-variation-settings:"MONO" 0,"CASL" 1;margin:5% auto;max-width:75%;line-height:1.8;color:#24292f;background:#fff}code{font-family:recursive,monospace;font-variation-settings:"MONO" 1,"CASL" 1;display:inline-block;background:#f6f8fa}a{color:#0969da}@media(prefers-color-scheme:dark){body{color:#c9d1d9;background:#0d1117}code{background:#161b22}a{color:#58a6ff}}

View File

@ -4,9 +4,32 @@ body {
margin: 5% auto;
max-width: 75%;
line-height: 1.8;
color: #24292f;
background: #ffffff;
}
code {
font-family: "Recursive", monospace;
font-variation-settings: "MONO" 1, "CASL" 1;
display: inline-block;
background: #f6f8fa;
}
a {
color: #0969da;
}
@media (prefers-color-scheme: dark) {
body {
color: #c9d1d9;
background: #0d1117;
}
code {
background: #161b22;
}
a {
color: #58a6ff;
}
}