Components / Modals and sheets
Phone bottom sheet
A sheet that slides up from the bottom of a phone, with a grab handle, a title, and a list of actions.
INV-0412
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-bottom-sheet">
<div class="phone"><div class="dim"></div><div class="sheet" role="dialog" aria-modal="true" aria-labelledby="ukc-bs"><span class="grab" aria-hidden="true"></span><h3 id="ukc-bs">INV-0412</h3><ul>
<li><button type="button"><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"><rect x="3" y="5" width="18" height="14" rx="1"/><path d="M3 7l9 6 9-6"/></svg> Send to client</button></li>
<li><button type="button"><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"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg> Duplicate</button></li>
<li><button type="button"><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"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg> Download PDF</button></li>
<li><button type="button" class="bad"><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"><path d="M6 6l12 12M18 6L6 18"/></svg> Void invoice</button></li>
</ul></div></div>
</div>
.ukc-modal-bottom-sheet { 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-bottom-sheet *, .ukc-modal-bottom-sheet *::before, .ukc-modal-bottom-sheet *::after { box-sizing: border-box; }
.ukc-modal-bottom-sheet :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-modal-bottom-sheet :where(ul, ol) { padding: 0; list-style: none; }
.ukc-modal-bottom-sheet :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-modal-bottom-sheet :where(a) { color: inherit; }
.ukc-modal-bottom-sheet svg { flex: none; }
.ukc-modal-bottom-sheet .phone { position: relative; max-width: 340px; height: 380px; margin: 0 auto; border: 1px solid var(--uk-line); border-radius: 24px; overflow: hidden; background: var(--uk-surface); }
.ukc-modal-bottom-sheet .dim { position: absolute; inset: 0; background: color-mix(in srgb, color-mix(in srgb, var(--uk-ink) 20%, black) 40%, transparent); }
.ukc-modal-bottom-sheet .sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 18px; border-radius: 18px 18px 0 0; background: var(--uk-paper); }
.ukc-modal-bottom-sheet .grab { display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--line-strong); }
.ukc-modal-bottom-sheet h3 { padding: 0 8px 8px; font-size: 16px; font-family: var(--uk-font-mono, ui-monospace, monospace); }
.ukc-modal-bottom-sheet ul { display: grid; }
.ukc-modal-bottom-sheet button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 8px; border: 0; border-top: 1px solid var(--uk-line); background: none; font-size: 16px; text-align: left; cursor: pointer; }
.ukc-modal-bottom-sheet button.bad { color: var(--uk-danger); }
More modals and sheets
All 25- Esc
Invoices
- New invoiceN
- INV-0412 · Reyes Framing
- INV-0411 · Whitfield Homes
Actions
- Invite to crewI
Share "Kitchen reframe"
- MRMara ReyesOwner
- DWDana WhitfieldCan edit
Step 2 of 3
How do clients pay you?