Add color palette for backdrop

The backdrop element doesn't inherit from anything. So we'll have to
manually add one to all of them.
This commit is contained in:
Gabriel Arazas 2023-03-06 23:22:34 +08:00
parent 0ddcb12058
commit b8ff9e866f

View File

@ -91,19 +91,19 @@
{{- if eq $name "_light" }}
@media (prefers-color-scheme: light) {
:root {
:root, ::backdrop {
@include createColorScheme
}
}
{{- else if eq $name "_dark" }}
@media (prefers-color-scheme: dark) {
:root {
:root, ::backdrop {
@include createColorScheme
}
}
{{- end }}
[data-theme="{{ .scheme }}"]:root {
[data-theme="{{ .scheme }}"]:root, [data-theme="{{ .scheme }}"]::backdrop {
@include createColorScheme;
}
{{- end }}