一个将Tailwind CSS无缝添加到您的项目的Lektor插件。
项目描述
Lektor 💛 Tailwind CSS
一个将Tailwind CSS无缝添加到您的项目的Lektor插件。
入门
-
将插件添加到您的项目
$ lektor plugin add lektor-tailwind $ lektor plugin list
-
配置您的模板路径
在
tailwindcss.config.js
module.exports = { // './' refers to the lektor build output directory, NOT the project dir content: ['./**/*.html'], theme: { extend: {}, }, plugins: [], }
-
将Tailwind指令添加到您的CSS
在
assets/static/style.css
@tailwind base; @tailwind components; @tailwind utilities;
-
启动lektor构建或服务器
$ lektor build $ lektor server
您已成功。有关使用Tailwind CSS及其CLI的更多信息,请参阅官方Tailwind文档。
配置
默认情况下,输入CSS文件位于 assets/static/style.css
,但可以通过 css_path
插件配置进行更改。
项目详情
关闭
lektor-tailwind-0.2.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 339e0328f710c3cfaf4b92408cf6632d652eed4a5c3f6729afc88949a109b017 |
|
MD5 | 0c7e91f84304b7c79e8787dd74037b40 |
|
BLAKE2b-256 | fe964d7f5b6478c2e0c7783540a5df1e32ec67a856d96533a008006aaf38d9e2 |
关闭
lektor_tailwind-0.2.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c5f9c293071acc32d3eb95d87fc08fdbf7556675144eb1bc6f6c42d0e4582355 |
|
MD5 | 4e2202b3bd05384d81840d24a4e7a2d8 |
|
BLAKE2b-256 | 66248f7a81bd9e535f9727cc81d29037f827f39643d6148945de3da071ffbaf2 |