generalcss

Label

Compact solid-filled pill label with seven color schemes.

CSS Variables

VariableDefaultScopeDescription
--z-label-bgvar(--z-bg).z-labelBackground color of the label.
--z-label-bg-o100%.z-labelOpacity applied to the background color.
--z-label-bordervar(--z-border).z-labelBorder color.
--z-label-border-ovar(--z-border-o).z-labelOpacity applied to the border color.
--z-label-colorvar(--z-bg-f).z-labelText color.
--z-label-color-o100%.z-labelOpacity applied to the text color.
--z-label-shadow · hookvar(--z-global-shadow).z-labelBox shadow; falls back to the global shadow.

CSS Classes

ClassRoleApplies toDescription
.z-labelroot.z-labelInline solid-filled pill for short labels.
.z-label-dangermodifier.z-labelDanger color scheme with white text.
.z-label-destructivemodifier.z-labelDestructive color scheme from the destructive palette tokens.
.z-label-infomodifier.z-labelInfo color scheme with white text.
.z-label-primarymodifier.z-labelPrimary color scheme.
.z-label-secondarymodifier.z-labelSecondary color scheme.
.z-label-successmodifier.z-labelSuccess color scheme with white text.
.z-label-warningmodifier.z-labelWarning color scheme with white text.