Swatch
Overview
Purpose
Swatches are used to showcase colour options or allow the user to configure selected products.
Anatomy
The Swatch component can be broken down into the following elements -
-
Swatch
Indicates a product colour (and optionally its current interaction and stock state). -
Stroke
A white stroke to create definition against the background. -
Strikeout
Indicates when the colour is unavailable.
Variants & States
- Size: Regular, Small, Mini
- States: Default, Hover, Focus, Unavailable
- Status: Static, Unselected, Selected
- Gloss on or off (using a gradient)