Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: mono/color: Very small, responsive, dual-themed CSS framewor (asvvvad.github.io)
34 points by ASVVVAD on May 20, 2020 | hide | past | favorite | 7 comments



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.


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


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)


Implemented that and more improvements in the v1.1 release https://asvvvad.github.io/mono-color/


Done! I made a fixed button that changes between the themes ^^


v1.2 is out! many fixes and improvements ^^




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: