3 points | by sswn 5 hours ago
2 comments
Will I be able to use Tailwind CSS with this?
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
Will I be able to use Tailwind CSS with this?
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