Skip to main content

tailwindcss-parser for Render Engine

Project description

Render Engine TailwindCSS Plugin

Add tailwindcss to your Render Engine site.

TailwindCSS is a utility-first CSS framework for rapidly building custom designs.

The pytailwindcss package is used to install compile the tailwindcss stylesheets without the need of npm.

This plugin installs builds a tailwindcss file from the default configuration and adds a tailwind.css file to your static files.

Warning: This is in early development.

Installation

Install the extension with pip:

pip install render-engine-tailwindcss

Usage

  1. Import the plugin.

    # app.py
    
    from render_engine import Site
    from render_engine_tailwindcss import TailwindCSS
    
  2. Add the plugin to your site.

    # app.py
    
    class site(Site):
    
        static_path = 'static'
        plugins=[
            TailwindCSS(),
        ]
    
    )
    
  3. In your 'static_path', add your pre-tailwindcss stylesheets.

    # static/styles.css
    
    @tailwind base;
    @tailwind components;
    @tailwind utilities; 
    

You can add multiple CSS files to the static path and they will all converted into their own files.

Development & Testing

This project uses just for common development tasks and nox for testing across multiple Python versions.

Quick Start with Just

# Run tests
just test

# Run tests with coverage
just test-coverage

# Run both (if available)
just check

Using Nox for Multi-Version Testing

Test the plugin across Python 3.11, 3.12, 3.13, and 3.14:

# Run tests on all Python versions
nox -s test

# Run all checks
nox -s check

Development Setup

# Install with uv (recommended)
uv sync

# Install with pip
pip install -e ".[test]"

# Run tests
just test

Available Just Commands

  • just test - Run pytest on current Python version
  • just test-coverage - Run pytest with coverage reporting
  • just check - Run tests

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

render_engine_tailwindcss-2025.11.2a1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file render_engine_tailwindcss-2025.11.2a1.tar.gz.

File metadata

File hashes

Hashes for render_engine_tailwindcss-2025.11.2a1.tar.gz
Algorithm Hash digest
SHA256 4e90282cede137733d5905a55aac4d3022b3a929f63f276a071ba638417bc181
MD5 57016f681576971a9e9431ebf423ac61
BLAKE2b-256 235746f0026c545a2e8c293d9a5c34b38284d2899179ca6296d4572d381483e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_engine_tailwindcss-2025.11.2a1.tar.gz:

Publisher: publish.yml on kjaymiller/render-engine-tailwindcss

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

File details

Details for the file render_engine_tailwindcss-2025.11.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for render_engine_tailwindcss-2025.11.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b32e86ad958c089c26144373bbd8a51dde77301625fe1809c7de06fab979e0a9
MD5 53503a03ad139a29043eaf8d8529fcd0
BLAKE2b-256 f3287e24f71762298ea01574e23c1a83cbfd508e280b1b007009a182582154fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for render_engine_tailwindcss-2025.11.2a1-py3-none-any.whl:

Publisher: publish.yml on kjaymiller/render-engine-tailwindcss

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