Form Patterns
Form patterns, input styles, validation states, and field composition guidelines.
Input Field Patterns
Borderless Bottom-Border Style
EUR
Input Field Specifications
Border Style
Bottom border only (border-b)Border Color
neutral-300 / neutral-700Focus Border
neutral-950 / whiteHover Background
neutral-50 / neutral-900/30Typography
text-base font-lightLabel Style
text-xs uppercase tracking-widestTransition
duration-300 (all properties)Grid Layout Pattern
Grid Layout Specifications
Grid Pattern
grid grid-cols-1 md:grid-cols-2Gap
gap-6 (1.5rem / 24px)Mobile BehaviorSingle column stack on mobile
Use CaseDate + Amount, Name + Email pairs
Line Items Grid Pattern
Line Items Specifications
Grid Pattern
grid-cols-12Column DistributionName: 6, Qty: 2, Price: 2, Total: 2
Number Alignment
text-rightTypography
text-xs font-lightGap
gap-2 (0.5rem / 8px)Form Actions
Button Groups
Form Action Specifications
Layout
flex gap-3 justify-endPrimary Button
Inverted colors (bg-neutral-950)Secondary Button
Text-only, no backgroundPadding
px-6 py-3Typography
text-sm font-lightHover EffectPrimary: opacity-80, Secondary: opacity-60
Form Pattern Best Practices
Design Guidelines
- •Use borderless inputs with bottom borders for a clean, minimal aesthetic
- •Maintain consistent spacing between form fields (gap-6 or 1.5rem)
- •Use uppercase tracking-widest labels for clear field identification
- •Apply font-light typography throughout for visual consistency
- •Group related fields using grid layouts (date + amount pairs)
- •Use 12-column grids for line item tables with appropriate column spans
- •Align numbers to the right for better readability in tabular data
- •Place form actions at the bottom right with Cancel left, Save right
- •Use inverted colors for primary actions to create visual hierarchy
- •Include subtle hover states for better user feedback (bg transitions)
Accessibility Considerations
- •Always pair inputs with descriptive label elements
- •Use proper input types (date, number, email) for better keyboard support
- •Ensure sufficient color contrast for focus states
- •Provide clear visual feedback on focus with border color changes