Tokens

Colors

OKLCH semantic color system

All color values use the OKLCH format (oklch(0.205 0.015 265)) for perceptual uniformity and gamut mapping.

Semantic Colors

TokenDescription
--hui-color-backgroundPage background
--hui-color-foregroundMain text
--hui-color-primaryPrimary
--hui-color-primary-foregroundText on primary
--hui-color-primary-hoverPrimary hover
--hui-color-secondarySecondary
--hui-color-secondary-foregroundText on secondary
--hui-color-secondary-hoverSecondary hover
--hui-color-destructiveDestructive
--hui-color-destructive-foregroundText on destructive
--hui-color-destructive-hoverDestructive hover
--hui-color-warningWarning
--hui-color-warning-foregroundText on warning
--hui-color-warning-hoverWarning hover
--hui-color-successSuccess
--hui-color-success-foregroundText on success
--hui-color-success-hoverSuccess hover
--hui-color-infoInfo
--hui-color-info-foregroundText on info
--hui-color-info-hoverInfo hover
--hui-color-mutedMuted background
--hui-color-muted-foregroundMuted text
--hui-color-accentAccent
--hui-color-accent-foregroundText on accent
--hui-color-accent-hoverAccent hover

Utility Colors

TokenDescription
--hui-color-borderBorder
--hui-color-ringFocus ring
--hui-color-cardCard background
--hui-color-card-foregroundText on card
--hui-color-popoverPopover background
--hui-color-popover-foregroundText on popover
--hui-color-inputInput border
--hui-color-overlayOverlay

Chart Colors

TokenDescription
--hui-color-chart-1 ~ --hui-color-chart-55 chart colors

Alpha Colors

For transparency, use color-mix:

.my-element {
  background-color: color-mix(in oklch, var(--hui-color-primary) 50%, transparent);
}

On this page