From af6e4eb90452ed54e6201a38e8518317744af673 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 1 Jan 2024 16:05:05 -0800 Subject: [PATCH] feat: rosepine custom theme --- src/app.html | 3 + src/lib/components/chat/Messages.svelte | 2 +- src/lib/components/chat/SettingsModal.svelte | 89 ++++++++++++------ src/lib/components/layout/Navbar.svelte | 2 +- src/lib/stores/index.ts | 3 +- src/routes/(app)/+page.svelte | 4 +- src/routes/(app)/c/[id]/+page.svelte | 4 +- .../(app)/modelfiles/create/+page.svelte | 2 +- src/routes/(app)/modelfiles/edit/+page.svelte | 2 +- src/routes/+layout.svelte | 5 +- static/themes/rosepine.css | 91 +++++++++++++++++++ 11 files changed, 168 insertions(+), 39 deletions(-) create mode 100644 static/themes/rosepine.css diff --git a/src/app.html b/src/app.html index e5ed6aeb..c07c5a69 100644 --- a/src/app.html +++ b/src/app.html @@ -12,6 +12,9 @@ (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches) ) { document.documentElement.classList.add('light'); + } else if (localStorage.theme === 'rose') { + document.documentElement.classList.add('dark'); + document.documentElement.classList.add(localStorage.theme); } else { document.documentElement.classList.add('dark'); } diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 8669f97b..2a388fd2 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -1,7 +1,7 @@