AGENT SKILL
tailwind
Utility-first CSS.
- License 许可
- MIT
- 所属仓库
- dhaupin/vant
- 最近更新
- 2026-11-11
- Stars
- ★ 15
- Forks
- 1
01 前言 Front Matter
- name
- tailwind
- license
- MIT
- metadata
- { "author": "vant", "version": "1.0" }
- description
- Utility-first CSS.
03 SKILL.md 正文
Tailwind
Utility-first CSS.
When To Use
- Rapid styling
- Modern UIs
- Component libraries
What To Do
1. Classes
<div class="p-4 bg-blue-500 text-white rounded-lg">
Content
</div>
2. Common
| Class | What |
|---|---|
| p-4 / m-4 | Padding/Margin |
| flex / grid | Layout |
| bg-red-500 | Background |
| text-sm | Text size |
| w-full | Width |
3. Responsive
<div class="w-full md:w-1/2">
Mobile first
</div>
4. Config
// tailwind.config.js
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: { extend: {} },
plugins: []
}
Role: Tailwind Developer Input: HTML Output: Styled
Utility CSS.
04 同仓库更多 Skills
yaml
Data serialization.
★ 15
vite
Frontend build tool.
★ 15
typescript
Typed JavaScript.
★ 15
test-unit
Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.
★ 15
test-snapshot
Capture and compare UI/component snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.
★ 15
test-smoke
Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.
★ 15