Components / Modals and sheets
Command palette
A search field over grouped results with shortcuts, the highlighted row ready for Enter.
Esc
Invoices
- New invoiceN
- INV-0412 · Reyes Framing
- INV-0411 · Whitfield Homes
Actions
- Invite to crewI
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-modal-command-palette">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-label="Command palette">
<div class="in"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg><input type="text" value="inv" aria-label="Search commands"><kbd>Esc</kbd></div>
<p class="grp">Invoices</p>
<ul>
<li class="on"><svg width="16" height="16" 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>New invoice</span><kbd>N</kbd></li>
<li><svg width="16" height="16" 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>INV-0412 · Reyes Framing</span></li>
<li><svg width="16" height="16" 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>INV-0411 · Whitfield Homes</span></li>
</ul>
<p class="grp">Actions</p>
<ul><li><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg><span>Invite to crew</span><kbd>I</kbd></li></ul>
</div></div>
</div>
.ukc-modal-command-palette { 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-modal-command-palette *, .ukc-modal-command-palette *::before, .ukc-modal-command-palette *::after { box-sizing: border-box; }
.ukc-modal-command-palette :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-command-palette :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-command-palette :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-command-palette :where(a) { color: inherit; }
.ukc-modal-command-palette svg { flex: none; }
.ukc-modal-command-palette .bd { display: grid; place-items: center; padding: 28px 16px; border-radius: var(--uk-radius-lg); background: color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 50%, transparent); }
.ukc-modal-command-palette .dlg { width: 100%; max-width: 440px; background: var(--uk-paper); border-radius: var(--uk-radius-lg); box-shadow: 0 20px 50px color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 35%, transparent); }
.ukc-modal-command-palette .dlg { max-width: 480px; overflow: hidden; padding-bottom: 6px; }
.ukc-modal-command-palette .in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--uk-line); color: var(--uk-muted); }
.ukc-modal-command-palette .in input { flex: 1; height: 52px; border: 0; background: transparent; font-size: 17px; color: var(--uk-ink); }
.ukc-modal-command-palette .in input:focus { outline: none; }
.ukc-modal-command-palette kbd { padding: 1px 6px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--uk-muted); }
.ukc-modal-command-palette .grp { padding: 10px 16px 4px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-modal-command-palette ul { padding: 0 6px; }
.ukc-modal-command-palette li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--uk-radius-md); font-size: 14px; cursor: pointer; }
.ukc-modal-command-palette li.on { background: var(--tint); color: var(--accent-deep); }
More modals and sheets
All 25Share "Kitchen reframe"
- MRMara ReyesOwner
- DWDana WhitfieldCan edit
Step 2 of 3
How do clients pay you?
North wall, before drywall3 / 48