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
@@ -259,12 +263,14 @@ business logic specific to the product.
259
263
#### shadcn/ui Components (Preferred)
260
264
261
265
We use [shadcn/ui](https://ui.shadcn.com/) components built on top of [Radix UI](https://www.radix-ui.com/) primitives. These components are:
266
+
262
267
-**Accessible by default** with ARIA attributes and keyboard navigation
263
268
-**Customizable** with TailwindCSS classes
264
269
-**Consistent** with our design system
265
270
-**Type-safe** with full TypeScript support
266
271
267
272
Existing shadcn/ui components can be found in `src/components/`. Examples include:
273
+
268
274
-`Checkbox` - Form checkbox input
269
275
-`ScrollArea` - Custom scrollable area
270
276
-`Table` - Data table with sorting and filtering
@@ -276,6 +282,7 @@ Existing shadcn/ui components can be found in `src/components/`. Examples includ
276
282
#### MUI Components (Legacy)
277
283
278
284
The codebase still contains MUI v5 components that are being phased out. When encountering MUI components:
285
+
279
286
1.**Check if a shadcn/ui equivalent exists** in `src/components/`
280
287
2.**Migrate to the shadcn/ui version** when making changes
281
288
3.**Create a new shadcn/ui component** if no equivalent exists
@@ -297,6 +304,7 @@ We strive to keep our UI accessible. **shadcn/ui components are accessible by de
297
304
#### Color Contrast
298
305
299
306
Colors should come from our semantic color tokens in the Tailwind theme. These tokens are designed to meet WCAG level AA compliance (4.5:1 contrast ratio). If you need to add a custom color, ensure proper contrast using:
0 commit comments