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:
+11
@@ -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
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Enforces the use of functional components in SolidJS projects.
|
||||
globs: **/*.jsx
|
||||
---
|
||||
- Always use functional components in SolidJS.
|
||||
+11
@@ -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.
|
||||
+10
@@ -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.
|
||||
+7
@@ -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.
|
||||
+8
@@ -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.
|
||||
Reference in New Issue
Block a user