Price tag
A swing tag on a string with the asking price written on it in big figures, and a tear-off stub for the lowest offer you will take.
Lot 0417. Ercol armchair, 1962
Whole pounds. Buyers see the asking price only, and lower offers are turned down for you.
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-price-tag">
<div class="pt">
<div class="tag">
<span class="hole" aria-hidden="true"></span>
<p class="lot">Lot 0417. Ercol armchair, 1962</p>
<label for="ukc-input-price-tag-p">Asking price</label>
<div class="amt"><span aria-hidden="true">£</span><input id="ukc-input-price-tag-p" type="text" inputmode="decimal" value="145" aria-describedby="ukc-input-price-tag-h"></div>
<div class="stub">
<label for="ukc-input-price-tag-l">Lowest offer you will take</label>
<div class="amt sm"><span aria-hidden="true">£</span><input id="ukc-input-price-tag-l" type="text" inputmode="decimal" value="110"></div>
</div>
<p class="hint" id="ukc-input-price-tag-h">Whole pounds. Buyers see the asking price only, and lower offers are turned down for you.</p>
</div>
<svg class="string" width="56" height="84" viewBox="0 0 56 84" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true"><path d="M47 42C30 40 14 26 3 3"/><path d="M47 42C28 46 12 60 2 80"/></svg>
</div>
</div>
.ukc-input-price-tag { 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-price-tag *, .ukc-input-price-tag *::before, .ukc-input-price-tag *::after { box-sizing: border-box; }
.ukc-input-price-tag :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-price-tag :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-price-tag :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-price-tag :where(a) { color: inherit; }
.ukc-input-price-tag svg { flex: none; }
.ukc-input-price-tag .pt { position: relative; max-width: 380px; padding: 6px 8px 6px 26px; }
.ukc-input-price-tag .string { position: absolute; left: 0; top: calc(50% - 42px); color: var(--uk-ink); pointer-events: none; }
.ukc-input-price-tag .tag { --cut: 30px; position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 50px; background: var(--uk-ink); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); rotate: -1.2deg; transform-origin: 21px 50%; }
.ukc-input-price-tag .tag::before { content: ""; position: absolute; inset: 2px; background: var(--high-tint); clip-path: polygon(29px 0, 100% 0, 100% 100%, 29px 100%, 0 calc(100% - 29px), 0 29px); }
.ukc-input-price-tag .tag > * { position: relative; }
.ukc-input-price-tag .tag > .hole { position: absolute; left: 14px; top: calc(50% - 7px); width: 14px; height: 14px; border: 2px solid var(--uk-ink); border-radius: 50%; background: var(--uk-paper); }
.ukc-input-price-tag .lot { margin-bottom: 8px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-input-price-tag label { font-size: 13px; font-weight: 700; }
.ukc-input-price-tag .amt { display: flex; align-items: baseline; gap: 4px; font-family: var(--uk-font-display, inherit); font-size: 46px; font-weight: 700; line-height: 1.1; }
.ukc-input-price-tag .amt span { font-size: 0.6em; }
.ukc-input-price-tag .amt input { width: 3.4ch; min-width: 0; padding: 0; border: 0; border-bottom: 2px dashed var(--uk-ink); border-radius: 0; background: transparent; font-variant-numeric: tabular-nums; }
.ukc-input-price-tag .amt input:focus-visible { outline: none; border-bottom-style: solid; border-bottom-color: var(--uk-accent); background: color-mix(in srgb, var(--uk-paper) 60%, transparent); }
.ukc-input-price-tag .stub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 12px; padding-top: 10px; border-top: 2px dotted var(--line-strong); }
.ukc-input-price-tag .stub label { font-weight: 400; }
.ukc-input-price-tag .amt.sm { font-size: 22px; }
.ukc-input-price-tag .amt.sm input { border-bottom-width: 1px; }
.ukc-input-price-tag .hint { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--uk-muted); }
More inputs
All 27As 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