Christian Oliff
Christian Oliff
Opened PR: #1255
Good question! You could set all the CSS as dark by default, and have the switch 'on' by default. If a user swicthes to 'off' you could load a light-mode...
This is a known issue, to lessen the impact I suggest to put the switch and the script as high in the body as possible.
heya @modabas - thanks for posting your solution - this works great! I've been testing it on: https://tests.christianoliff.com/dark-mode-switch-v2/ and switching between 'Another page' and 'Yet Another page' on the navbar....
Hi there - thanks for the feedback. Yes, I think we need to do something so that the value of the setting is read sooner so that the dark-mode setting...
hey there! thanks for the PR. This looks good! A couple of things though: - If a user has a system/browser dark-mode setting ON then when they visit the page...
Hi @filipe-gomes - yes, go for it! I updated my original post with a couple of thoughts on the requirements.
Thanks for the PR! It's great that the flickering stops with this fix. I think it's important that the dark-mode styles should be stored in a separate CSS file though...
heya @fredtux - thanks for the work on this PR. By adding `` in the head it removes all white-page/flickering issue! However, I think users may choose to put the...
heya - I don't use Laravell so may not be able to help much - but can you please provide more details? Are the files importing okay? Which part isn't...