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 -
- 1
- 2
- 3
Swatch
Indicates a product colour (and optionally its current interaction and stock state).Contrast outline
An outline that provides contrast against the background the Swatch is used on. Defaults to grey-50.Strikeout
Indicates when the colour is unavailable.
Variants & States
- Size: Regular, Small, Mini
- States: Default, Hover, Focus, Unavailable
- Status: Static, Unselected, Selected
- Contrast outline: On, Off
- Gloss: On, Off (using a gradient)
Default
Unavailable
Selected
Contrast outline
Gloss ON