Tags

A component that allows users to categorize content, display active filters, provide keywords, and/or allow for additional context.

Component checklist

Status

The status of the component

Ready for use!

Figma component

A link to the Figma library where the component lives.

Repository

A link to the repo where the component lives.

Usage


Use proper label and type colors

Do
Dark and light mode tags.

Use the appropriate light/dark type color style that will yield the most contrast between the label and tag background.

Don't
Two tags, one light and one dark.

Avoid enforcing the same type, color and style between colored tags. Some label + background combinations will fail in accessibility due to lack of contrast.

 

Keep to defined usage

Do
List of different coloured dismissable tags.

As a component, tags can be interacted with and therefore have specific use cases around them.

Don't
Tags used to indicate status on a table.

Tags do not replace highlighting, labels, statuses, and other non-interactive text decorations.