4 ms·
Would be a nice addition to be able to toggle the dark / light themes on the linked site.
by anonfunction 6y ago
Would be a nice addition to be able to toggle the dark / light themes on the linked site.
- skavi 6y agoThat would require some JS. Wouldn’t be hard to do, but I don’t think it would be feasible within a pure CSS framework.
- ASVVVAD 6y agoThanks both! Yes that's true I agree with both of you on this I did the switching theme thing before on my site[1] by putting theme specific CSS into separate files and link those depending on the chosen theme. In case of my site that is done on the server side I wil do the same with this. I'll look how to do it with JS for the demo page and add an extra release with separate theme files ^^ If you have any other ideas I'm glad to hear them! 1: https://asvvvad.eu.org https://asvvvad.eu.org (not using mono/color)
- ASVVVAD 6y agoImplemented that and more improvements in the v1.1 release https://asvvvad.github.io/mono-color/ https://asvvvad.github.io/mono-color/
- ASVVVAD 6y agoI made a section for this on the site[0] and gave man examples on how to switch themes including automatic CSS-only, JS, and server side. It's still a CSS-only framework those are just tips and the toggle button is for showcase ^^ 0: https://asvvvad.github.io/mono-color/#usage https://asvvvad.github.io/mono-color/#usage
- ASVVVAD 6y agoDone! I made a fixed button that changes between the themes ^^