Experiment with CSS filter for inline-colors

Inside darker inputs, some colors like dark blue will be hard to read, so we could try to improve text-color contrast with global adjustments depending on the theme.
This commit is contained in:
Matthias Metelka 2022-08-16 22:39:39 +02:00
parent bcf8992a9d
commit d480e5ce5a

View file

@ -18,6 +18,15 @@ p {
display: none; display: none;
} }
/* Nudge users towards using brighter colors,
so they are more readable in dark themes */
span[style*="color"] {
filter: brightness(0.8);
}
:host(.night-mode) { :host(.night-mode) {
@include scrollbar.night-mode; @include scrollbar.night-mode;
span[style*="color"] {
filter: brightness(1.2);
}
} }