Setup
When creating a new project withfuego new:
File Structure
| File | Purpose |
|---|---|
styles/input.css | Source CSS with Tailwind directives |
static/css/output.css | Compiled CSS (generated) |
app/layout.templ | Links to the compiled CSS |
input.css
The source CSS file:CLI Commands
Build for Production
static/css/output.css.
Watch for Development
Install Binary
Check Installation
Development Workflow
When runningfuego dev:
- Tailwind watcher starts automatically (if
styles/input.cssexists) - CSS rebuilds on any file change
- No manual rebuild needed
Using in Templates
Reference the compiled CSS in your layout:Example Page
Custom Configuration
Custom Colors
Add tostyles/input.css:
bg-brand-500, text-brand-600, etc.
Custom Fonts
Common Patterns
Cards
Buttons
Forms
Navigation
Docker Build
Include Tailwind build in Docker:Troubleshooting
CSS not updating
CSS not updating
Make sure
fuego tailwind watch is running, or run fuego tailwind build after changes.Classes not working
Classes not working
Check that
styles/input.css has @import "tailwindcss"; at the top.Binary not found
Binary not found
Run
fuego tailwind install to download the Tailwind binary.