修复dark mode

This commit is contained in:
tommy
2025-11-03 11:18:44 +08:00
parent 2e10decc71
commit d440517d49

View File

@@ -34,7 +34,8 @@ fn UiShowcase() -> Element {
rsx! {
section {
class: "ui-shell shadcn",
class: if dark_mode() { "ui-shell shadcn dark" } else { "ui-shell shadcn" },
"data-theme": if dark_mode() { "dark" } else { "light" },
div {
class: "ui-stack",
h2 { style: "font-size: 1.75rem; font-weight: 600;", "Shadcn primitives for Dioxus" }