Pelican plugin to add TailwindCSS to your website.
Project description
TailwindCSS Plugin for Pelican 🌬
This plugin helps you use TailwindCSS in your Pelican website.
| Author | GitHub | |
|---|---|---|
| Luca Fedrizzi | https://github.com/lcfd | https://twitter.com/lc_fd |
Why Use This Plugin?
Because you want use TailwindCSS in seconds. Not hours.
Installation
This plugin can be installed via:
python -m pip install pelican-tailwindcss
or
poetry add pelican-tailwindcss
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" />
-
Done! You should be ready to use TailwindCSS in your website template.
Advanced Usage
In your settings you can configure the plugin's behavior using the TAILWIND setting.
An example of a complete TAILWIND setting:
TAILWIND = {
"version": "3.0.0"
}
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.1.0.tar.gz.
File metadata
- Download URL: pelican-tailwindcss-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
754cad8b2b4bab2bcef192ea01aae78056319554a19d485f06d7c0ad33601e71
|
|
| MD5 |
e76402829ef0dd88b0a9e6f30ff5aad7
|
|
| BLAKE2b-256 |
ec48484e4535fe9e1786b19bd12ba5cffec0f79039f4d0d41772a6964e1f488f
|
File details
Details for the file pelican_tailwindcss-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pelican_tailwindcss-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8b02e8551d3c99fabf12f2915359c0a9e43278aff7bbdc5eebc63dbf5d73eb2
|
|
| MD5 |
ff616b36f1a6d08994cde8d30c73db60
|
|
| BLAKE2b-256 |
a812887d268a15c21758e374a0c39d508a18d6308ceb167668d142069abd5848
|