mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
add .mdc file
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Accessibility features for React components built with Chakra UI.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Utilize Chakra UI's built-in accessibility features
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Ensuring that React components are built composably using Chakra UI components.
|
||||
globs: src/components/**/*.*
|
||||
---
|
||||
- Implement proper component composition using Chakra UI
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Implement dark mode using Chakra UI's color mode when building React components.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Implement dark mode using Chakra UI's color mode
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Following Chakra UI best practices for optimizing React components for performance.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Follow Chakra UI best practices for performance optimization
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Utilize Chakra UI's layout components for creating responsive designs in React applications.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Use Chakra UI's layout components for responsive design
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Use the 'as' prop for semantic HTML rendering when working with Chakra UI components.
|
||||
globs: src/components/**/*.*
|
||||
---
|
||||
- Use the 'as' prop for semantic HTML rendering
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Rules specific to the theme directory for managing and customizing the Chakra UI theme.
|
||||
globs: src/theme/**/*.*
|
||||
---
|
||||
- Create theme/index.js to export theme
|
||||
- Place theme foundations in theme/foundations/
|
||||
- Place component-specific theme overrides in theme/components/
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Enforces Chakra UI best practices to maintain consistency and leverage the framework's capabilities.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- 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
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
---
|
||||
description: Maintain the defined folder structure for React and Chakra UI projects to ensure organized code.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Follow the following folder structure:
|
||||
|
||||
src/
|
||||
components/
|
||||
pages/
|
||||
theme/
|
||||
index.js
|
||||
foundations/
|
||||
components/
|
||||
hooks/
|
||||
utils/
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: General preferences for React components using Chakra UI, including the use of functional components with hooks.
|
||||
globs: src/**/*.*
|
||||
---
|
||||
- Prefer functional components with hooks
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Utilize Typescript for type safety when using React components with Chakra UI.
|
||||
globs: src/**/*.tsx
|
||||
---
|
||||
- Use TypeScript for type safety with Chakra UI components
|
||||
Reference in New Issue
Block a user