A worked example, rendered from real sample data. Sign in to run the tool on your own input.
border=#d1d5db radius=8px accent=#6366f1.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: #374151; }
.form-field input, .form-field textarea, .form-field select {
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 10px 12px;
font: inherit;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
outline: 0;
border-color: #6366f1;
box-shadow: 0 0 0 3px #6366f122;
}
Style inputs, textareas, selects — focus ring, accent color, radius. Part of the DevTools Surf developer suite. Browse more tools in the CSS collection.