Foundations

Feedback

Feedback is an immediate response to user input. It communicates that an element is interactive and that the input has been received.

Feedback cover image

When a user presses an element, the interface must immediately tell them that the input was received. This immediate response is feedback. It makes the pressed state defined by State perceivable to the user's eyes and hands.

Feedback Elements

Feedback ElementDelivery Method
ColorSurface color changes while pressed
ScaleElement shrinks by a defined distance while pressed
HapticVibration is delivered to fingertips at the moment of press

Crispy uses these three together to convey press feedback. Color is a fundamental element applied across all pressable elements, and scale reduction is added when the element's structure allows. How to apply each to specific elements can be found in the Color and Scale documentation; Haptic can be defined and used by teams as needed, and will be covered here once guidelines are established.

Principles

Using feedback elements together

When multiple feedback elements are active in a single input, the user should perceive them as one response. If the start times or speeds differ, the response reads as two separate reactions and feels like elements are malfunctioning.

To achieve this, Crispy aligns color transition and scale reduction to use the same duration. Both tokens reference $duration.d3, 150ms.

Leaving feedback in any environment

Some feedback elements don't work in the user's environment. Scale doesn't work when OS motion reduction settings are enabled, and Haptic isn't delivered depending on device or system settings.

Regardless of which element is missing, the fact of being pressed must remain. That's why Crispy uses color transition as the fundamental element, unaffected by settings, and adds other elements on top.

Table of contents