hippofish/packages/client/src/scripts/is-device-darkmode.ts
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

3 lines
106 B
TypeScript

export function isDeviceDarkmode() {
return window.matchMedia("(prefers-color-scheme: dark)").matches;
}