Files
BRETT/app/composables/useTheme.ts
T
2026-10-03 20:07:49 +02:00

10 lines
394 B
TypeScript

export type ThemeName = 'standard' | 'discord' | 'cyberpunk' | 'spring' | 'terminal' | 'infoseer' | 'homebrew' | 'florense' | 'kawi-green' | 'clonz' | 'clawmorphism' | 'realmorphism' | 'amber' | 'neo' | 'neo-pink' | 'neo-mint'
export function useTheme() {
return useCookie<ThemeName>('color-mode', {
default: () => 'standard',
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax',
})
}