Cursor rule
.cursor/rules/tailwind.mdcCursor rules
Quality
44/100
Scores the file, not the repository.Length
187 words
10 headings · 0 code blocksRepository
1
— · pushed 337 days agoLast changed
3 days ago
First indexed 3 days ago.123456---78description: 现代 Web 应用的 Tailwind CSS 与 UI 组件最佳实践9globs: **/\*.css, **/_.tsx, \*\*/_.jsx, tailwind.config.js, tailwind.config.ts1011---1213# Tailwind CSS 最佳实践1415## 项目配置1617- 采用合理的 Tailwind 配置方案18- 正确配置主题扩展(Theme Extension)19- 设置完善的清除(Purge)规则20- 合理集成插件(Plugin)21- 配置自定义间距(Spacing)与断点(Breakpoints)22- 规范定义颜色板(Color Palette)2324## 组件样式2526- 优先使用工具类(Utility Classes)而非自定义 CSS27- 需要时通过`@apply`组合相关工具类28- 合理使用响应式设计工具类29- 完善暗黑模式(Dark Mode)实现30- 规范状态变体(State Variants)样式31- 保持组件样式一致性3233## 布局设计3435- 高效使用 Flexbox 与 Grid 工具类36- 实现统一的间距系统(Spacing System)37- 按需应用容器查询(Container Queries)38- 规范响应式断点(Responsive Breakpoints)39- 合理使用内边距(Padding)与外边距(Margin)工具类40- 完善对齐(Alignment)工具类应用4142## 排版规范4344- 采用合理的字体大小(Font Size)工具类45- 规范行高(Line Height)设置46- 合理使用字重(Font Weight)工具类47- 正确配置自定义字体(Custom Fonts)48- 规范文本对齐(Text Alignment)方式49- 完善文本装饰(Text Decoration)样式5051## 颜色管理5253- 采用语义化颜色命名(Semantic Color Naming)54- 确保颜色对比度(Color Contrast)符合可访问性标准55- 高效使用透明度(Opacity)工具类56- 规范自定义颜色配置57- 合理应用渐变(Gradient)工具类58- 完善悬停(Hover)状态样式5960## 组件开发6162- 可用时优先使用 shadcn/ui 组件库63- 合理扩展基础组件(Component Extension)64- 保持组件变体(Variants)风格一致65- 实现流畅的动画(Animation)效果66- 规范过渡(Transition)工具类使用67- 全程关注无障碍(Accessibility)设计6869## 响应式设计7071- 采用移动优先(Mobile-First)策略72- 完善多端断点(Breakpoints)适配73- 高效应用容器查询(Container Queries)74- 合理处理不同屏幕尺寸(Screen Sizes)的样式适配75- 实现响应式排版(Responsive Typography)76- 规范响应式间距(Responsive Spacing)7778## 性能优化7980- 完善清除(Purge)配置以减少冗余代码81- 最小化自定义 CSS 代码量82- 采用合理的缓存策略(Caching Strategies)83- 实现有效的代码分割(Code Splitting)84- 优化生产环境构建(Production Build)85- 监控包体积(Bundle Size)8687## 通用最佳实践8889- 遵循统一的命名规范(Naming Conventions)90- 保持样式文件组织有序91- 编写完善的文档说明(Documentation)92- 实施规范的测试流程(Testing)93- 严格遵守无障碍设计指南(Accessibility Guidelines)9495- 规范版本控制(Version Control)管理96
Also in lzyyzznl/all_in_one_search
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| lzyyzznl/all_in_one_search.cursor/rules/clean-code.mdc · 1 | Cursor rules | no sections | 30/100 | 3 days ago | |
| lzyyzznl/all_in_one_search.cursor/rules/common.mdc · 1 | Cursor rules | no sections | 50/100 | 3 days ago | |
| lzyyzznl/all_in_one_search.cursor/rules/git.mdc · 1 | Cursor rules | typesgit | 58/100 | 3 days ago | |
| lzyyzznl/all_in_one_search.cursor/rules/quality-rule.mdc · 1 | Cursor rules | no sections | 30/100 | 3 days ago | |
| lzyyzznl/all_in_one_search.cursor/rules/ts.mdc · 1 | Cursor rules | types | 44/100 | 3 days ago | |
| lzyyzznl/all_in_one_search.cursor/rules/vue.mdc · 1 | Cursor rules | typesapiui | 44/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
