Color System
Complete color palette with CSS custom properties from globals.css
infoThese colors automatically adapt to your system's dark/light mode preference using the theme toggle in the top navigation.
Layout Colors
Main background color for pages and containers
Primary text color for optimal readability
Background for card components and elevated surfaces
Text color for content inside cards
Subtle borders for dividers and component outlines
Interactive Colors
Main brand color for primary actions and highlights
Text color for primary buttons and elements
Secondary actions and alternative button styles
Text color for secondary buttons and elements
Subtle accent color for hover states and highlights
Text color for accent elements
Feedback Colors
Error states, delete actions, and warning indicators
Text color for destructive buttons and error messages
Success states, confirmation messages, and positive feedback
Text color for success buttons and confirmation messages
Subtle background for disabled or secondary content
Text color for secondary information and placeholders
Form Colors
Background color for form inputs and text fields
Focus ring color for keyboard navigation and accessibility
Overlay Colors
Background for popovers, tooltips, and floating elements
Text color for popover content
Chart Colors
Primary chart color for data visualization
Secondary chart color for data visualization
Tertiary chart color for data visualization
Quaternary chart color for data visualization
Quinary chart color for data visualization
Sidebar Colors
Background color for sidebar navigation components
Text color for sidebar content and navigation items
Primary color for sidebar active states and highlights
Text color for sidebar primary elements
Accent color for sidebar hover states and secondary highlights
Text color for sidebar accent elements
Border color for sidebar dividers and separators
Focus ring color for sidebar navigation elements
✅ Best Practices
- • Always use CSS custom properties:
hsl(var(--primary))
- • Use Tailwind classes:
bg-primary text-primary-foreground
- • Ensure proper contrast ratios for accessibility
- • Test both light and dark modes thoroughly
❌ Avoid
- • Hardcoded colors:
#3b82f6
orblue-500
- • RGB values:
rgb(59, 130, 246)
- • Creating separate CSS files for colors
- • Using colors without considering contrast