From 314651e910347bc5bf001e548f4dc29b8d5320c4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Nov 2025 15:39:23 +0000 Subject: [PATCH 1/2] Add dark/light mode theme switcher with localStorage persistence - Added CSS variables for light and dark themes - Implemented theme toggle buttons in both desktop sidebar and mobile menu - Added JavaScript logic to switch themes and persist choice in localStorage - Applied dark theme styling to all UI elements including code blocks - Theme is applied immediately on page load to prevent flash --- templates/base.html | 270 ++++++++++++++++++++++++++++++++++---------- templates/chat.html | 21 ++-- 2 files changed, 224 insertions(+), 67 deletions(-) diff --git a/templates/base.html b/templates/base.html index b631902..5550ebd 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,16 +35,82 @@