From b8ff9e866f7b18216832a962a72efac59e2b8997 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 6 Mar 2023 23:22:34 +0800 Subject: [PATCH] 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. --- assets/templates/theme.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/templates/theme.scss b/assets/templates/theme.scss index b23ee38..e4fe929 100644 --- a/assets/templates/theme.scss +++ b/assets/templates/theme.scss @@ -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 }}