Buckets:
| import { browser } from '$app/environment'; | |
| import { MEDIA_QUERIES } from '$lib/constants'; | |
| export const theme = $state({ | |
| isSystemDark: browser && window.matchMedia(MEDIA_QUERIES.PREFERS_DARK).matches | |
| }); | |
| if (browser) { | |
| const mql = window.matchMedia(MEDIA_QUERIES.PREFERS_DARK); | |
| mql.addEventListener('change', (e) => { | |
| theme.isSystemDark = e.matches; | |
| }); | |
| } | |
Xet Storage Details
- Size:
- 366 Bytes
- Xet hash:
- 9ed3a20d5a23a044eeca7e0836fe6f0954411e598a5754802c63231fead93ee9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.