Fill in the sentence
A booking written as one sentence, with the blanks as fields set right in the line. For short requests where a stack of boxes would feel like paperwork.
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-input-sentence-fields">
<form class="sn" action="#">
<p class="eye">Osteria Bellwether, the back room</p>
<p class="line">A table for
<span class="nb"><select aria-label="How many people"><option>one</option><option>two</option><option>three</option><option selected>four</option><option>five</option><option>six</option></select><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></span>
on <input type="text" aria-label="Day" value="Friday 4 December" size="15">
at <span class="nb"><input type="text" aria-label="Time" value="7:30 pm" size="6">,</span>
under the name <span class="nb"><input type="text" aria-label="Name for the booking" value="Okafor" size="7" autocomplete="family-name">.</span>
We are celebrating <span class="nb"><input type="text" aria-label="Occasion, if there is one" placeholder="nothing in particular" size="17">.</span></p>
<div class="foot">
<p>We hold a table for 15 minutes, then give it to the bar.</p>
<button type="button">Ask for this table<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button>
</div>
</form>
</div>
.ukc-input-sentence-fields { 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-input-sentence-fields *, .ukc-input-sentence-fields *::before, .ukc-input-sentence-fields *::after { box-sizing: border-box; }
.ukc-input-sentence-fields :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-sentence-fields :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-sentence-fields :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-sentence-fields :where(a) { color: inherit; }
.ukc-input-sentence-fields svg { flex: none; }
.ukc-input-sentence-fields { container-type: inline-size; inline-size: 100%; }
.ukc-input-sentence-fields .sn { display: grid; gap: 14px; max-width: 560px; }
.ukc-input-sentence-fields .eye { font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-input-sentence-fields .line { font-family: var(--uk-font-display, inherit); font-size: clamp(20px, 5.4cqi, 26px); line-height: 1.75; text-wrap: pretty; }
.ukc-input-sentence-fields .line input, .ukc-input-sentence-fields .line select { max-width: 100%; height: 1.45em; padding: 0 3px; border: 0; border-bottom: 1px dashed var(--line-strong); border-radius: 0; background: transparent; font-style: italic; color: var(--uk-accent); vertical-align: baseline; }
.ukc-input-sentence-fields .nb { white-space: nowrap; }
.ukc-input-sentence-fields .line select { -webkit-appearance: none; appearance: none; padding-right: 20px; cursor: pointer; }
.ukc-input-sentence-fields .nb svg { margin-left: -17px; vertical-align: -1px; color: var(--uk-accent); pointer-events: none; }
.ukc-input-sentence-fields .line option { background: var(--uk-paper); color: var(--uk-ink); font-style: normal; }
.ukc-input-sentence-fields .line input::placeholder { color: var(--uk-muted); opacity: 0.85; }
.ukc-input-sentence-fields .line input:hover, .ukc-input-sentence-fields .line select:hover { border-bottom-style: solid; }
.ukc-input-sentence-fields .line input:focus-visible, .ukc-input-sentence-fields .line select:focus-visible { outline: none; border-bottom: 2px solid var(--uk-accent); background-color: var(--tint); }
.ukc-input-sentence-fields .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; border-top: 1px solid var(--uk-line); }
.ukc-input-sentence-fields .foot p { flex: 1 1 200px; font-size: 13px; color: var(--uk-muted); }
.ukc-input-sentence-fields .foot button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: var(--uk-radius-md); background: var(--uk-ink); color: var(--uk-paper); font-weight: 600; cursor: pointer; }
.ukc-input-sentence-fields .foot button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
@supports (field-sizing: content) { .ukc-input-sentence-fields .line input, .ukc-input-sentence-fields .line select { field-sizing: content; min-width: 2ch; } }
More inputs
All 27Capitals, numbers and spaces. 16 characters fit on one strip.
14 of 16
Lot 0417. Ercol armchair, 1962
Whole pounds. Buyers see the asking price only, and lower offers are turned down for you.
As it appears on your invoices
Error: Enter an email address in the right format, like name@example.com
Great names are short and memorable.