Pelican plugin to add Tailwind CSS to your web site
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
401fcf6429d9d2e2637451af4404428340d81e2bda8eda97a47d00f420da3b2d
|
|
| MD5 |
dcdeeb20f4fdb0b370bd3444d7982764
|
|
| BLAKE2b-256 |
346885b2436dc1b32006d293b6eba6a0260c518d4a4341be2faef900ecf80269
|
Provenance
The following attestation bundles were made for pelican_tailwindcss-0.4.0.tar.gz:
Publisher:
main.yml on pelican-plugins/tailwindcss
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_tailwindcss-0.4.0.tar.gz -
Subject digest:
401fcf6429d9d2e2637451af4404428340d81e2bda8eda97a47d00f420da3b2d - Sigstore transparency entry: 644848481
- Sigstore integration time:
-
Permalink:
pelican-plugins/tailwindcss@1d4eaaaf3d9d1e0598fd897ad8722964bac2c40f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pelican-plugins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@1d4eaaaf3d9d1e0598fd897ad8722964bac2c40f -
Trigger Event:
push
-
Statement type:
File details
Details for the file pelican_tailwindcss-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pelican_tailwindcss-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2e0c1efb4390ecc666dcb07a45eb92ee1e099b886b28cfd128b28bd61dfd6d3
|
|
| MD5 |
4d1012453a39c18c9e066bc8c476b7cf
|
|
| BLAKE2b-256 |
7d7daf2bc1c58613c12c78023a70b2e9cf6e7023d1d6c451d4fb55c413ddcf04
|
Provenance
The following attestation bundles were made for pelican_tailwindcss-0.4.0-py3-none-any.whl:
Publisher:
main.yml on pelican-plugins/tailwindcss
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_tailwindcss-0.4.0-py3-none-any.whl -
Subject digest:
f2e0c1efb4390ecc666dcb07a45eb92ee1e099b886b28cfd128b28bd61dfd6d3 - Sigstore transparency entry: 644848492
- Sigstore integration time:
-
Permalink:
pelican-plugins/tailwindcss@1d4eaaaf3d9d1e0598fd897ad8722964bac2c40f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pelican-plugins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@1d4eaaaf3d9d1e0598fd897ad8722964bac2c40f -
Trigger Event:
push
-
Statement type: