Closed filoozom closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
waku-objects-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 28, 2023 9:27am |
Alright, I put everything in the store. I debated using a derived([$theme, $isSystemDark])
, but that would then require the use of two stores for the base color and whether or not the dark theme is activated, so I think this way is a bit cleaner.
This should probably be refactored into a:
The issue is that currently there's no easy way to listen to changed about which theme is actually being displayed. If it's the system theme and the system appearance changes, the store does not. The
isSystemDark
variable and listener from #482 should probably be moved to the store?