About this set
Form fields tuned for dark interfaces such as developer dashboards and admin panels, with a cyan accent. Bordered is a raised slate field with a mid-grey border; filled is a darker well with a bottom rule and square lower corners. The select keeps the native control with a drawn chevron, and every field sets color-scheme: dark so the browser draws its option list and autofill in dark colours too. The complete card puts a token name field, an expiry select and a cyan Generate token button together on a bordered dark panel, with the required field marked in its label. The common mistake with dark forms is borders and placeholder text that disappear; here the borders are lifted until they reach 3:1 against both the page and the card, placeholder text 4.5:1, and the grey demo captions are lightened to match. The Bootstrap version switches on Bootstrap’s own dark colour mode with data-bs-theme=”dark” and retunes it through –bs-* variables, using .form-control, .form-select, .card and .btn; the Tailwind version uses arbitrary colour values and the [color-scheme:dark] utility.
What’s included
- Bordered and filled inputs, a select and a complete form card
- Borders at 3:1 and placeholders at 4.5:1 on the dark ground
- color-scheme: dark for native option lists and autofill
- Bootstrap version uses data-bs-theme="dark" with .form-select and .card
- Cyan focus ring and button outline
Accessibility
Every field has a visible label, and the required field says so in text. Borders reach 3:1, labels and placeholder text 4.5:1 or better on the dark ground. Focus turns the border cyan with a soft 3px ring, and the button shows a 2px cyan outline on keyboard focus. The select is native, so keyboard and screen reader behaviour are the browser's own. Transitions are removed under prefers-reduced-motion.
Customise it
In plain CSS change --f-bg, --f-fill, --f-border, --f-focus and --f-ring on .f, and the .dbtn background. In Bootstrap set --bs-body-bg, --bs-border-color and --f-focus on .fx and the --bs-btn-* variables on the button; in Tailwind edit the bg-, border- and focus: colour classes.






