Tag
Style
A tag is text on a pill-shaped background. It comes in a variety of colors, styles, and sizes. The text may be linked or include an optional decorative icon.
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 the UI Icons to see more options
Interactivity
Each tag style, color, and size can be text only or linked.
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.
          
      
               
          
          
            Example 
              Token 
              Description 
              
             
               
            
                
                  
                    xs
                  
                
               
              
                 
              4px spacer 
              
                
               
            
               
          
        
                
                  
                    md
                  
                
               
              
                 
              8px spacer 
              
                
               
            
Interaction states
Only tags with linked text have interaction states.
Hover
The tag border width increases to --rh-border-width-md on hover.
Focus and Active
A focus ring wraps text or the icon and text in both focus and active states. The border also changes as seen in the hover state.