Tailwind CSS Plugin for Pelican 🌬
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
-
Create a
tailwind.config.jsfile in your Pelican project root folder containing:/** @type {import('tailwindcss').Config} */ module.exports = { content: ["./themes/**/*.html", "./themes/**/*.js"], theme: { extend: {}, }, plugins: [], };
The
contentproperty values are just suggestions. Feel free to modify them according to your needs. -
Create a
input.cssfile in your Pelican project root folder containing:@tailwind base; @tailwind components; @tailwind utilities;
-
Add the build file (
output.css) in yourbase.html:<link rel="stylesheet" href="/output.css" />
-
In your Pelican settings, specify the target Tailwind CSS version via the
TAILWINDsetting:TAILWIND = { "version": "3.0.24", }
-
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.
Release files for pelican-tailwindcss 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pelican_tailwindcss-0.4.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pelican_tailwindcss-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / pelican_tailwindcss-0.4.0.tar.gz
| Download URL | pelican_tailwindcss-0.4.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
401fcf6429d9d2e2637451af4404428340d81e2bda8eda97a47d00f420da3b2d
|
|
BLAKE2b-256 checksum How to use checksums |
346885b2436dc1b32006d293b6eba6a0260c518d4a4341be2faef900ecf80269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2025.
Transparency logRelease files / pelican_tailwindcss-0.4.0-py3-none-any.whl
| Download URL | pelican_tailwindcss-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2e0c1efb4390ecc666dcb07a45eb92ee1e099b886b28cfd128b28bd61dfd6d3
|
|
BLAKE2b-256 checksum How to use checksums |
7d7daf2bc1c58613c12c78023a70b2e9cf6e7023d1d6c451d4fb55c413ddcf04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2025.
Transparency log