Password with strength
A password field with a show button inside and a four-step strength meter that names the level.
Good. Add a symbol to make it strong.
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-password">
<div class="pw">
<label for="ukc-pw">Create a password</label>
<div class="field"><input id="ukc-pw" type="password" value="framing-4417"><button type="button">Show</button></div>
<div class="meter" aria-hidden="true"><i class="on"></i><i class="on"></i><i class="on"></i><i></i></div>
<p class="lvl">Good. Add a symbol to make it strong.</p>
</div>
</div>
.ukc-input-password { 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-password *, .ukc-input-password *::before, .ukc-input-password *::after { box-sizing: border-box; }
.ukc-input-password :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-input-password :where(ul, ol) { padding: 0; list-style: none; }
.ukc-input-password :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-input-password :where(a) { color: inherit; }
.ukc-input-password svg { flex: none; }
.ukc-input-password .pw { display: grid; gap: 8px; max-width: 360px; }
.ukc-input-password label { font-weight: 600; }
.ukc-input-password .field { display: flex; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-md); background: var(--uk-paper); }
.ukc-input-password .field:focus-within { border-color: var(--uk-accent); }
.ukc-input-password input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; font-size: 16px; }
.ukc-input-password input:focus { outline: none; }
.ukc-input-password button { padding: 0 12px; border: 0; background: none; color: var(--uk-accent); font-weight: 600; cursor: pointer; }
.ukc-input-password .meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ukc-input-password .meter i { height: 4px; border-radius: 999px; background: var(--ink-soft); }
.ukc-input-password .meter i.on { background: var(--uk-accent); }
.ukc-input-password .lvl { font-size: 13px; color: var(--uk-muted); }
More inputs
All 27Drop photos here or browse
JPG or PNG, up to 10 MB each
- site-north-wall.jpg2.4 MB
- joist-detail.png812 KB
Weekdays only. For example, 28/10/2026
October 2026
Monday Tuesday Wednesday Thursday Friday Saturday Sunday To: Ridgeway job, 4 people