initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export const useTheme = () => {
|
||||
const accent = useCookie('accent', { default: () => 'violet', maxAge: 60 * 60 * 24 * 365 })
|
||||
const neutral = useCookie('neutral', { default: () => 'zinc', maxAge: 60 * 60 * 24 * 365 })
|
||||
// disable hinting by default
|
||||
const hinting = useCookie('hinting', { default: () => '0', maxAge: 60 * 60 * 24 * 365 })
|
||||
|
||||
return {
|
||||
accent,
|
||||
neutral,
|
||||
hinting,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user