HNHacker News
TopNewBestAskShowJobs

axadrn

31 karma · joined April 10, 2025

I do stuff
submissionscomments
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Thanks for your feedback. I cannot reproduce it. If the problem persists, I would be happy if you create a detailed issue on GH, thanks!
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Nice to hear, happy coding! =)
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Yeah, totally fair question.

Originally, I had templUI components available via Go module imports, but there were a few real issues:

- Tailwind v4+ with CSS-only config needs hardcoded paths to `.templ` files. That clashed in teams where Go paths differed (e.g. `~/dev`, `~/code`, etc.).

- It made Git diffs messy – you had `.templ` and `.go` files being imported per component.

- Updating components via module versions often led to unwanted breaking changes – not easy to "just use one component" from a newer version.

- Workarounds like Makefile tricks for Tailwind `src` path felt too hacky.

The CLI avoids all that. It copies clean files into your codebase, so it's portable, version-safe, and no import path magic needed.

That said – I’m open to feedback. If there's a solid reason to bring back module imports (optionally), I’m listening!

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Thanks for the kind feedback! I totally get the appeal of daisyUI – super quick to drop in and great for prototyping.

With TemplUI, I’m aiming for a more minimal, dependency-free setup – no extra Tailwind plugins or runtime JS unless absolutely needed. The idea is to stay as close to the metal as possible and let devs build their own design system on top, rather than fight against a pre-styled one.

It's less “drop-in UI kit” and more “starter kit to build your own.” That makes it more customizable and hopefully a better fit for projects that want full control.

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
I took another look and we do explain what templ is on our introduction page: https://templui.io/docs/introduction#built-on-strong-foundat...

"Templ - Type-safe templating for Go" with a link to templ.guide.

Thanks for the feedback!

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Fair point – I’ll make sure to link to https://templ.guide more prominently. Thanks for the heads-up!
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
You're right – HTMX works everywhere by default.

By “HTMX support” I just mean: the JS logic in components (e.g. tooltips, modals) auto-reinitializes after HTMX swaps.

So you can use components inside HTMX-driven UIs without worrying about broken behavior.

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Is TS actually a thing? ^^
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Appreciate that! Always happy to find common ground.
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
The CLI is just a small Go binary – you can install it once via `go install` and then run `templui add icon`.

It helps keep things consistent as the library evolves.

But yeah, I get that some folks prefer manual imports – all good!

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
THIS actually!
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Totally fair – stable, fast, boring tech is often the best kind of tech.

templ’s more for folks who want to stay in Go but need a smoother frontend experience for modern UI needs.

axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
Mostly for building typed web UIs in Go – instead of using html/template, which isn’t typed and feels oldschool. templ makes Go feel way more modern for frontend work.
axadrn··on Show HN: templUI – The UI Kit for templ (CLI-based, like shadcn/UI)
You are welcome! Happy coding! =)