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
|
@ -27,16 +27,22 @@ tfoot td {
|
|||
// Adapt the SVG logo color to the colorscheme
|
||||
|
||||
[data-theme=light],
|
||||
:root:not([data-theme=dark]) {
|
||||
--logo-color: var(--pico-color);
|
||||
:root:not([data-theme=dark]) {
|
||||
--logo-color: var(--pico-h1-color);
|
||||
}
|
||||
|
||||
@media only screen and (prefers-color-scheme: dark) {
|
||||
: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] {
|
||||
--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