Avatar picker
Pick a drawn face and a background from two rows of radios, and the big preview follows along. For profiles where nobody has to upload a photo.
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-avatar-token-picker">
<fieldset class="pk">
<legend>Your player token</legend>
<div class="main">
<div class="side">
<div class="pre" aria-hidden="true"><svg class="pa" viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M14.5 19.5c-.8-7.5 3.6-12 9.5-12s10.3 4.5 9.5 12c-2.4-3.8-5.6-5.5-9.5-5.5s-7.1 1.7-9.5 5.5z"/></svg><svg class="pb" viewBox="0 0 48 48" aria-hidden="true"><path class="hr" d="M12.5 34V19a11.5 11.5 0 0 1 23 0v15z"/><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M15 18c1.8-4.6 5-7 9-7s7.2 2.4 9 7c-2.9-1.9-5.9-2.8-9-2.8s-6.1.9-9 2.8z"/></svg><svg class="pc" viewBox="0 0 48 48" aria-hidden="true"><circle class="hr" cx="24" cy="7.5" r="4.5"/><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M14.5 19.5c-.8-7.5 3.6-12 9.5-12s10.3 4.5 9.5 12c-2.4-3.8-5.6-5.5-9.5-5.5s-7.1 1.7-9.5 5.5z"/><g class="ft"><circle cx="20.6" cy="20.5" r="3.2"/><circle cx="27.4" cy="20.5" r="3.2"/></g></svg><svg class="pd" viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M15.2 21.5c.6 5.6 4.2 9 8.8 9s8.2-3.4 8.8-9c-2.4 2.4-5.4 3.4-8.8 3.4s-6.4-1-8.8-3.4z"/></svg><svg class="pe" viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><g class="hr"><circle cx="17" cy="13.5" r="4.6"/><circle cx="24" cy="11" r="5"/><circle cx="31" cy="13.5" r="4.6"/><circle cx="14.8" cy="19" r="3.4"/><circle cx="33.2" cy="19" r="3.4"/></g></svg></div>
<p class="as">Plays as <strong>Rook</strong></p>
</div>
<div class="ctl">
<p class="lb">Face</p>
<div class="opts">
<label class="fo"><input class="vh fa" type="radio" name="ukc-avatar-token-picker-face"><span class="th"><svg viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M14.5 19.5c-.8-7.5 3.6-12 9.5-12s10.3 4.5 9.5 12c-2.4-3.8-5.6-5.5-9.5-5.5s-7.1 1.7-9.5 5.5z"/></svg></span><span class="tick" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="vh">Short hair</span></label>
<label class="fo"><input class="vh fb" type="radio" name="ukc-avatar-token-picker-face"><span class="th"><svg viewBox="0 0 48 48" aria-hidden="true"><path class="hr" d="M12.5 34V19a11.5 11.5 0 0 1 23 0v15z"/><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M15 18c1.8-4.6 5-7 9-7s7.2 2.4 9 7c-2.9-1.9-5.9-2.8-9-2.8s-6.1.9-9 2.8z"/></svg></span><span class="tick" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="vh">Long hair</span></label>
<label class="fo"><input class="vh fc" type="radio" name="ukc-avatar-token-picker-face" checked><span class="th"><svg viewBox="0 0 48 48" aria-hidden="true"><circle class="hr" cx="24" cy="7.5" r="4.5"/><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M14.5 19.5c-.8-7.5 3.6-12 9.5-12s10.3 4.5 9.5 12c-2.4-3.8-5.6-5.5-9.5-5.5s-7.1 1.7-9.5 5.5z"/><g class="ft"><circle cx="20.6" cy="20.5" r="3.2"/><circle cx="27.4" cy="20.5" r="3.2"/></g></svg></span><span class="tick" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="vh">Bun and glasses</span></label>
<label class="fo"><input class="vh fd" type="radio" name="ukc-avatar-token-picker-face"><span class="th"><svg viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><path class="hr" d="M15.2 21.5c.6 5.6 4.2 9 8.8 9s8.2-3.4 8.8-9c-2.4 2.4-5.4 3.4-8.8 3.4s-6.4-1-8.8-3.4z"/></svg></span><span class="tick" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="vh">Beard</span></label>
<label class="fo"><input class="vh fe" type="radio" name="ukc-avatar-token-picker-face"><span class="th"><svg viewBox="0 0 48 48" aria-hidden="true"><path class="tp" d="M5 49c1.2-11 8.6-17.5 19-17.5S41.8 38 43 49z"/><circle class="sk" cx="24" cy="20" r="9"/><circle class="ey" cx="20.6" cy="20.5" r="1.1"/><circle class="ey" cx="27.4" cy="20.5" r="1.1"/><path class="ft" d="M21 24.6c2 1.5 4 1.5 6 0"/><g class="hr"><circle cx="17" cy="13.5" r="4.6"/><circle cx="24" cy="11" r="5"/><circle cx="31" cy="13.5" r="4.6"/><circle cx="14.8" cy="19" r="3.4"/><circle cx="33.2" cy="19" r="3.4"/></g></svg></span><span class="tick" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="vh">Curly hair</span></label>
</div>
<p class="lb">Felt</p>
<div class="opts">
<label class="to"><input class="vh ta" type="radio" name="ukc-avatar-token-picker-felt"><span class="sw a" aria-hidden="true"></span>Baize</label>
<label class="to"><input class="vh tb" type="radio" name="ukc-avatar-token-picker-felt" checked><span class="sw b" aria-hidden="true"></span>Lamp</label>
<label class="to"><input class="vh tc" type="radio" name="ukc-avatar-token-picker-felt"><span class="sw c" aria-hidden="true"></span>Slate</label>
<label class="to"><input class="vh td" type="radio" name="ukc-avatar-token-picker-felt"><span class="sw d" aria-hidden="true"></span>Card back</label>
</div>
</div>
</div>
</fieldset>
</div>
.ukc-avatar-token-picker { 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-avatar-token-picker *, .ukc-avatar-token-picker *::before, .ukc-avatar-token-picker *::after { box-sizing: border-box; }
.ukc-avatar-token-picker :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-avatar-token-picker :where(ul, ol) { padding: 0; list-style: none; }
.ukc-avatar-token-picker :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-avatar-token-picker :where(a) { color: inherit; }
.ukc-avatar-token-picker svg { flex: none; }
.ukc-avatar-token-picker .vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-avatar-token-picker .sk { fill: var(--uk-paper); stroke: var(--uk-ink); stroke-width: 1.5; }
.ukc-avatar-token-picker .hr, .ukc-avatar-token-picker .tp, .ukc-avatar-token-picker .ey { fill: var(--uk-ink); }
.ukc-avatar-token-picker .ft { fill: none; stroke: var(--uk-ink); stroke-width: 1.25; stroke-linecap: round; }
.ukc-avatar-token-picker .pk { max-width: 440px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ukc-avatar-token-picker legend { margin-bottom: 12px; padding: 0; font-weight: 600; }
.ukc-avatar-token-picker .main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 22px; }
.ukc-avatar-token-picker .side { width: 112px; text-align: center; }
.ukc-avatar-token-picker .pre { --felt: var(--tint-strong); width: 112px; height: 112px; overflow: hidden; border-radius: 50%; background: var(--felt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uk-ink) 14%, transparent); }
.ukc-avatar-token-picker .pre svg { display: none; width: 100%; height: 100%; }
.ukc-avatar-token-picker:has(.fa:checked) .pa, .ukc-avatar-token-picker:has(.fb:checked) .pb, .ukc-avatar-token-picker:has(.fc:checked) .pc, .ukc-avatar-token-picker:has(.fd:checked) .pd, .ukc-avatar-token-picker:has(.fe:checked) .pe { display: block; }
.ukc-avatar-token-picker:has(.tb:checked) .pre { --felt: var(--high-tint); }
.ukc-avatar-token-picker:has(.tc:checked) .pre { --felt: var(--ink-soft); }
.ukc-avatar-token-picker:has(.td:checked) .pre { --felt: var(--uk-accent); }
.ukc-avatar-token-picker .as { margin-top: 8px; font-size: 12px; line-height: 1.35; color: var(--uk-muted); }
.ukc-avatar-token-picker .as strong { display: block; font-size: 14px; color: var(--uk-ink); }
.ukc-avatar-token-picker .ctl { flex: 1 1 220px; min-width: 0; }
.ukc-avatar-token-picker .lb { margin-bottom: 8px; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-avatar-token-picker .opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ukc-avatar-token-picker .opts:last-child { gap: 8px; margin-bottom: 0; }
.ukc-avatar-token-picker .fo { position: relative; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.ukc-avatar-token-picker .th { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--ink-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uk-ink) 12%, transparent); }
.ukc-avatar-token-picker .th svg { display: block; width: 100%; height: 100%; }
.ukc-avatar-token-picker .fo:has(input:checked) { box-shadow: 0 0 0 2px var(--uk-paper), 0 0 0 4px var(--uk-accent); }
.ukc-avatar-token-picker .tick { position: absolute; right: -5px; bottom: -4px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; background: var(--uk-accent); color: var(--uk-accent-ink); box-shadow: 0 0 0 2px var(--uk-paper); }
.ukc-avatar-token-picker .fo:has(input:checked) .tick { display: grid; }
.ukc-avatar-token-picker .fo:has(input:focus-visible) { outline: 2px solid var(--uk-ink); outline-offset: 6px; }
.ukc-avatar-token-picker .to { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 6px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); font-size: 13px; cursor: pointer; }
.ukc-avatar-token-picker .to:hover { border-color: var(--line-strong); }
.ukc-avatar-token-picker .to:has(input:checked) { border-color: var(--uk-ink); box-shadow: inset 0 0 0 1px var(--uk-ink); font-weight: 600; }
.ukc-avatar-token-picker .to:has(input:focus-visible) { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-avatar-token-picker .sw { width: 16px; height: 16px; border-radius: 50%; background: var(--tint-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uk-ink) 22%, transparent); }
.ukc-avatar-token-picker .sw.b { background: var(--high-tint); }
.ukc-avatar-token-picker .sw.c { background: var(--ink-soft); }
.ukc-avatar-token-picker .sw.d { background: var(--uk-accent); }
More avatars
All 29MV Kittiwake14:10 sailing, Uig to Lochmaddy
Hamish BrodieMasterOn watch
- Radio
- Channel 12, bridge
- Ticket
- Master under 3000 GT, renews Mar 2027
- Relief
- Isla Munro at 18:00
Isla MunroChief officerStandby
- Radio
- Channel 12, car deck
- Ticket
- Chief mate, renews Aug 2028
- Takes over
- 18:00 from Hamish Brodie
Dougie KerrEngineerOn watch
- Radio
- Channel 8, engine room
- Ticket
- Second engineer, renews Jan 2027
- Relief
- None this sailing
Rhona NicolsonPurserAshore
- Back
- Friday, 06:40 sailing
- Cover
- Ticket desk run from Uig office
Dockside RoversThursday, 7:30 pm, pitch 2
- Yusuf AdeyemiForward
- Cara MillsLeft
- Leo OkaforRight, captain
- Petra NovakBack
- Sam DoyleKeeper
- Ravi Thakur
Mel Fraserankle, back 11 Dec
BA Beatrix Aldous
Tea buyer · Aldous & Finch
Tasting notes on the spring Darjeeling go out on Friday.
- Rohan FinchBlender
- Mirela StanWarehouse
- Tobias EkAccounts
- Greta MollSpeaking
- Dev OseiListening
- Hana TakedaMuted
- Finn BarrosDropped, dialing back
Recording take 34 separate tracks
Front desk handoverHarbour Lane Hotel, Friday
-
MBAPDone
Marguerite to Agnes
Late desk, 2:00 pm
-
APKMNow
Agnes to Kofi
Night desk, 10:00 pm. Room 14 checks in late
-
KM
Kofi to nobody yet
Day desk, 6:00 am. Needs cover
-