Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm currently using Tailwind CSS to style a fairly simple static website that's being generated using Hugo. I've been considering using some Tailwind UI components, e.g. modals (in particular, lightboxes to show zoomed-in versions of images).

I assumed that I would use Tailwind UI's HTML for these and write vanilla JS for interactivity, but now I am rethinking, especially having read this quote in the article: "If we tried to write it in custom vanilla JS, well we'd be making it harder for literally everyone".

So given this announcement, in my situation would you recommend against vanilla JS, and instead to adopt one of React or Vue?



Look in to alpine.js - pairs very nicely with Tailwind


Thanks - Alpine.js looks like an appropriate choice in general, but unfortunately it’s not supported by these particular components. However, the announcement does say “we're looking forward to exploring other frameworks in the future (Alpine.js is next on our list)”.

I’d be interested to know whether Alpine.js support is “coming soon” or “maybe eventually”.


They're already generating hacky alpine to power their interactive examples, so I'd guess soonish.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: