use crate::components::{Demo, DemoCode}; use leptos::*; use prisms::highlight_str; use thaw::*; #[component] pub fn ThemePage() -> impl IntoView { let customize_theme = create_rw_signal(Theme::light()); let on_customize_theme = move |_| { customize_theme.update(|theme| { theme.common.color_primary = "#f5222d".to_string(); theme.common.color_primary_hover = "#ff4d4f".to_string(); theme.common.color_primary_active = "#cf1322".to_string(); }); }; view! {
"You can use GlobalStyle to sync common global style to the body element."
"Name" | "Type" | "Default" | "Description" |
---|---|---|---|
"theme" | "RwSignal |
"Theme." |