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,11 @@
---
description: Describes and enforces the preferred folder structure for SolidJS projects, including components, pages, and styles.
globs: src/**/*
---
- Use the following folder structure:
src/
components/
pages/
styles/
App.jsx
index.jsx
@@ -0,0 +1,5 @@
---
description: Enforces the use of functional components in SolidJS projects.
globs: **/*.jsx
---
- Always use functional components in SolidJS.
@@ -0,0 +1,11 @@
---
description: Provides additional instructions to remember when coding with solid and tailwind.
globs: **/*.jsx
---
- Use JSX for component templates.
- Implement proper Tailwind CSS purging for production builds.
- Utilize Solid Router for routing when applicable.
- Use Tailwind's @layer directive for custom styles.
- Implement utility-first CSS approach.
- Follow both Solid.js and Tailwind naming conventions.
- Use JIT (Just-In-Time) mode for faster development.
@@ -0,0 +1,10 @@
---
description: Applies best practices for using SolidJS with Tailwind CSS, including state management and styling.
globs: **/*.jsx
---
- Use createSignal() for reactive state.
- Implement Tailwind CSS classes for styling.
- Utilize @apply directive in CSS files for reusable styles.
- Implement responsive design using Tailwind's responsive classes.
- Use Tailwind's configuration file for customization.
- Implement dark mode using Tailwind's dark variant.
@@ -0,0 +1,7 @@
---
description: Provides rules related to the configuration file for Tailwind CSS, focusing on customization.
globs: tailwind.config.js
---
- Use Tailwind's configuration file for customization.
- Implement Tailwind CSS purging for production builds.
- Use JIT (Just-In-Time) mode for faster development.
@@ -0,0 +1,8 @@
---
description: Provides best practices for styling with Tailwind CSS, including reusable styles, responsive design, and dark mode.
globs: **/*.css
---
- Utilize @apply directive in CSS files for reusable styles.
- Implement responsive design using Tailwind's responsive classes.
- Use Tailwind's configuration file for customization.
- Implement dark mode using Tailwind's dark variant.