updated fallback theme

This commit is contained in:
nvrl committed 2026-02-16 14:03:21 +01:00
1 parent 3cfdc29f11
commit 81aa09d7eb
1 file changed
+8 -1
+8 -1
View File
@@ -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 = {