Tag
On this page
Style
A tag is text on a pill-shaped background. It comes in a variety of colors, styles, and sizes.
Anatomy
- Text
- Decorative icon
- Linked text
Variants
Style
There are three available tag styles: Filled
, Outlined
, and Desaturated
.
Color
There are nine available tag colors. The Desaturated style uses only one color for both the border and text.
Size
There are two available tag sizes. Each style and color has Default
and
Compact
sizes.
Tag size | Text size token |
---|---|
Default | --rh-font-size-body-text-sm |
Compact | --rh-font-size-body-text-xs |
Decorative icon
Each tag style, color, and size includes an optional decorative icon.
Helpful tip
Browse our UI Icons to see what icons are available to use.
Color scheme
Each tag style, color, and size is available for both light and dark color schemes.
Light scheme
Dark scheme
Space
Tags have 8px of space in between each other in a row or when stacked.
Interaction states
Hover
Styles will change on hover depending on how a tag is used.
- The dashed underline is the same color as the text it is applied to
- If a tag has linked text, the underline will disappear on hover
- A disabled tag has no states
Focus and Active
A focus ring wraps around the text and icon in both focus and active states. Hover state styles remain the same.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.