Files
dahoam/src/lib/clock.ts
T
niklas 7798432de6
images / check (push) Successful in 27s
images / image (push) Successful in 28s
feat: clock fonts and glass and tinted clock styles
2026-11-18 16:56:46 +01:00

28 lines
625 B
TypeScript

// How the big clock on the dashboard looks. The choices are stored per user.
export const CLOCK_FONTS = [
"serif",
"sans",
"light",
"rounded",
"slab",
] as const
export type ClockFont = (typeof CLOCK_FONTS)[number]
export const CLOCK_FONT_NAMES: Record<ClockFont, string> = {
serif: "Serif",
sans: "Sans",
light: "Light",
rounded: "Rounded",
slab: "Slab",
}
export const CLOCK_STYLES = ["solid", "glass", "tinted"] as const
export type ClockStyle = (typeof CLOCK_STYLES)[number]
export const CLOCK_STYLE_NAMES: Record<ClockStyle, string> = {
solid: "Solid",
glass: "Glass",
tinted: "Tinted",
}