Skip to Content

Color Utilities

PrefixApplies to
bg-*Background color
text-*Text color
border-*Border color
tint-*Image tint
color-*Generic element color
shadow-*Box shadow color
text-shadow-*Text shadow color
text-outline-*Text outline color
ring-*Focus ring color

Color Sources

SourceExamples
Tailwind paletteslate-900, emerald-500, rose-400
Theme colorsprimary, secondary, danger, warning, success
Custom theme colorsAny color registered in the active theme
Built-inswhite, black, transparent
Arbitrary hex[#1e293b]
Opacity suffixesbg-black/60
Last updated on