Skip to content

[MEDIUM PRIORITY] Form Input Styling Inconsistency - Border Radius and Focus States #139

@pbrissaud

Description

@pbrissaud

Form Input Styling Inconsistency

Problem Description

Form inputs across the site have inconsistent:

  • Border-radius values (6px vs 8px)
  • Focus state styling
  • Border thickness
  • Shadow application

Impact

  • Inconsistent form experience across pages
  • Confusing visual feedback on interaction
  • Breaks neo-brutalism design system
  • Degrades professional appearance

Current Issues

1. Inconsistent Border-Radius:

  • Some inputs: 6px (rounded-md)
  • Should be: 8px (rounded-lg) to match button system

2. Focus States:

  • Varies between pages
  • Should have consistent neo-brutalism focus (border + small shadow)

3. Border Thickness:

  • Some use default 1px borders (too thin)
  • Should use 3px (neo-border) for neo-brutalism

Affected Files

  • components/ui/input.tsx - Base input component
  • components/ui/select.tsx - Select component
  • Form components on /get-started and /profile pages

Suggested Fix

1. Update Input Component:

// components/ui/input.tsx
const inputVariants = cva(
  "flex w-full rounded-lg neo-border bg-input px-3 py-2 " +
  "text-base transition-all " +
  "placeholder:text-muted-foreground " +
  "focus-visible:outline-none " +
  "focus-visible:neo-shadow-sm " +
  "focus-visible:border-primary " +
  "disabled:cursor-not-allowed disabled:opacity-50"
);

2. Standardize Focus Behavior:

/* All form inputs should have consistent focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 2px 2px 0px 0px oklch(0.15 0 0);
}

3. Update Select Component:
Apply same styling to select elements for consistency.

Definition of Done

✅ All form inputs use rounded-lg (8px border-radius)
✅ All inputs use neo-border (3px solid black)
✅ Consistent focus states across all form elements
✅ Focus includes: primary border color + small neo-shadow
✅ No 1px or 2px borders on any form inputs
✅ Input styling matches button styling for coherent design

Priority

MEDIUM PRIORITY - Phase 3 component standardization

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-systemDesign system consistency and neo-brutalism style issuesux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions