Button styling should balance brand aesthetics with clear states and accessibility guarantees.
Button state system
- Default, hover, active, disabled.
- Focus-visible ring for keyboard users.
- Consistent size and spacing variants.
Important interview questions and answers
- Q: Most common button styling bug?
A: Missing focus-visible state after custom theme styling. - Q: Why avoid low-contrast disabled buttons?
A: They can become unreadable and ambiguous. - Q: Should link-looking buttons be anchors?
A: No, actions should remainbuttonsemantics.
Practice: Change one property in the playground and observe cascade + layout in DevTools.