From 81aa09d7eb80d53064167888fef95284d067f864 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 16 Feb 2026 14:03:21 +0100 Subject: [PATCH] updated fallback theme --- frontend/src/theme.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/theme.ts b/frontend/src/theme.ts index 815325d..9a3218a 100644 --- a/frontend/src/theme.ts +++ b/frontend/src/theme.ts @@ -17,7 +17,14 @@ export const getTheme = (mode: CatppuccinTheme) => { pink: { hex: '#db7093' }, // Pale Violet Red (Secondary) }; } else { - palette = flavors[mode].colors; + const flavor = flavors[mode]; + if (flavor) { + palette = flavor.colors; + } else { + // Fallback to mocha if theme name is invalid + palette = flavors['mocha'].colors; + mode = 'mocha'; + } } const themeOptions: ThemeOptions = {