Submitted over 4 years ago
Dashboard theme switcher using Flex, Grid, JS
@emestabillo
Design comparison
SolutionDesign
Solution retrospective
I'm thinking this solution could be more elegant, maybe using themes in css. I'd appreciate any feedback thank you :-)
Community feedback
- @alex-kim-devPosted about 4 years ago
Yeah, the css variables are very helpful for this kind of purpose. The alternative set of color variables could be used with a selector that targets the
checked
state of the switch, eliminating the need to use JS for theme changing.2@emestabilloPosted about 4 years ago@Alex-K1m Not gonna lie...back then my main problem was I didn't know how to do it lol. But the intention was there. I'll be checking your version for sure š
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord