forked from BRETT/BRETT
Initial Commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user