More Themes

This commit is contained in:
2025-11-29 08:20:13 +00:00
parent c32505cfca
commit e02fdf59f4
7 changed files with 455 additions and 184 deletions

View File

@@ -5,8 +5,11 @@ import { type ThemeColorMap, defaultColorMap } from '$lib/components/tui/utils';
// Import theme JSON files
import archTheme from '$lib/assets/themes/arch.theme.json';
import catppuccinTheme from '$lib/assets/themes/catppuccin.theme.json';
import wintryTheme from '$lib/assets/themes/wintry.theme.json';
import roseTheme from '$lib/assets/themes/rose.theme.json';
import cerberusTheme from '$lib/assets/themes/cerberus.theme.json';
export type ColorTheme = 'arch' | 'catppuccin';
export type ColorTheme = 'arch' | 'catppuccin' | 'wintry' | 'rose' | 'cerberus';
export type Mode = 'dark' | 'light';
// Theme JSON structure
@@ -42,7 +45,10 @@ export interface ThemeColors {
// Load themes from JSON files
const themes: Record<ColorTheme, ThemeJson> = {
arch: archTheme as ThemeJson,
catppuccin: catppuccinTheme as ThemeJson
catppuccin: catppuccinTheme as ThemeJson,
wintry: wintryTheme as ThemeJson,
rose: roseTheme as ThemeJson,
cerberus: cerberusTheme as ThemeJson
};
// Export themes for external access