Key and value chips
Two-part mono chips for environments, versions, and regions. The key is quiet, the value is not.
envproduction
version2.4.1
regionus-west
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-badge-key-value">
<div class="row">
<span class="kv"><span>env</span>production</span>
<span class="kv"><span>version</span>2.4.1</span>
<span class="kv"><span>region</span>us-west</span>
</div>
</div>
.ukc-badge-key-value { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-badge-key-value *, .ukc-badge-key-value *::before, .ukc-badge-key-value *::after { box-sizing: border-box; }
.ukc-badge-key-value :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-badge-key-value :where(ul, ol) { padding: 0; list-style: none; }
.ukc-badge-key-value :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-badge-key-value :where(a) { color: inherit; }
.ukc-badge-key-value svg { flex: none; }
.ukc-badge-key-value .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ukc-badge-key-value .kv { display: inline-flex; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); overflow: hidden; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; }
.ukc-badge-key-value .kv > span { padding: 3px 7px; background: var(--uk-surface); color: var(--uk-muted); border-right: 1px solid var(--uk-line); }
.ukc-badge-key-value .kv { padding-right: 7px; align-items: center; gap: 7px; }
More badges and chips
All 25- MRMara Reyes DWDana Whitfield
- Approved Priority Void
- New
Winter catalog
48 items
- Upload62% Storage88%
Press ⌘K to search, Shift? for help, Esc to close.