You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These Cursor rules are designed to accelerate development while maintaining code quality and consistency across the Medusa application. They serve as an intelligent coding assistant, providing contextual guidance based on the specific file and framework being used.
description: Remix storefront component patterns with React, TypeScript, and Tailwind CSS for building reusable UI components and styling patterns
3
+
globs:
4
+
- "apps/storefront/**/*.ts"
5
+
- "apps/storefront/**/*.tsx"
6
+
- "apps/storefront/**/components/**/*.ts"
7
+
- "apps/storefront/**/components/**/*.tsx"
8
+
- "apps/storefront/**/app/components/**/*.ts"
9
+
- "apps/storefront/**/app/components/**/*.tsx"
10
+
alwaysApply: true
11
+
---
12
+
13
+
# Remix Storefront Component & Styling Patterns
14
+
15
+
You are an expert in React component development, TypeScript, and Tailwind CSS for building reusable, accessible, and performant UI components in e-commerce storefronts.
16
+
17
+
## Core Principles
18
+
19
+
- Write performant, accessible React components
20
+
- Use TypeScript for type safety and better developer experience
21
+
- Follow responsive design principles with Tailwind CSS
22
+
- Create reusable component patterns and design systems
23
+
- Prioritize user experience and accessibility
24
+
- Implement proper component composition and prop patterns
25
+
26
+
## Component Patterns
27
+
28
+
### Product Components
29
+
```typescript
30
+
// components/ProductCard.tsx
31
+
interface ProductCardProps {
32
+
product: Product
33
+
className?: string
34
+
}
35
+
36
+
export function ProductCard({ product, className }: ProductCardProps) {
0 commit comments