diff --git a/examples/server/public/index.html b/examples/server/public/index.html
index 2b403244a..e9e590711 100644
--- a/examples/server/public/index.html
+++ b/examples/server/public/index.html
@@ -58,7 +58,6 @@
-
Theme
@@ -66,14 +65,24 @@
-
@@ -204,8 +213,9 @@
isGenerating: false,
pendingMsg: null, // the on-going message from assistant
abortController: null,
+ selectedTheme: localStorage.getItem('theme') || 'auto',
// const
- themes: ['light', 'dark', 'retro', 'cyberpunk', 'aqua', 'valentine', 'synthwave'],
+ themes: ['light', 'dark', 'cupcake', 'bumblebee', 'emerald', 'corporate', 'synthwave', 'retro', 'cyberpunk', 'valentine', 'halloween', 'garden', 'forest', 'aqua', 'lofi', 'pastel', 'fantasy', 'wireframe', 'black', 'luxury', 'dracula', 'cmyk', 'autumn', 'business', 'acid', 'lemonade', 'night', 'coffee', 'winter', 'dim', 'nord', 'sunset'],
}
},
computed: {},
@@ -218,6 +228,15 @@
resizeObserver.observe(pendingMsgElem);
},
methods: {
+ setSelectedTheme(theme) {
+ if (theme === 'auto') {
+ this.selectedTheme = 'auto';
+ localStorage.removeItem('theme');
+ } else {
+ this.selectedTheme = theme;
+ localStorage.setItem('theme', theme);
+ }
+ },
newConversation() {
if (this.isGenerating) return;
this.viewingConvId = Conversations.getNewConvId();