RuleMembers
chakra-ui Best Practices
chakra-ui Best Practices is a rule file for Cursor, from the Cursor rules (mdc) collection by sanjeed5. The full text is about 996 words in 15 sections, with 22 code blocks. A rule file tells the editor's AI how code in this stack should be written, so its suggestions follow the same conventions.
It is most useful for people working in Design and Frontend who use Cursor.
What it covers
- 1. Core Setup & Dependencies
- 2. Theming: Token-First & Recipes
- 2.1. Define Semantic Tokens
- 2.2. Use defineRecipe for Component Variants
- 3. Styling: Shorthand, Pseudo-Props & Box
- 3.1. Prefer Shorthand Props
- 3.2. Use Pseudo Props for Interaction States
- 3.3. Box as the Styling Primitive
- 4. Component Architecture & Accessibility
- 4.1. Composition over Wrapper Divs
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source: https://github.com/sanjeed5/awesome-cursor-rules-mdc/blob/main/rules-mdc/chakra-ui.mdc
Author: sanjeed5, Cursor rules (mdc). License: CC0-1.0.