diff --git a/web/src/theme.ts b/web/src/theme.ts index 22e5fe1..547f678 100644 --- a/web/src/theme.ts +++ b/web/src/theme.ts @@ -11,10 +11,7 @@ type ThemeType = | 'catppuccin-mocha' | 'catppuccin-macchiato' | 'catppuccin-frappe' - | 'catppuccin-latte' - | 'wood-light' - | 'wood-dark' - | 'wood-mahogany'; + | 'catppuccin-latte'; const DEFAULT_THEME: ThemeType = 'tokyo-night'; const THEME_STORAGE_KEY = 'theme'; @@ -22,35 +19,11 @@ const TOKEN_STORAGE_KEY = 'token'; // Apply theme to document body const applyTheme = (theme: string): void => { - // Handle wood themes with gradients - if (theme.startsWith('wood-')) { - document.body.className = `theme-${theme}`; - - let woodGradient = ''; - switch (theme) { - case 'wood-light': - woodGradient = 'linear-gradient(135deg, #deb887 0%, #d2a679 50%, #c9975b 100%)'; - break; - case 'wood-dark': - woodGradient = 'linear-gradient(135deg, #8b7355 0%, #6b5344 50%, #5a4636 100%)'; - break; - case 'wood-mahogany': - woodGradient = 'linear-gradient(135deg, #a0522d 0%, #8b4513 50%, #7a3c10 100%)'; - break; - default: - woodGradient = ''; - } - - document.body.style.background = woodGradient; - document.body.style.backgroundSize = 'cover'; - document.body.style.backgroundAttachment = 'fixed'; - } else { - // Apply regular theme - document.body.className = `theme-${theme}`; - document.body.style.background = ''; - document.body.style.backgroundSize = ''; - document.body.style.backgroundAttachment = ''; - } + // Apply regular theme only + document.body.className = `theme-${theme}`; + document.body.style.background = ''; + document.body.style.backgroundSize = ''; + document.body.style.backgroundAttachment = ''; localStorage.setItem(THEME_STORAGE_KEY, theme); };