設計一致性專案規則 (.cursor/rules)
Cursor Team · Cursor Docs ·
Cursor 官方規則系統讓你釘選可重用的限定範圍指令——包括編碼代符、間距和組件慣例的設計系統規則——確保每次生成都符合品牌標準。涵蓋 MDC 格式、glob 模式和自動附加與始終啟用規則。
發布者摘要
Rules let you provide persistent, reusable context to the Agent. Use a project rule to encode your design system so generated UI follows your tokens and conventions.
文章結構
- Project rules live in .cursor/rules as MDC files
- Scope rules with globs (e.g. components/**)
- Always-on vs. auto-attached vs. agent-requested rules
- Encoding a design system: tokens, spacing, typography
- Nested rules for monorepos and sub-packages
Source: Cursor Docs
閱讀原文 ↗ 內容託管在原發布者的網站上。
由 Cursor-Design 社群精選,作為用 Cursor 做設計的第一手參考。