Styled Form Inputs
Style form inputs with focus effects, border transitions, shadow on focus, and custom border radius.
何时使用此配方
Custom form styling improves user experience and brand consistency. This recipe creates inputs that feel responsive and provide clear visual feedback.
步骤
常见问题
Should I remove the default browser outline?
Replace it with a custom focus indicator (like box-shadow) rather than removing it entirely. Never remove focus indicators without a replacement — it breaks keyboard accessibility.
How do I style placeholder text?
Use the ::placeholder pseudo-element. Set a lighter color and optionally italic font-style.
相关配方
Complete Button Style
Create a polished button with gradient background, shadow, border radius, and hover animation using MCP tools.
Hero Section Design
Design a stunning hero section with gradient background, flexbox centering, and entrance animation.
Card Component Style
Build a modern card component with shadow, border radius, hover transform, and smooth transitions.
Glassmorphism Effect
Create a frosted glass effect using backdrop-filter, gradient overlay, and border styling.