Dark mode broken with shadow DOM - :root
specifier is missing in dark.css
#1842
Labels
bug
Things that aren't working right in the library.
Describe the bug
Dark mode is broken (e.g. when used in a shadow DOM framework, such as SvelteKit).
Inspecting the sources,
light.css
has:root
specifier on 1st line, butdark.css
does not have it.To Reproduce
diff dist/themes/light.css dist/themes/dark.css | head -n 5
Demo
n/a
Screenshots
n/a
Browser / OS
n/a
Additional information
Inserting
:root,
as 1st line intodark.css
fixes the problem.The text was updated successfully, but these errors were encountered: