Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding React and Chakra UI component development

A .cursorrules file that steers Cursor toward functional React components, Chakra UI best practices, a standard folder layout, and TypeScript, accessibility, and dark mode conventions.

People use this for

  • react chakra ui cursor rules
  • cursorrules react component setup
  • chakra ui typescript dark mode guidance
  • cursor ai rules for frontend components
  • write react components with chakra ui
Name
cursor-rules-guiding-react-and-chakra-ui-component-development
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-react-and-chakra-ui-component-development-52nr/export/mdc" -o .cursor/rules/cursor-rules-guiding-react-and-chakra-ui-component-development.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-react-and-chakra-ui-component-development.mdc
Manual install

Save cursor-rules-guiding-react-and-chakra-ui-component-development.mdc as .cursor/rules/cursor-rules-guiding-react-and-chakra-ui-component-development.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-react-and-chakra-ui-component-development.mdc for every project, then start a new session.

Rule


description: "Cursor rules for React development with Chakra UI integration." globs: */ alwaysApply: false

// React + Chakra UI .cursorrules

// Prefer functional components with hooks

const preferFunctionalComponents = true;

// Chakra UI best practices

const chakraUIBestPractices = [ "Use ChakraProvider at the root of your app", "Utilize Chakra UI components for consistent design", "Implement custom theme for brand-specific styling", "Use responsive styles with the Chakra UI breakpoint system", "Leverage Chakra UI hooks for enhanced functionality", ];

// Folder structure

const folderStructure = src/ components/ pages/ theme/ index.js foundations/ components/ hooks/ utils/;

// Additional instructions

const additionalInstructions = `

  1. Use TypeScript for type safety with Chakra UI components
  2. Implement proper component composition using Chakra UI
  3. Utilize Chakra UI's built-in accessibility features
  4. Use the 'as' prop for semantic HTML rendering
  5. Implement dark mode using Chakra UI's color mode
  6. Use Chakra UI's layout components for responsive design
  7. Follow Chakra UI best practices for performance optimization `;

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.