A Lektor plugin that adds Tailwind CSS to your project seamlessly.
Project description
Lektor 💛 Tailwind CSS
A Lektor plugin that adds Tailwind CSS to your project seamlessly.
Get Started
-
Add plugin to your project
$ lektor plugin add lektor-tailwind $ lektor plugin list
-
Configure your template paths
In
tailwindcss.config.js
:module.exports = { content: ['./templates/**/*.{html,j2}'], theme: { extend: {}, }, plugins: [], }
-
Add the Tailwind directives to your CSS
In
assets/static/style.css
:@tailwind base; @tailwind components; @tailwind utilities;
-
Start lektor build or server:
$ lektor build $ lektor server
You got it. Please refer to official Tailwind documentation for more information on using Tailwind CSS and its CLI.
Configuration
By default, the input CSS file in assets/static/style.css
, while it can be changed by css_path
plugin config.
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
File details
Details for the file lektor-tailwind-0.1.2.tar.gz
.
File metadata
- Download URL: lektor-tailwind-0.1.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e39ec46be700051e8b1a452f5c889d75d33f50f88918039a7ff18b0d294c79 |
|
MD5 | 2c3714aa0f007443f10450c21de8075f |
|
BLAKE2b-256 | 2f131a99eee06e0e6a3c2f1e0cdfb8016222f2d206b8788a0de426f606038b6b |
File details
Details for the file lektor_tailwind-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: lektor_tailwind-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90459df1af6e7ba1d9f9042446cc087908249816be365b70f8081d0ecdb3921 |
|
MD5 | 9e452c0e5ec1e1beb2a1dbb4d167dcf7 |
|
BLAKE2b-256 | 595131be479c656e82e9a8efa673919ed9bc8d5efc05ee6ebff6f7c095c90cda |