About this set
Four treatments for a single-line text field, each with a visible label above the input. Bordered is the default: a white field with a 1px slate border and a 9px radius, for most forms. Filled sits on a light slate tint with square bottom corners and a bottom rule, which suits dense settings screens where full borders get busy. Underline drops everything but a 2px rule under the text, for minimal or editorial layouts; on focus the rule turns blue and thickens to 3px. Pill rounds the field fully, which pairs with pill buttons in signup or search bars. Every field gets the same focus treatment: the border turns blue and a soft 3px ring appears around it. The demo fields use the matching input types and autocomplete tokens (name, email, organization, postal-code), so browsers can offer saved values and phones show the right keyboard. The Bootstrap version is the stock .form-label and .form-control restyled through –bs-* variables, with .rounded-pill for the pill; the Tailwind version is utility classes only.
What’s included
- Four treatments: bordered, filled, underline and pill
- Visible label on every field, no placeholder-as-label
- Borders darkened to 3:1 against the page, including the filled field's bottom rule
- Correct input types and autocomplete tokens in the demo
- Bootstrap version uses .form-control and .rounded-pill
Accessibility
Each input has a visible label joined to it with for and id, so clicking the label focuses the field and screen readers announce its name. Borders and the filled field's bottom rule reach 3:1 against the page and placeholder text reaches 4.5:1. Keyboard and mouse focus turn the border blue and add a 3px ring; the underline field thickens its rule instead. Colour transitions are removed under prefers-reduced-motion.
Customise it
In plain CSS change --f-border, --f-focus, --f-ring, --f-fill and --f-radius on .f. In Bootstrap set --bs-border-color, --bs-border-radius and --f-focus on .fx; in Tailwind edit the border-, bg- and focus: colour classes on each input.






