mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
simplified color scheme selection
This commit is contained in:
@@ -1,32 +1,15 @@
|
|||||||
@import "code-light.css" (prefers-color-scheme: light);
|
@import "code-light.css" (prefers-color-scheme: light);
|
||||||
@import "code-dark.css" (prefers-color-scheme: dark);
|
@import "code-dark.css" (prefers-color-scheme: dark);
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
|
||||||
:root {
|
:root {
|
||||||
--background: #FFFFFF;
|
color-scheme: light dark;
|
||||||
--background-dim: #f5f7f9;
|
--background: light-dark(#FFFFFF, #2B363B);
|
||||||
|
--background-dim: light-dark(#f5f7f9, #2F3C42);
|
||||||
--foreground: #2B303A;
|
--foreground: light-dark(#2B303A, #f0f2f3);
|
||||||
--foreground-dim: #576379;
|
--foreground-dim: light-dark(#576379, #d5d5d5);
|
||||||
--foreground-heavy: #191C22;
|
--foreground-heavy: light-dark(#191C22, #f2f4f5);
|
||||||
|
--primary-color: light-dark(#375287, #A1C5FF);
|
||||||
--primary-color: #375287;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--background: #2B363B;
|
|
||||||
--background-dim: #2F3C42;
|
|
||||||
|
|
||||||
--foreground: #f0f2f3;
|
|
||||||
--foreground-dim: #d5d5d5;
|
|
||||||
--foreground-heavy: #f2f4f5;
|
|
||||||
|
|
||||||
--primary-color: #A1C5FF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|||||||
Reference in New Issue
Block a user