mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
updated fallback theme
This commit is contained in:
1 parent
3cfdc29f11
commit
81aa09d7eb
1 file changed
+8
-1
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user