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.

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-2023.10.2.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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