Sébastien Chopin
Sébastien Chopin
Added the `help-wanted` label if anyone wants to replace the CSS vars.
I think we can use a ponyfill for CSS vars: https://github.com/jhildenbiddle/css-vars-ponyfill
Hi @shtinmn We are actually using rollup to minify the `script.js`, see https://github.com/nuxt-community/color-mode-module/blob/master/rollup.config.js Feel free to open a PR to configure babel plugin to support IE11.
Hi @markusressel The cookie is a functional one, not related to user tracking at all, so there should not be any problem regarding it
I see, in that case you should not even display the color switcher until the user approved the consent banner right?
From what I see, we could have an option to disable storing the theme into the `localStorage` but only in memory. Something like: ``` export default { colorMode: { storage:...
How comfortable are you to open a PR?
Actually, we discussed with Pooya and since we won't support many storage, we could have `remember: false` option (default to `true`)
Can you please create a reproduction? It should work under the hood. see https://tailwindcss.nuxtjs.org/examples/dark-mode
Hi @katerlouis Actually this is not possible for Nuxt 2 since we use `router.beforeEach` to force the color mode before navigating: https://github.com/nuxt-community/color-mode-module/blob/2ca9edc4f2f55970a8f147565eb49c8d84f8157a/lib/templates/plugin.client.js#L91-L105 We cannot have the `asyncData` result inside, this...