Skip to content

Commit c823a39

Browse files
NiallJoeMaherclaude
andcommitted
fix(ui): recolour the form-input focus ring from blue to brand accent
@tailwindcss/forms paints a hardcoded blue (#2563eb) focus ring and border on every form control, so text inputs lit up blue while links and buttons already used the mint :focus-visible ring. Override the plugin's ring colour and border to the accent token for all form controls, keeping an accessible (now on-brand, thin) focus indicator instead of the off-palette blue. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 37cb113 commit c823a39

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

styles/globals.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,31 @@ body {
161161
outline-offset: 2px;
162162
}
163163

164+
/* @tailwindcss/forms paints a hardcoded blue (#2563eb) focus ring + border on
165+
every form control. Recolour both to the brand accent so input focus matches
166+
the mint focus language used everywhere else (links/buttons already get a mint
167+
:focus-visible ring). Unlayered, so it reliably overrides the plugin's
168+
@layer base styles. The thin ring doubles as the keyboard focus indicator, so
169+
a11y is preserved — only the colour changes. */
170+
[type="text"]:focus,
171+
[type="email"]:focus,
172+
[type="url"]:focus,
173+
[type="password"]:focus,
174+
[type="number"]:focus,
175+
[type="date"]:focus,
176+
[type="datetime-local"]:focus,
177+
[type="month"]:focus,
178+
[type="search"]:focus,
179+
[type="tel"]:focus,
180+
[type="time"]:focus,
181+
[type="week"]:focus,
182+
[multiple]:focus,
183+
textarea:focus,
184+
select:focus {
185+
--tw-ring-color: rgb(var(--color-accent));
186+
border-color: rgb(var(--color-accent));
187+
}
188+
164189
/* ── Eyebrow / kicker: the signature mono "// label" device ── */
165190
.eyebrow {
166191
@apply font-mono text-xs uppercase tracking-label text-accent;

0 commit comments

Comments
 (0)