add .mdc file

This commit is contained in:
sanjeed5
2025-02-17 17:50:15 +05:30
parent 2087f9d628
commit 71ac7fc7cc
879 changed files with 7725 additions and 0 deletions
@@ -0,0 +1,5 @@
---
description: Accessibility features for React components built with Chakra UI.
globs: src/**/*.*
---
- Utilize Chakra UI's built-in accessibility features
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/
@@ -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
@@ -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/
@@ -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
@@ -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