3 ms·
Definitely agree with other answers that you should look into classless CSS frameworks. You can see a list of popular options here: https://www.designinspiratio
by ajjenkins 4y ago
Definitely agree with other answers that you should look into classless CSS frameworks. You can see a list of popular options here: https://www.designinspiration.info/classless-css-frameworks/ https://www.designinspiration.info/classless-css-frameworks/
You can get pretty far with just HTML and dropping in any one of those CSS frameworks.
Since you’re using Flask, I would just make some endpoints that serve HTML using Jinja2 templates. Depending on what you’re doing, you might not need JavaScript at all. You can trigger backend stuff using HTML forms with form actions. And with a classless CSS library, the form should look nice too.
If for some reason you want to keep the front end totally separate from the back end, a good framework for building web apps is Remix: https://remix.run/ https://remix.run/ . It makes it easy to build highly performant websites and has nice helpers for data loading and actions. I also like that it keeps client side JavaScript to a minimum, which keeps things simple and makes your website faster.