Icon tiles
Big square buttons with the icon up top and the label at the bottom, for the three or four things people come to do. One leads, one can carry a count.
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-button-icon-tiles">
<ul class="tiles">
<li><button class="tile lead" type="button"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="16" rx="1"/><path d="M3 10h18M8 3v4M16 3v4"/></svg><span>Book a visit</span></button></li>
<li><button class="tile" type="button"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="8" width="19" height="8" rx="4" transform="rotate(-45 12 12)"/><path d="M9.2 9.2l5.6 5.6"/></svg><span>Refill a prescription</span></button></li>
<li><button class="tile" type="button"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="1"/><path d="M3 7l9 6 9-6"/></svg><span>Message your nurse</span></button></li>
<li><button class="tile" type="button"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><span>Test results</span><em class="new">2 new</em></button></li>
</ul>
</div>
.ukc-button-icon-tiles { 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-button-icon-tiles *, .ukc-button-icon-tiles *::before, .ukc-button-icon-tiles *::after { box-sizing: border-box; }
.ukc-button-icon-tiles :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-button-icon-tiles :where(ul, ol) { padding: 0; list-style: none; }
.ukc-button-icon-tiles :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-button-icon-tiles :where(a) { color: inherit; }
.ukc-button-icon-tiles svg { flex: none; }
.ukc-button-icon-tiles .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 10px; max-width: 640px; }
.ukc-button-icon-tiles .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; height: 100%; min-height: 108px; padding: 14px; border: var(--uk-border-width) solid var(--uk-line); border-radius: min(var(--uk-radius-lg), 14px); background: var(--uk-surface); color: var(--uk-ink); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color var(--uk-motion-duration) var(--uk-motion-ease), transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-button-icon-tiles .tile svg { color: var(--uk-accent); }
.ukc-button-icon-tiles .tile:hover { border-color: var(--uk-ink); }
.ukc-button-icon-tiles .tile:active { transform: translateY(1px); }
.ukc-button-icon-tiles .tile.lead { border-color: var(--uk-accent); background: var(--uk-accent); color: var(--uk-accent-ink); }
.ukc-button-icon-tiles .tile.lead svg { color: inherit; }
.ukc-button-icon-tiles .tile.lead:hover { border-color: var(--accent-deep); background: var(--accent-deep); }
.ukc-button-icon-tiles .new { position: absolute; top: 13px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--uk-ink); color: var(--uk-paper); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; font-style: normal; font-weight: 400; }
.ukc-button-icon-tiles .tile:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ukc-button-icon-tiles .tile { transition: none; } }