---
description: 该规则解释了 Tailwind CSS 约定、实用工具类和现代 UI 开发的最佳实践。
globs: **/*.css
alwaysApply: false
---
# Tailwind CSS 规则
- 使用响应式前缀实现移动优先设计:
```html
```
- 为交互元素使用状态变体:
```html
```
- 必要时使用 @apply 处理重复模式:
```css
@layer components {
.btn-primary {
@apply px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600;
}
}
```
- 对特定需求使用任意值:
```html
```
- 使用间距工具实现一致的布局:
```html
```