Color System
All available theme colors with usage examples
General Colors
Main app background
var(--background)Class examples:
bg-backgroundtext-backgroundborder-backgroundring-backgroundhover:bg-backgroundfocus:border-backgroundMain text color
var(--foreground)Class examples:
text-foregroundhover:text-foregrounddecoration-foregroundCards and Popovers
Card background
var(--card)Class examples:
bg-cardtext-cardborder-cardring-cardhover:bg-cardfocus:border-cardCard text
var(--card-foreground)Class examples:
text-card-foregroundhover:text-card-foregrounddecoration-card-foregroundPopover background
var(--popover)Class examples:
bg-popovertext-popoverborder-popoverring-popoverhover:bg-popoverfocus:border-popoverPopover text
var(--popover-foreground)Class examples:
text-popover-foregroundhover:text-popover-foregrounddecoration-popover-foregroundAccent Colors
Primary accent color
var(--primary)Class examples:
bg-primarytext-primaryborder-primaryring-primaryhover:bg-primaryfocus:border-primaryText on primary
var(--primary-foreground)Class examples:
text-primary-foregroundhover:text-primary-foregrounddecoration-primary-foregroundSecondary color
var(--secondary)Class examples:
bg-secondarytext-secondaryborder-secondaryring-secondaryhover:bg-secondaryfocus:border-secondaryText on secondary
var(--secondary-foreground)Class examples:
text-secondary-foregroundhover:text-secondary-foregrounddecoration-secondary-foregroundAccent highlight color
var(--accent)Class examples:
bg-accenttext-accentborder-accentring-accenthover:bg-accentfocus:border-accentText on accent
var(--accent-foreground)Class examples:
text-accent-foregroundhover:text-accent-foregrounddecoration-accent-foregroundService Colors
Muted background
var(--muted)Class examples:
bg-mutedtext-mutedborder-mutedring-mutedhover:bg-mutedfocus:border-mutedMuted text
var(--muted-foreground)Class examples:
text-muted-foregroundhover:text-muted-foregrounddecoration-muted-foregroundDestructive/error color
var(--destructive)Class examples:
bg-destructivetext-destructiveborder-destructivering-destructivehover:bg-destructivefocus:border-destructiveText on destructive
var(--destructive-foreground)Class examples:
text-destructive-foregroundhover:text-destructive-foregrounddecoration-destructive-foregroundBorders and Forms
Border color
var(--border)Class examples:
bg-bordertext-borderborder-borderring-borderhover:bg-borderfocus:border-borderInput background
var(--input)Class examples:
bg-inputtext-inputborder-inputring-inputhover:bg-inputfocus:border-inputFocus ring color
var(--ring)Class examples:
bg-ringtext-ringborder-ringring-ringhover:bg-ringfocus:border-ringDemonstration
Card Example
Example card using theme colors