add css fallback for themes

This commit is contained in:
Akis 2023-01-05 14:39:42 +02:00
parent be6c2da8e2
commit 310b7ac0c6
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
2 changed files with 15 additions and 13 deletions

View File

@ -126,7 +126,7 @@
}
.links > * {
@apply p-2 cursor-pointer text-text decoration-none transition-color duration-25 text-sm font-500 flex items-center hover\:text-accent;
@apply p-2 cursor-pointer text-text decoration-none transition-color duration-250 text-sm font-500 flex items-center hover\:text-accent;
}
.icon > span {

View File

@ -4,10 +4,22 @@
font-display: swap;
}
html {
html, html.light {
--accent: #00a584;
--accent-translucent: #00a58498;
--font-primary: "JetBrains Mono", monospace;
--primary: #ffffff;
--secondary: #eeeeee;
--tertiary: #939393;
--text: #444444;
--grey: #cecece;
--alt: #ddd;
--alt-text: #333;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
html {
--primary: #151515;
--secondary: #252525;
--tertiary: #353535;
@ -17,16 +29,6 @@ html {
--alt-text: #ddd;
color-scheme: dark;
}
html.light {
--primary: #ffffff;
--secondary: #eeeeee;
--tertiary: #939393;
--text: #444444;
--grey: #cecece;
--alt: #ddd;
--alt-text: #333;
color-scheme: light;
}
body {