Repository ·Public
theme.ts 222 B 5 lines typescript
1export function applyTheme(t: 'light' | 'dark'): void {2 document.documentElement.dataset.theme = t;3 document.querySelector('meta[name="theme-color"]')?.setAttribute('content', t === 'light' ? '#f4f6fb' : '#080b12');4}5
main