Skip to main content

Pelican plugin to add Tailwind CSS to your web site

Project description

Tailwind CSS Plugin for Pelican 🌬

Build Status PyPI Version Downloads License

This plugin helps you use Tailwind CSS in your Pelican web site.

Why Use This Plugin?

Because you want use Tailwind CSS in seconds. Not hours.

Requirements

This plugin is tested on Tailwind CSS 3.0.24. If you would like to add support for Tailwind CSS 4.0+, please submit a pull request along with appropriate additions to the test suite.

Installation

This plugin can be installed via:

python -m pip install pelican-tailwindcss

As long as you have not explicitly added a PLUGINS setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add tailwindcss to your existing PLUGINS list. For more information, please see the How to Use Plugins documentation.

Basic Usage

  1. Create a tailwind.config.js file in your Pelican project root folder containing:

    /** @type {import('tailwindcss').Config} */
    module.exports = {
    content: ["./themes/**/*.html", "./themes/**/*.js"],
    theme: {
        extend: {},
    },
    plugins: [],
    };
    

    The content property values are just suggestions. Feel free to modify them according to your needs.

  2. Create a input.css file in your Pelican project root folder containing:

    @tailwind base;
    @tailwind components;
    @tailwind utilities;
    
  3. Add the build file (output.css) in your base.html:

    <link rel="stylesheet" href="/output.css" />
    
  4. In your Pelican settings, specify the target Tailwind CSS version via the TAILWIND setting:

    TAILWIND = {
        "version": "3.0.24",
    }
    
  5. Done! You should be ready to use Tailwind CSS in your web site templates.

Contributing

Contributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on existing issues.

To start contributing to this plugin, review the Contributing to Pelican documentation, beginning with the Contributing Code section.

License

This project is licensed under the AGPL-3.0 license.

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

pelican_tailwindcss-0.4.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

pelican_tailwindcss-0.4.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pelican_tailwindcss-0.4.0.tar.gz.

File metadata

  • Download URL: pelican_tailwindcss-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pelican_tailwindcss-0.4.0.tar.gz
Algorithm Hash digest
SHA256 401fcf6429d9d2e2637451af4404428340d81e2bda8eda97a47d00f420da3b2d
MD5 dcdeeb20f4fdb0b370bd3444d7982764
BLAKE2b-256 346885b2436dc1b32006d293b6eba6a0260c518d4a4341be2faef900ecf80269

See more details on using hashes here.

Provenance

The following attestation bundles were made for pelican_tailwindcss-0.4.0.tar.gz:

Publisher: main.yml on pelican-plugins/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 pelican_tailwindcss-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pelican_tailwindcss-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e0c1efb4390ecc666dcb07a45eb92ee1e099b886b28cfd128b28bd61dfd6d3
MD5 4d1012453a39c18c9e066bc8c476b7cf
BLAKE2b-256 7d7daf2bc1c58613c12c78023a70b2e9cf6e7023d1d6c451d4fb55c413ddcf04

See more details on using hashes here.

Provenance

The following attestation bundles were made for pelican_tailwindcss-0.4.0-py3-none-any.whl:

Publisher: main.yml on pelican-plugins/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