![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
This plugin helps you use TailwindCSS in your Pelican website.
Author | GitHub | |
---|---|---|
Luca Fedrizzi | https://github.com/lcfd | https://twitter.com/lc_fd |
Because you want use TailwindCSS in seconds. Not hours.
In order to run this plugin, you need to install NodeJS. (I'm looking to replace this dependency by using a Python package. – Luca)
This plugin can be installed via:
python -m pip install pelican-tailwindcss
or
poetry add pelican-tailwindcss
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.
Create a input.css
file in your Pelican project root folder containing:
@tailwind base;
@tailwind components;
@tailwind utilities;
Add the build file (output.css
) in your base.html
.
<link rel="stylesheet" href="/output.css" />
Done! You should be ready to use TailwindCSS in your website template.
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",
"plugins": [
"@tailwindcss/typography",
"@tailwindcss/forms",
"@tailwindcss/line-clamp",
"@tailwindcss/aspect-ratio",
],
}
As you can see from the example above it is possible to add the plugins
property to the configuration.
Just add the name of a Tailwind plugin in this property and the plugin will be installed.
Your tailwind.config.js
file will only be copied when Pelican starts. This means that any changes after starting Pelican will not be considered. For example if you want to install a new plugin for Tailwind you will have to restart Pelican.
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.
This project is licensed under the AGPL-3.0 license.
FAQs
Pelican plugin to add TailwindCSS to your website.
We found that pelican-tailwindcss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.