Brutalist Input
Bold offset-shadow stamp with hard edges and monospace type — a confident input that doesn't apologize for itself. Press collapses into the shadow on focus.
Brutalist Input the 28th of 28 designs in the 28 CSS Input Field Designs collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<label class="if-brut"> <span class="if-brut-label">USERNAME_</span> <input type="text" name="user-brut" placeholder="enter handle..." /> </label>
.if-brut {
display: grid;
gap: 8px;
width: 100%;
max-width: 280px;
}
.if-brut-label {
font-family: "Courier New", monospace;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.12em;
color: #f0eeff;
}
.if-brut input {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
background: #f0eeff;
border: 2.5px solid #1a1a2e;
border-radius: 0;
color: #1a1a2e;
font:
700 13px/1 "Courier New",
monospace;
letter-spacing: 0.06em;
outline: none;
box-shadow: 5px 5px 0 #ff6c8a;
transition:
transform 0.1s,
box-shadow 0.1s;
}
.if-brut input::placeholder {
color: rgba(26, 26, 46, 0.5);
}
.if-brut input:focus {
transform: translate(2px, 2px);
box-shadow: 3px 3px 0 #ff6c8a;
}
.if-brut input:invalid:not(:placeholder-shown) {
box-shadow: 5px 5px 0 #ff5d6c;
}