ui_stack is a python frontend build pipeline. Tailwind CSS, DaisyUI, AlpineJS integration for python ( Django, FastAPI, Flask, ... )
This project provides a convenient way to integrate the Tailwind CSS/DaisyUI/AlpineJS framework into Python projects. It creates a folder (named theme by default) that includes all the necessary files and configurations to get started quickly.
- Python 3.11 or newer.
- Node.js
- Install ui_stack:
pip install git+https://github.com/GvozdevLeonid/ui_stack.git
- Set the environment variable to the project's base folder:
LINUX/MACOS:
export UI_STACK_PROJECT_ROOT=base project folder path
WINDOWS:
set UI_STACK_PROJECT_ROOT=base project folder path
- Create ui_stack folder:
ui_stack -f theme init
- Install dependencies:
ui_stack -f theme install
- Start monitoring files for development
ui_stack -f theme start
- Build production files
ui_stack -f theme build
- Add CSS and JS files to your template
<link href="/static/css/styles.css" rel="stylesheet" type="text/css" />
<script "/static/js/script.js"></script>