Design System
Styling conventions, Tailwind CSS configuration, and design tokens
Overview
The design system is built on Tailwind CSS 4.1.17 with custom configuration for consistent styling across the application.
Color Palette
The application uses CSS custom properties for theming:
Typography
Font Stack
The application uses system fonts for optimal performance:
Text Sizes
Use Tailwind's typography scale:
Spacing
Use Tailwind's spacing scale consistently:
| Class | Value | Usage |
|---|---|---|
p-1 / m-1 | 0.25rem (4px) | Tight spacing |
p-2 / m-2 | 0.5rem (8px) | Small spacing |
p-4 / m-4 | 1rem (16px) | Default spacing |
p-6 / m-6 | 1.5rem (24px) | Medium spacing |
p-8 / m-8 | 2rem (32px) | Large spacing |
Border Radius
Use the --radius variable for consistent rounding:
Shadows
Component Variants
Use class-variance-authority for component variants:
Responsive Design
Use Tailwind's responsive prefixes:
Breakpoints
| Prefix | Min Width | Description |
|---|---|---|
sm: | 640px | Small devices |
md: | 768px | Tablets |
lg: | 1024px | Laptops |
xl: | 1280px | Desktops |
2xl: | 1536px | Large screens |
Animation
Framer Motion
Use Framer Motion for complex animations:
Tailwind Animations
Transitions
Glassmorphism
The GlassCard component implements glassmorphism:
CSS implementation:
Accessibility
Focus States
All interactive elements have visible focus states:
Color Contrast
Ensure WCAG AA compliance (4.5:1 for normal text, 3:1 for large text):
Screen Reader Support
Utility Function
The cn utility merges Tailwind classes intelligently: