Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Todo App: LocalStorage, light/dark mode, Sveltekit (TS) & Tailwindcss

svelte, tailwind-css, typescript, accessibility
Antoine C•1,240
@mattari97
A solution to the Todo app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello everyone.

This project was a good practice to localStorage w/ writables in Sveltekit. I ran in multiple problems w/ tha SSR part of the app.

I plan to come back to it and implement drag&drop on my own. I managed to make it work w/ MouseEvent but it would always break w/ TouchEvent.

Any advice/ressources on that matter would be great.

Also, do you know a way to prevent the page from "flashing" on initial load when the store theme mode is yet to be retreived from the storage. It will always be the default value for a short moment before eventualy switching to the user setting.

Have a nice day/night. Peace

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Antoine C's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License