7 comments

[ 4.1 ms ] story [ 18.5 ms ] thread
Would be a nice addition to be able to toggle the dark / light themes on the linked site.
That would require some JS. Wouldn’t be hard to do, but I don’t think it would be feasible within a pure CSS framework.
Thanks 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 (not using mono/color)

I 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

Done! I made a fixed button that changes between the themes ^^
v1.2 is out! many fixes and improvements ^^