summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
author135e2 <[email protected]>2022-05-29 17:18:06 +0800
committer135e2 <[email protected]>2022-06-01 22:41:50 +0800
commit762bdc4aae407afe1c00ae1e9b438e0e5807f1cd (patch)
treec6ed6765ff0063468b5ab4e9a120760a6db438ba /.github
parent5bcc2712fbc1ed3ac7fa56166176c984001dce50 (diff)
downloadchromate-762bdc4aae407afe1c00ae1e9b438e0e5807f1cd.tar.gz
chromate-762bdc4aae407afe1c00ae1e9b438e0e5807f1cd.tar.bz2
chromate-762bdc4aae407afe1c00ae1e9b438e0e5807f1cd.zip
feat: add #btn-toggle-dark botton to toggle dark mode
- Switch dark theme to bulmaswatch/darkly, since bulma-prefers-dark highly relies on `@media: (prefers-color-scheme: dark)` tag - Add a playerman handler to toggle shikwasa theme[1] - Use localstorage to store user's preference[2] - Fix a typo: SystemDarkmodePrefrence => SystemDarkmodePreference [1]: Modified from https://github.com/jessuni/shikwasa/blob/main/pages/public/index.js#L208 [2]: Took inspiration from https://blog.skk.moe/post/hello-darkmode-my-old-friend
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions