Design every state of each component
Default
Rule. Design each component in all 12 states: default, hover, focus, pressed, selected, disabled, pending, invalid, empty, loading, error, success.
Why. A state you do not design is a state the code invents, and users notice those bugs.
When not. A component that cannot reach a state, such as a static label, needs no design for it.
- Draw the states next to each other on one sheet.
- Name each state with the same word in design and in code.
Figure. A button in 3 states and 2 fields: focus and error.