d47081
1 year ago
4 changed files with 27 additions and 2 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
/* Adaptive color palette #19844 */ |
||||
|
||||
/* Default rules */ |
||||
* { |
||||
--color-text-red: hsl(0deg 100% 65%); |
||||
} |
||||
|
||||
:root { |
||||
color-scheme: light dark; |
||||
} |
||||
|
||||
/* Light corrections */ |
||||
@media (prefers-color-scheme: light) { |
||||
:root { |
||||
color-scheme: light; |
||||
} |
||||
} |
||||
|
||||
/* Dark corrections */ |
||||
@media (prefers-color-scheme: dark) { |
||||
:root { |
||||
color-scheme: dark; |
||||
} |
||||
} |
Loading…
Reference in new issue