Label maker
A field that looks like the tape coming out of a label maker: raised capitals on a strip with a torn edge. Pick the tape, watch the count, print.
Capitals, numbers and spaces. 16 characters fit on one strip.
14 of 16
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-label-maker">
<div class="lm">
<label class="lbl" for="ukc-input-label-maker-t">Jar label</label>
<p class="hint" id="ukc-input-label-maker-h">Capitals, numbers and spaces. 16 characters fit on one strip.</p>
<div class="out">
<span class="slot" aria-hidden="true"></span>
<div class="tape"><input id="ukc-input-label-maker-t" type="text" value="SMOKED PAPRIKA" maxlength="16" spellcheck="false" autocapitalize="characters" autocomplete="off" aria-describedby="ukc-input-label-maker-h"></div>
<p class="cnt"><strong>14</strong> of 16</p>
</div>
<div class="ctl">
<fieldset class="tapes">
<legend>Tape</legend>
<label><input class="sr c1" type="radio" name="ukc-input-label-maker-tape" checked><span><i></i>Plain</span></label>
<label><input class="sr c2" type="radio" name="ukc-input-label-maker-tape"><span><i></i>Bright</span></label>
<label><input class="sr c3" type="radio" name="ukc-input-label-maker-tape"><span><i></i>Marker</span></label>
</fieldset>
<button type="button" class="print">Print 1 label</button>
</div>
</div>
</div>
.ukc-input-label-maker { 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-label-maker *, .ukc-input-label-maker *::before, .ukc-input-label-maker *::after { box-sizing: border-box; }
.ukc-input-label-maker :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-label-maker :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-label-maker :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-label-maker :where(a) { color: inherit; }
.ukc-input-label-maker svg { flex: none; }
.ukc-input-label-maker .lm { display: grid; gap: 6px; max-width: 440px; }
.ukc-input-label-maker .lbl { font-weight: 700; }
.ukc-input-label-maker .hint { margin-top: -4px; font-size: 13px; color: var(--uk-muted); }
.ukc-input-label-maker .out { display: flex; align-items: center; margin: 10px 0 8px; min-width: 0; }
.ukc-input-label-maker .slot { flex: none; width: 14px; height: 60px; border: 1px solid var(--line-strong); border-right-width: 4px; border-radius: 4px 0 0 4px; background: var(--ink-soft); }
.ukc-input-label-maker .tape { --tape: var(--uk-ink); --letters: var(--uk-paper); min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 20px 0 14px; background: var(--tape); color: var(--letters); clip-path: polygon(0 0, 100% 0%, calc(100% - 5px) 12.5%, 100% 25%, calc(100% - 5px) 37.5%, 100% 50%, calc(100% - 5px) 62.5%, 100% 75%, calc(100% - 5px) 87.5%, 100% 100%, 0 100%); }
.ukc-input-label-maker:has(.c2:checked) .tape { --tape: var(--uk-accent); --letters: var(--uk-accent-ink); }
.ukc-input-label-maker:has(.c3:checked) .tape { --tape: var(--uk-highlight); --letters: color-mix(in srgb, var(--uk-ink) 15%, black); }
.ukc-input-label-maker .tape input { width: 21ch; min-width: 0; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; caret-color: currentColor; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 16px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-shadow: 0 1px 0 color-mix(in srgb, black 45%, transparent), 0 -1px 0 color-mix(in srgb, white 30%, transparent); }
.ukc-input-label-maker .tape input:focus { outline: none; }
.ukc-input-label-maker .out:focus-within .tape { box-shadow: inset 0 -3px 0 var(--letters); }
.ukc-input-label-maker .out:focus-within .slot { border-color: var(--uk-accent); }
.ukc-input-label-maker .ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ukc-input-label-maker .tapes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ukc-input-label-maker .tapes legend { float: left; padding: 0; margin-right: 4px; font-size: 13px; color: var(--uk-muted); }
.ukc-input-label-maker .tapes span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 6px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); font-size: 13px; cursor: pointer; }
.ukc-input-label-maker .tapes i { width: 14px; height: 14px; border-radius: 2px; background: var(--uk-ink); box-shadow: 0 0 0 1px var(--line-strong); }
.ukc-input-label-maker .tapes label:nth-of-type(2) i { background: var(--uk-accent); }
.ukc-input-label-maker .tapes label:nth-of-type(3) i { background: var(--uk-highlight); }
.ukc-input-label-maker .tapes input:checked + span { border: 2px solid var(--uk-ink); padding: 0 8px 0 5px; font-weight: 700; }
.ukc-input-label-maker .tapes input:focus-visible + span { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-input-label-maker .cnt { flex: none; margin-left: 12px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 12px; color: var(--uk-muted); }
.ukc-input-label-maker .cnt strong { color: var(--uk-ink); }
.ukc-input-label-maker .print { height: 36px; padding: 0 14px; border: 1px solid var(--uk-ink); border-radius: var(--uk-radius-sm); background: transparent; color: var(--uk-ink); font-weight: 600; cursor: pointer; }
.ukc-input-label-maker .print:hover { background: var(--uk-ink); color: var(--uk-paper); }
.ukc-input-label-maker .print:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-input-label-maker .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
More inputs
All 27Lot 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.
You can change this later.
Enter a number, like 12000.
- Street and numberEnter a 5 digit ZIP code