Skip to main content

A Python-native utility-first CSS generator and compiler.

Project description

TailPySCSS

The Python-Native Utility CSS Engine

TailPySCSS is a lightweight, zero-node utility CSS system. It gives you the power of utility classes (like Tailwind) without needing npm, node_modules, or complex Javascript build steps.

100% Python. 100% Open Source.

Created by Abdi Abdikarim


🚀 Features

  • Zero Node.js: No npm or package.json clutter.
  • Python Native: Install via pip. Works with Flask, Django, FastAPI, or static sites.
  • Utility Generator: Instantly generates Grid, Flexbox, Typography, Colors, and Spacing.
  • Built-in Compiler: Compiles SCSS to CSS using libsass automatically.
  • Arbitrary Values (JIT): Use w-[500px], min-h-[80rem] directly in SCSS.
  • Smart Watch Mode: Auto-rebuilds when you save your files.
  • Extensible: Use standard SCSS or our tailpy.config.json.

📦 Installation

pip install tailpyscss

⚡ Quick Start

1. Initialize

Go to your project folder (e.g., my-website) and run:

python -m tailpyscss.cli init

This creates:

  • tailpy.config.json (Your settings)
  • styles/ folder (Your SCSS)

2. Build or Watch

To build once:

python -m tailpyscss.cli build

To watch for changes while you develop:

python -m tailpyscss.cli watch

3. Use in HTML

Link the generated file in your HTML:

<link rel="stylesheet" href="static/css/output.css">

Now you can use classes like:

<div class="flex flex-col bg-primary p-4 rounded-lg">
    <h1 class="text-3xl font-bold text-white">Hello World</h1>
</div>

📚 Documentation


⚙️ Configuration

Customize your theme in tailpy.config.json:

{
    "theme": {
        "colors": {
            "primary": "#3b82f6",
            "brand": "#ff5722"
        }
    }
}

📄 License

MIT License. Free for commercial and private use.

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

tailpyscss-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

tailpyscss-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file tailpyscss-0.1.0.tar.gz.

File metadata

  • Download URL: tailpyscss-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tailpyscss-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f90006b0db0afc0ccdb91fae410454e77903818a4a18e6ec186df87b75e7a0f7
MD5 cb16716c5c307304c1b4fbb314cbb9b8
BLAKE2b-256 08a21b3092673af395f8cc0ab63549e5164a2d368cae5622ccb74f6001928d13

See more details on using hashes here.

File details

Details for the file tailpyscss-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tailpyscss-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tailpyscss-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05488e2a15cd4c5cd540012479d8e411df7935c139f48564a2363f203c1deaf9
MD5 2d24ae20138817131574c5a89e0a2ad1
BLAKE2b-256 e8525b075ba9e43d5b535f088064a28ac5ff9fd77aed24896ca84f78f97cc4ee

See more details on using hashes here.

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