A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel.
The width of a color area can be customized appropriately for its context. By default, the width of a color area is size-2400 (192 px on desktop and 240 px on mobile).
The height of a color area can be customized appropriately for its context. By default, the height of a color area is size-2400 (192 px on desktop and 240 px on mobile).
The color area’s handle can slide all the way over the edge of the area. It always displays the selected color inside the handle and never gets cut off by the border or any container.
On down (touch), a loupe appears above the handle to show the selected color that would otherwise be covered by the finger. This only appears on finger input, not mouse or stylus. It appears 10 px above the edge of the handle on desktop scale and 8 px on mobile scale.
When using color areas, it’s important to clearly display the color selection in real-time. It can be in a color swatch, or directly on the canvas, or both.
|Tab||Places focus on the handle. If the handle is already in focus, moves focus to the next element in the page tab sequence.|
|Shift + Tab||Places focus on the previous element in the page tab sequence.|
|Up, Down, Left, or Right Arrow||Moves the handle up/down/left/right.|
|Mar 26, 2020||1.0.1|
|Apr 19, 2019||1.0.0|
Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).
Includes relevant options (variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.)
Works properly across all four color themes (lightest, light, dark, darkest).
Includes a desktop scale (UWP, macOS, web desktop) and a mobile scale (iOS, Android, web mobile).
Includes guidelines for layout (wrapping, truncation, overflow), animation, interactions, etc.
Includes a list of dos and don’ts that highlight best practices and common mistakes.
Follows WCAG 2.0 standards for contrast (AA).
Works properly across various locales and includes guidelines for bi-directionality (RTL).
Follows WCAG 2.0 standards for keyboard accessibility guidelines and includes a description of the keyboard interactions.
Includes a downloadable XD file that has been generated by code and shows multiple variations, states, color themes, and scales.
All design attributes (color, typography, layout, animation, etc.) are included in Spectrum DNA.