DaisyFT is a toolkit for building beautiful web interfaces with FastHTML, Tailwind CSS, and DaisyUI. It provides a streamlined workflow for creating modern, responsive web applications in Python.
Visit our comprehensive documentation at daisyft.com for guides, examples, and API reference.
- 🚀 Quick Setup: Initialize a FastHTML project with Tailwind CSS and DaisyUI in seconds
- 🔄 Live Reload: Develop with instant feedback using the built-in dev server
- 🛠️ Build System: Optimize your CSS for production with a single command
- 🔌 Sync Command: Keep your Tailwind binary and configuration up to date
pip install daisyft
# Initialize a new project
daisyft init
# Start the development server
daisyft dev
# Build for production
daisyft build
# Build your css and run your app
daisyft run
daisyft init
: Create a new project with minimal setupdaisyft init --advanced
: More configuration optionsdaisyft init --binaries
: Download Tailwind binaries only without modifying project filesdaisyft dev
: Start the development serverdaisyft build
: Build CSS for productiondaisyft run
: Run the FastHTML applicationdaisyft sync
: Update Tailwind binary and configuration
DaisyFT uses a daisyft.toml
file for configuration. This file is created automatically when you run daisyft init
and used to customize the cli.
[project]
style = "daisy" # Options: "daisy", "tailwind"
theme = "dark" # Options: "dark", "light"
Here's the structure new projects default to, which can be customized:
my-project/
├── main.py # Main FastHTML application
├── daisyft.toml # DaisyFT configuration
├── static/ # Static assets
│ ├── css/ # CSS files
│ │ ├── input.css # Tailwind/DaisyUI input
│ │ └── output.css # Generated CSS
│ └── js/ # JavaScript files
└── components/ # FastHTML components
- Documentation: ✅ Available at daisyft.com
- Component System: A library of reusable UI components (coming soon)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.