added liquid glass theme

This commit is contained in:
2026-04-14 15:26:13 +05:30
parent 6e906436cc
commit 816476ed02
4 changed files with 323 additions and 6 deletions

View File

@@ -4,6 +4,10 @@ import './index.css'
import App from './App.tsx'
import { listenForegroundMessages } from './hooks/useReminder'
// Apply saved theme immediately to avoid flash
const savedTheme = localStorage.getItem('gj-theme') || 'light'
document.documentElement.setAttribute('data-theme', savedTheme)
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')