Hacker News new | ask | show | jobs
by agos 871 days ago
I'd love to use Fresh but a framework for web development which calls itself v1.x and yet only supports Tailwind for styling purposes feels very immature.

The fact that for the next iteration they are prioritizing view transitions and not CSS bundling is baffling.

4 comments

Why does CSS bundling need to be integrated? Couldn't you generate a CSS file in whatever way you like?
if I want to use any modern styling solution (CSS modules, Vanilla Extract, Panda, any CSS-in-JS...) a bit of collaboration by the bundler is needed. I can generate CSS file(s) in any way I like but I would have zero integration with the templates
Did you try cutting the tailwind stuff out of static/styles.css? Maybe it will already do what you want.
unfortunately they explicitly say they have no CSS solution other than plain files or Tailwind
Personally I'm happy with modern CSS using variables and nesting natively. The bundling step isn't necessary for the vast majority of usecase IMO.
all CSS-in-JS or styling solutions that allow for component scoping require some kind of bundling or otherwise interaction for the bundler. It's true most people don't need it, but most people don't need 90% of what Fresh offers, surely?
Hopefully, in a few years, someone will release an open-source library for javascript-based web development.