Submitted about 2 years ago
QR code component (HTML + CSS + JS + Dark and Light Theme) π
@aandreluis
Design comparison
SolutionDesign
Solution retrospective
Hello, that's my solution to the challenge! π¨βπ»
In addition to fulfilling the challenge, I implemented the option to change the layout's color scheme, choosing between "Dark theme" or "Light theme". The theme change occurs automatically according to the theme defined in the user's preferences, using "prefers-color-scheme", other than that, I also used "localStorage" to save the last theme chosen, for when the user accesses it again your theme page will be there.
Information and Details
- Prefers-color-scheme β
- Local Storage πΌ
- Dark and Light theme + toggle button π
- Custom colors (Dark theme) π¨
Community feedback
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