@devflow-tools/plugin-tailwind 0.8.10 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @devflow-tools/plugin-tailwind
|
|
2
2
|
|
|
3
|
-
Tailwind CSS
|
|
3
|
+
Tailwind CSS 专家插件 — 响应式设计、主题定制、Purge 检查、Utility 审查。
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,11 +8,33 @@ Tailwind CSS expert plugin for DevFlow — responsive design, theme customizatio
|
|
|
8
8
|
npm install @devflow-tools/plugin-tailwind
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## MCP Tools
|
|
12
12
|
|
|
13
|
-
|
|
|
14
|
-
|
|
15
|
-
| `
|
|
13
|
+
| Tool | 说明 | 关键参数 |
|
|
14
|
+
|------|------|---------|
|
|
15
|
+
| `tailwind_new_component` | 新建 Tailwind 组件:语义结构 → 样式 → 响应式 → 暗色模式 | `projectRoot` |
|
|
16
|
+
|
|
17
|
+
## Knowledge Sources
|
|
18
|
+
|
|
19
|
+
| 来源 | URL | SPA |
|
|
20
|
+
|------|-----|-----|
|
|
21
|
+
| Tailwind CSS 官方文档 | https://tailwindcss.com/docs | No |
|
|
22
|
+
|
|
23
|
+
## Memory
|
|
24
|
+
|
|
25
|
+
插件自动注入以下最佳实践:
|
|
26
|
+
- Utility-first:优先使用内置 utility class,避免自定义 CSS
|
|
27
|
+
- 响应式断点顺序:`sm` → `md` → `lg` → `xl` → `2xl`
|
|
28
|
+
- 暗色模式使用 `dark:` 前缀
|
|
29
|
+
- `tailwind.config.ts` 扩展主题色和间距
|
|
30
|
+
- 使用 `@apply` 提取重复 utility 组合为组件 class
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# 在 Claude Code 中使用
|
|
36
|
+
/devflow:tailwind 创建 Card 组件
|
|
37
|
+
```
|
|
16
38
|
|
|
17
39
|
## License
|
|
18
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/plugin-tailwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "7872bccedbacd09cc92b983f30b3702db6878125"
|
|
30
30
|
}
|