Color loupe

Version 2.0.0

A color loupe shows the output color that would otherwise be covered by a cursor, stylus, or finger during color selection.

Example of a color loupe showing a user's selected color from a color wheel that would otherwise be hidden by their finger on selection input.
DateVersionSpectrumApr 06, 20222.0.0DownloadMay 13, 20201.0.0Download

Anatomy#

Diagram showing the anatomy of the color loupe component. This component only contains a teardrop-shaped area to display color.

Options#

Example of a color loupe showing RGBa value (255, 0, 0, 0.34) on a color wheel, alongside the same value on a color area and a color slider.

Value#

The value represents the output color (with optional opacity) of one or more color input components (color area, color slider, or color wheel). This is what is being displayed inside the loupe.

Table of options#

From the design point of view, each component has a number of options. These options and their names are platform agnostic, and each implementation should adapt these to fit into their framework.

PropertyValuesDefault Valuevaluecolor (with optional opacity)

Usage guidelines#

Display combined values#

Color selection usually happens using a variety of input methods (color area, color slider, color wheel). The color loupe should display the final output color: the combined values from multiple color inputs.

The number of input methods is determined by the color space (or “mode”), for example:

  • 2 controls: HSL using color wheel (hue) and color area (saturation and lightness)
  • 3 controls: RGB using unique color sliders for Red, Green, and Blue
  • 4 controls: RGBa using unique color sliders for Red, Green, Blue, and Alpha
do
Example of a color loupe showing the output color from a variety of inputs: a color area, a color slider, and a color wheel.

Changelog#

DateNumberNotesApr 06, 20222.0.0
  • Updated all colors to 6.0.0
May 13, 20201.0.0
  • This component has been added to the website

Design checklist#

N/A

All interactive states

Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).

check

All color themes

Works properly across all four color themes (lightest, light, dark, darkest).

check

All platform scales

Includes a desktop scale (UWP, macOS, web desktop) and a mobile scale (iOS, Android, web mobile).

N/A

Accessible use of color

Color is not used as the only visual means of conveying information (WCAG 2.0 1.4.1).

N/A

Accessible contrast for text

Text has a contrast ratio of at least 4.5:1 for small text and at least 3:1 for large text (WCAG 2.0 1.4.3).

unchecked

Accessible contrast for UI components

Visual information required to identify components and states (except inactive components) has a contrast ratio of at least 3:1 (WCAG 2.1 1.4.11).

N/A

Content design

UI language and information design considerations have been incorporated into component design.

check

Defined options

Includes relevant options (variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.)

unchecked

Defined behaviors

Includes guidelines for keyboard focus, layout (wrapping, truncation, overflow), animation, interactions, etc.

check

Usage guidelines

Includes a list of dos and don'ts that highlight best practices and common mistakes.

N/A

Writing guidelines

Includes content standards or usage guidelines for how to write or format in-product content for the component.

N/A

Internationalization guidelines

Works properly across various locales and includes guidelines for bi-directionality (RTL).

N/A

Keyboard interactions

Follows WCAG 2.0 standards for keyboard accessibility guidelines and includes a description of the keyboard interactions.

check

Design tokens

All design attributes (color, typography, layout, animation, etc.) are available as design tokens.

check

UI kit

Includes a downloadable XD file that shows multiple options, states, color themes, and platform scales.

check

Generated UI kit

Includes a downloadable XD file, generated by code using design tokens defined in Spectrum DNA, and shows multiple options, states, color themes, and platform scales.

unchecked

In Spectrum for Adobe XD plugin

Component is included in the Spectrum for Adobe XD plugin.