Skip to main content

A Lektor plugin that adds Tailwind CSS to your project seamlessly.

Project description

Lektor 💛 Tailwind CSS

A Lektor plugin that adds Tailwind CSS to your project seamlessly.

Build Status PyPI - Python Version PyPI

Get Started

  1. Add plugin to your project

    $ lektor plugin add lektor-tailwind
    $ lektor plugin list
    
  2. Configure your template paths

    In tailwindcss.config.js:

    module.exports = {
      content: ['./templates/**/*.{html,j2}'],
      theme: {
        extend: {},
      },
      plugins: [],
    }
    
  3. Add the Tailwind directives to your CSS

    In assets/static/style.css:

    @tailwind base;
    @tailwind components;
    @tailwind utilities;
    
  4. Start lektor build or server:

    $ lektor build
    $ lektor server
    

You got it. Please refer to official Tailwind documentation for more information on using Tailwind CSS and its CLI.

Configuration

By default, the input CSS file in assets/static/style.css, while it can be changed by css_path plugin config.

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

lektor-tailwind-0.1.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

lektor_tailwind-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file lektor-tailwind-0.1.1.tar.gz.

File metadata

  • Download URL: lektor-tailwind-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lektor-tailwind-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e7d66fea2b7e274eb5e9ad836208379a6102c388d15eb00bec512011effe5fb9
MD5 fe1641e248ba585758a24e03aed9c3c8
BLAKE2b-256 586a1b23b19d07d70badeffb5635f3787af9d1d6fd3acb6321cc5c764d450521

See more details on using hashes here.

File details

Details for the file lektor_tailwind-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lektor_tailwind-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a66658e80d2a3a7ec5fcefb5d4f09b9e84b2bf708f9bc3bd73be233261773e26
MD5 be7ff53e5799cb313e40bbbbc550e083
BLAKE2b-256 705f6f20ab3793c0be0cc04c8193ac59ca6c7881d23e8f1c368137e18c108844

See more details on using hashes here.

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