scss: fix the mark color contrast for dark theme
- Uses the main font color of the light theme for the mark color of the dark theme, to improve the contrast. - Uses the h1 color for the logo. Co-Authored-by: iGor milhit <igor@milhit.ch>dev
parent
264fc3480e
commit
fb053482cd
|
@ -28,15 +28,21 @@ tfoot td {
|
||||||
|
|
||||||
[data-theme=light],
|
[data-theme=light],
|
||||||
:root:not([data-theme=dark]) {
|
:root:not([data-theme=dark]) {
|
||||||
--logo-color: var(--pico-color);
|
--logo-color: var(--pico-h1-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (prefers-color-scheme: dark) {
|
@media only screen and (prefers-color-scheme: dark) {
|
||||||
:root:not([data-theme]) {
|
:root:not([data-theme]) {
|
||||||
--logo-color: var(--pico-color);
|
--logo-color: var(--pico-h1-color);
|
||||||
|
// Use the pico color of the light theme to improve contrast
|
||||||
|
// TODO: Explore if a variable could be used here
|
||||||
|
--pico-mark-color: #373c44;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme=dark] {
|
[data-theme=dark] {
|
||||||
--logo-color: var(--pico-color);
|
--logo-color: var(--pico-h1-color);
|
||||||
|
// Use the pico color of the light theme to improve contrast
|
||||||
|
// TODO: Explore if a variable could be used here
|
||||||
|
--pico-mark-color: #373c44;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue