Hacker News new | ask | show | jobs
by dgb23 1755 days ago
How was working with tailwind in Elixir?

My understanding is that Liveview does SSR paired with a very light JS/AJAX framework to keep state on the client, similar to htmx for example.

Tailwind however generates tons of CSS classes that you might or might not use, so it parses your HTML and "purges" unused classes afterwards. It seems that this is far easier if working with a more mainstream framework.

Did you have any problems setting this up?

1 comments

This is pretty much exactly how it works! But I would say I had no problems combining tailwind with liveview. I do wish my HTML was cleaner but from a technical perspective there were no problems.