Hacker News new | ask | show | jobs
by erulabs 917 days ago
As an infrastructure engineer who spends all day in Go and Bash and AWS I gotta say I’m a huge fan of Tailwind. This looks worth buying too. People are blown away by my front end skills, baby I’m just letting Copilot and Tailwind whisper sweet anodyne nothings into my ear. Keep me as far away from design as you can; this helps!
3 comments

Hah same here. Learned enough tailwind to be effective for my personal website. I’m writing a blog article about it. Gpt4 didn’t produce satisfactory layouts so I learned grid-cols and flex, which is useful for groking existing tailwind layouts.
ChatGPT is an expert at tailwind
This is one of the reasons make-real works so surprisingly well: https://github.com/tldraw/make-real
Do you use Tailwind with Go templates?
Not parent, but I do. Go, SSR, vanilla JS, TailwindUI, SQLite, Litestream got us to $20k MRR for a niche CRM product.

TailwindUI provides HTML-only code and includes useful comments about class transitions, so I was able to handle the mobile hamburger menu and some form submission stuff in a tiny JS file, rather than React or Vue (which they also provide code for).

How'd you get Tailwind working in Go? What combination of libraries?
I just use the Tailwind node package to watch for HTML class name changes in my Go templates, which recompiles the CSS served by the Go HTTP server.
how does the Node package handle Go {{ $foo }} in the templates?
It just ignores it and looks for HTML class names as far as I can tell. I think it's a "dumb regex search" type thing.