@@ -73,6 +73,28 @@ const ProductPage = createPage({
7373export default ProductPage ;
7474```
7575
76+ ### 5. Tailwind CSS 4 Only
77+
78+ ✅ ** REQUIRED** : Use Tailwind utility classes only
79+ ❌ ** BLOCKED** : No inline styles (` style={{...}} ` ), no CSS modules, no separate CSS files
80+
81+ ``` typescript
82+ // ✅ CORRECT - Tailwind utilities
83+ < div className = " rounded-lg border border-border bg-card p-4" >
84+ < h2 className = " text-lg font-semibold text-card-foreground" >
85+ {product .name }
86+ < / h2 >
87+ < / div >
88+
89+ // ❌ AVOID - Inline styles
90+ < div style = {{ padding : ' 1rem' }}>
91+
92+ // ❌ AVOID - CSS modules
93+ import styles from ' ./product-card.module.css' ;
94+ ```
95+
96+ ** Why?** Consistent styling approach, better performance, automatic dark mode support via theme variables.
97+
7698---
7799
78100## 📋 Quick Patterns
@@ -140,9 +162,6 @@ const { t } = getTranslation(context);
140162### Components
141163
142164``` typescript
143- // shadcn/ui: Add via npx shadcn@latest add <component-name>
144- // DO NOT modify src/components/ui/ directly
145-
146165// Suspense boundaries
147166import { Suspense } from ' react' ;
148167import { Await } from ' react-router' ;
@@ -156,6 +175,23 @@ import { Await } from 'react-router';
156175
157176** See ` components ` section for:** createPage HOC, file organization, best practices
158177
178+ ### Styling
179+
180+ ``` typescript
181+ // Tailwind utility classes
182+ < div className = " bg-background text-foreground border-border" >
183+ < button className = " bg-primary text-primary-foreground rounded-md px-4 py-2" >
184+ Click me
185+ < / button >
186+ < / div >
187+
188+ // shadcn/ui: Add via npx shadcn@latest add <component-name>
189+ import { Button } from ' @/components/ui/button' ;
190+ import { Card } from ' @/components/ui/card' ;
191+ ```
192+
193+ ** See ` styling ` section for:** Tailwind CSS 4 rules, Shadcn/ui components, dark mode, responsive design
194+
159195---
160196
161197## 🔍 Get Detailed Guidelines
@@ -171,6 +207,7 @@ Use the `storefront_next_development_guidelines` MCP tool with specific sections
171207** Available sections:**
172208- ` data-fetching ` - Loaders, actions, useScapiFetcher, data flow
173209- ` components ` - createPage HOC, Suspense, file organization
210+ - ` styling ` - Tailwind CSS 4, Shadcn/ui, styling guidelines
174211- ` testing ` - Vitest, Storybook, coverage requirements
175212- ` auth ` - Authentication and session management
176213- ` config ` - Configuration system
0 commit comments