From b9171acd0766a318e10dccfa10a004c88f882945 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 6 Nov 2024 14:42:15 +0100 Subject: [PATCH] Add dark theme with toggle (fixes #49) --- src/frontend/app.rs | 2 +- src/frontend/components/nav.rs | 13 +++++++++++-- tailwind.config.js | 21 +++++++++++++++++++-- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/src/frontend/app.rs b/src/frontend/app.rs index 603f653..71ee801 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -92,7 +92,7 @@ pub fn App() -> impl IntoView { view! { - + <> diff --git a/src/frontend/components/nav.rs b/src/frontend/components/nav.rs index 389b791..58b78f1 100644 --- a/src/frontend/components/nav.rs +++ b/src/frontend/components/nav.rs @@ -22,7 +22,7 @@ pub fn Nav() -> impl IntoView { let (search_query, set_search_query) = create_signal(String::new()); view! { -