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 = { // './' refers to the lektor build output directory, NOT the project dir content: ['./**/*.html'], 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
lektor-tailwind-0.1.3.tar.gz
(1.7 MB
view hashes)
Built Distribution
Close
Hashes for lektor_tailwind-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55203546955de4be37530714cccd734f3bc5bb0cf43a9dfa620a87ececba269 |
|
MD5 | 93bd52f60b954b8f2702a0e26f132e9a |
|
BLAKE2b-256 | 768f873b5e6c91db2524bc64b8ecc6b51adecc2f310ddb57130df52a6f1b470c |