New Themes

This commit is contained in:
2026-10-03 21:32:57 +02:00
parent a1346c98b1
commit 5a6fc7f976
6 changed files with 467 additions and 72 deletions
+10 -2
View File
@@ -1,9 +1,17 @@
export type ThemeName = 'standard' | 'discord' | 'cyberpunk' | 'spring' | 'terminal' | 'infoseer' | 'homebrew' | 'florense' | 'kawi-green' | 'clonz' | 'clawmorphism' | 'realmorphism' | 'amber' | 'neo' | 'neo-pink' | 'neo-mint'
export const THEME_NAMES = ['standard', 'discord', 'cyberpunk', 'spring', 'terminal', 'infoseer', 'homebrew', 'florense', 'kawi-green', 'clonz', 'clawmorphism', 'realmorphism', 'amber', 'sunny-sprout', 'spotify', 'nordic', 'ss', 'amethyst-haze', 'deep-wine', 'my-claude', 'neo'] as const
export type ThemeName = typeof THEME_NAMES[number]
export function useTheme() {
return useCookie<ThemeName>('color-mode', {
const theme = useCookie<ThemeName>('color-mode', {
default: () => 'standard',
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax',
})
if (!THEME_NAMES.includes(theme.value)) {
theme.value = 'standard'
}
return theme
}