--- class: css --- # badge `%badge` is a slightly rounded pill (also `%badge-with-icon` for badges that need icons), made to easily fit inside a `%horizontal-kv-list` along with other key/values, or on its own as a single badge. Colors default to grays, but can be overridden via selectors. ```hbs preview-template
Can be used as part of a horizontal-kv-list
Kind
Terminating Gateway
Service Identity
service-0
Something
else, here
...or as a single `dl` element on its own
Kind
Terminating Gateway
Service Identity
service-0
``` ```css /* part of a kv list */ dl { @extend %horizontal-kv-list; } dt.service-identity { @extend %badge; } dt.kind-terminating-gateway { @extend %badge, %badge-with-icon; } dt.kind-terminating-gateway::before { @extend %with-gateway-mask, %as-pseudo; } /* element on its own */ dl.service-identity, dl.kind-terminating-gateway { @extend %horizontal-kv-list; } dl.service-identity dt { @extend %badge; } dl.kind-terminating-gateway dt { @extend %badge, %badge-with-icon; } dl.kind-terminating-gateway dt::before { @extend %with-gateway-mask, %as-pseudo; } ```