React Chakra Ui
Cursor rules for React development with Chakra UI integration.
Awesome CursorRulesv10 stars · 0 forks · 0 makes≈270 tokens
// 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 = `
- Use TypeScript for type safety with Chakra UI components
- Implement proper component composition using Chakra UI
- Utilize Chakra UI's built-in accessibility features
- Use the 'as' prop for semantic HTML rendering
- Implement dark mode using Chakra UI's color mode
- Use Chakra UI's layout components for responsive design
- Follow Chakra UI best practices for performance optimization `;