Key caps
Keyboard keys for shortcuts in menus and help text, with a raised bottom edge.
Press ⌘K to search, Shift? for help, Esc to close.
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-caps">
<p class="row">Press <kbd>⌘</kbd><kbd>K</kbd> to search, <kbd>Shift</kbd><kbd>?</kbd> for help, <kbd>Esc</kbd> to close.</p>
</div>
.ukc-badge-key-caps { 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-caps *, .ukc-badge-key-caps *::before, .ukc-badge-key-caps *::after { box-sizing: border-box; }
.ukc-badge-key-caps :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-badge-key-caps :where(ul, ol) { padding: 0; list-style: none; }
.ukc-badge-key-caps :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-badge-key-caps :where(a) { color: inherit; }
.ukc-badge-key-caps svg { flex: none; }
.ukc-badge-key-caps .row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14px; color: var(--uk-muted); }
.ukc-badge-key-caps kbd { min-width: 24px; padding: 1px 6px; border: 1px solid var(--uk-line); border-bottom-width: 3px; border-radius: var(--uk-radius-sm); background: var(--uk-surface); color: var(--uk-ink); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; text-align: center; }
More badges and chips
All 25- New
Winter catalog
48 items
FeaturedCrew plan
$24 a month
PaidInvoice 1042
$2,140
- MR NewSpring price list Sold out DraftQuote 88
- Street tree planting
- Youth music room
- Allotment water tanks
- Towpath lights, final report2 days overdue
- Library roof repair
Hollow Oak Dairy
Raw milk cheese · farm visited 3 Nov
Marsh Lane Honey
Heather and borage honey · hives counted 12 Oct
Tiller & Sons Veg
Visit booked for 4 Dec
Verified growerCheck pending