Skip to main content

DaisyUI/Tailwind cli for FastHTML projects

Project description

DaisyFT

DaisyFT Logo

DaisyUI + FastHTML + Tailwind CSS = Beautiful Web Apps in Python

PyPI version License: MIT Documentation

Overview

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.

Documentation

Visit our comprehensive documentation at daisyft.com for guides, examples, and API reference.

Features

  • 🚀 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

Installation

pip install daisyft

Quick Start

# 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

Commands

  • daisyft init: Create a new project with minimal setup
  • daisyft init --advanced: More configuration options
  • daisyft init --binaries: Download Tailwind binaries only without modifying project files
  • daisyft dev: Start the development server
  • daisyft build: Build CSS for production
  • daisyft run: Run the FastHTML application
  • daisyft sync: Update Tailwind binary and configuration

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"

Opinionated Project Structure

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

Roadmap

  • Documentation: ✅ Available at daisyft.com
  • Component System: A library of reusable UI components (coming soon)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daisyft-0.1.7.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daisyft-0.1.7-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file daisyft-0.1.7.tar.gz.

File metadata

  • Download URL: daisyft-0.1.7.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for daisyft-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2254f59eb586521ef7fea33a1fb84989fd539e43870b73c4eb6a0deaeea0e983
MD5 bb383e7321ec1598b7983057f3707934
BLAKE2b-256 423ac26a82427ae3a15f50cee03ed5da62460f7c7bed119e76681fabfbccd082

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisyft-0.1.7.tar.gz:

Publisher: publish.yml on banditburai/daisyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file daisyft-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: daisyft-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for daisyft-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d1641a4cb394bfd30fd23af30eb1f75a8939a9858a4c138491ba071024db4b88
MD5 b33a882c380375413085ef7bc19f7894
BLAKE2b-256 821eb171b8aff92cbf479d2537a9313de6987ef5496de633c1f1961d72143128

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisyft-0.1.7-py3-none-any.whl:

Publisher: publish.yml on banditburai/daisyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page