syncova-ticket/public/theme.js
Weapie 0e8be73fec
All checks were successful
Tests und Docker-Image / Tests und Frontend-Build (push) Successful in 44s
Tests und Docker-Image / Leeres Produktionsimage bauen und veröffentlichen (push) Successful in 2m0s
Document Syncova with demo screenshots and harden production deployment
2026-11-03 18:10:13 +01:00

8 lines
244 B
JavaScript

try {
const theme = localStorage.getItem('syncova-theme') || 'system'
document.documentElement.classList.toggle(
'dark',
theme === 'dark' || (theme === 'system' && matchMedia('(prefers-color-scheme: dark)').matches),
)
} catch {}