Files
veridian/app/composables/useTheme.ts
T
2026-01-11 05:04:29 -06:00

13 lines
423 B
TypeScript

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,
}
}