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.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

lektor_tailwind-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lektor-tailwind-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cba7a15cea243e4b4bd713792da4ea47e43ff804c4b35e39f5cc81220982ed8e
MD5 8b34325b30452eef4a3096d8e7fd911d
BLAKE2b-256 e2f3717372a4feca4b44af4812122c252f3d84e0358d60b1e52eec0228b5c52e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lektor_tailwind-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 046ce127f321a10609b2babf32e51b08d94c658d0ad3018f0fef149af1e1c56b
MD5 08529ee50243d0c5b994aab27c17921b
BLAKE2b-256 dacffc6eae8ded1212c87e4f0fd760657477f8de5df9dffa237df66bbc7b3d4d

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