The contrast provided by the border-gray-200 Tailwind utility class is very poor. It's nearly impossible to distinguish the edges of an input field on a white background.
That's not a great default experience for Rails scaffolds.
With a slight bump to border-gray-400, things are much easier to distinguish.
Here's a simple example where I only changed the border class on the Name field at the top:
Safari:
Firefox:
Chrome:
With a stock Rails 7.1 app, I genuinely could not distinguish the edges of any input field until I made this change. I think the examples speak for themselves. I can understand the desire for subtlety but I think this change would be beneficial. I'm deliberately not address a similar issue with non-call-to-action buttons in this PR, in case there's disagreement.
The contrast provided by the
border-gray-200
Tailwind utility class is very poor. It's nearly impossible to distinguish the edges of an input field on a white background.That's not a great default experience for Rails scaffolds.
With a slight bump to
border-gray-400
, things are much easier to distinguish.Here's a simple example where I only changed the border class on the
Name
field at the top:Safari:
Firefox:
Chrome:
With a stock Rails 7.1 app, I genuinely could not distinguish the edges of any input field until I made this change. I think the examples speak for themselves. I can understand the desire for subtlety but I think this change would be beneficial. I'm deliberately not address a similar issue with non-call-to-action buttons in this PR, in case there's disagreement.