fix: tweaking color contrast defaults
This commit is contained in:
parent
d807a0b4ac
commit
82172170cf
2 changed files with 17 additions and 1 deletions
2
Justfile
2
Justfile
|
@ -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
|
||||
|
|
|
@ -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"] {
|
||||
|
|
Loading…
Reference in a new issue