Tag

The Tag represents resources and global terms to identify and linked with a text section to provide to the user more context and information regarding a topic. It usually appears in the top or bottom of the section and multiple tags can be concatenated to generate a series of resources displayed with a visual hierarchy that calls the user's attention.

Specifications

Tag design specifications
Tag design specifications

States

Tag states
Tag states

Also, this component is static, which means that there is only one difference between the default and hover state, changing the cursor from the default to the pointer cursor. The tag is merely a link to other resource or a place to display some information, so it is not intended that the flow of the component consider all the different states.

Anatomy

Tag anatomy
  1. 1.
    Icon
  2. 2.
    Label
  3. 3.
    Container

Design tokens

Color

Component tokenElementCore tokenValue
fontColorLabelcolor-black#000000
iconColorIconcolor-white#ffffff
focusColorContainercolor-blue-600#0095ff

*The tag component is using the box underneath, the values for the background are inherited from the definition in the component. By default, the background color is white and not themable, so it will be the same for both components.

Typography

Component tokenElementCore tokenValue
fontSizeLabelfont-scale-020.875rem / 14px
fontStyleLabelfont-style-normalnormal
fontWeightLabelfont-weight-regular400

Shadow

PropertyElementCore tokenValue
box-shadowContainershadow-default0 4px 6px -1px rgba(0,0,0,0.1)
box-shadowContainer:hovershadow-high0 8px 14px -2px rgba(0,0,0,0.1)

*The shadow-default token is used for the :enabled, :focus and :disabled states. The shadow-high for :hover and :active.

Spacing

Component tokenElementCore tokenValue
labelPaddingTopLabelspacing-0 0rem / 0px
labelPaddingBottomLabelspacing-0 0rem / 0px
labelPaddingLeftLabelspacing-161rem / 16px
labelPaddingRightLabelspacing-161rem / 16px

Size

Component tokenElementCore tokenValue
heightContainer-40px
iconHeightIcon-24px