fix: tweaking color contrast defaults

This commit is contained in:
D. Moonfire 2024-02-24 12:14:41 -06:00
parent d807a0b4ac
commit 82172170cf
2 changed files with 17 additions and 1 deletions

View file

@ -5,7 +5,7 @@
format:
treefmt
just --fmt --unstable
prettier src/*.mjs --write
prettier src/*.mjs src/*.postcss --write
format-dist:
prettier dist/*.css --write

View file

@ -7,6 +7,14 @@
@mixin theme 9, 1;
}
[data-prefers-contrast="more"] {
@mixin theme 9, 0;
}
[data-prefers-contrast="less"] {
@mixin theme 9, 2;
}
@media (prefers-color-scheme: light) {
:root {
@mixin theme 9, 1;
@ -17,6 +25,14 @@
:root {
@mixin theme 0, 8;
}
[data-prefers-contrast="more"] {
@mixin theme 0, 9;
}
[data-prefers-contrast="less"] {
@mixin theme 0, 7;
}
}
[data-prefers-color-scheme="light"] {