Better HN
topnewbestaskshowjobs
Log inSign up

sswn

6 karma · joined Jul 15, 2026 (4mo ago) · 5 submissions

product creator - https://sswn.dev/
Submissions

comment 1mo ago · link · parent

The renderer will only render the changed component and then the live reload will kick in if you use the nitro dev option. Since a component is just Python, the component will update everywhere its imported.

If you run nitro build, it will re-compile the whole page (all pages).

comment 1mo ago · link · parent

Yes, most definitely. I use Tailwind with Nitro on a daily basis.

Here's how:

1. Import tailwind 2. Build your components:

def card(title, body): return Div( Div(title, cls="font-semibold text-zinc-900"), Paragraph(body, cls="mt-1 text-sm text-zinc-600"), cls="rounded-xl border border-zinc-200 bg-white p-6 shadow-sm", )

3. Run nitro build or nitro dev for live reloads.

EDIT:

Here is a full guide: https://nitro.sh/docs/tailwind

3.

Show HN: Nitro – a Python static site generator(nitro.sh ↗)

3 points · by sswn · 1mo ago · 4 comments

comment 4mo ago · link · parent

This is why I love the internet! Thank you to the author for taking the time!