vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 760 forks source link

Enhanced Color Palette and Documentation for Design Guidelines #885

Closed lil-kim closed 7 years ago

lil-kim commented 7 years ago

Select one ... (check one with "x")

[ ] bug
[ ] feature request
[ X] enhancement

Documentation begins:

The Clarity color palette is a full spectrum of bold hues and neutrals to meet all your design needs.

The Clarity color palette

The Clarity color palette is aligned with color use in web applications and support for accessibility. The colors below constitute the expanded color palette for Clarity. Text colors displayed in light or dark tints represent Clarity's recommended accessible pairing with the color.

Base, Primary and Secondary Colors

The bulleted color swatches indicate colors that are part of the Clarity base color palette. You will find these colors in use throughout Clarity's components and design recommendations.

The large color swatches represent Clarity primary colors, recommended for use as the main color for your design. The remaining colors are considered secondary. They may be used for charts, graphs, illustrations and other areas that call for color accent.

---full palette goes here--- image ---end full palette---

Color Usage

Base Colors

Colors used in Clarity's components and design recommendations.

Choosing Colors

Text Contrast

Each color swatch in the palette is labeled with a black or white letter A to indicate its accessibility on the background color. Other text colors should be tested for contrast using an online contrast checker to make sure it passes the WCAG AA requirement for accessibility.

Charting Colors

The large secondary palette allows for distinguishable markers in charts and graphs. With charts, it’s important to choose colors that have clear contrast for easy readability. The more colors that are used, the harder it is to distinguish each marker. For this reason, we recommend a maximum of six colors per chart.

Colorblind Accessibility

It’s a good idea to test the color scheme you plan to use with a colorblind simulation app, such as Color Oracle. Alternatively, Adobe Photoshop and Illustrator come with a colorblind proofing view. You can use the simulation to adjust your color combinations to be accessible. In the example below, the image on right simulates how a person with colorblindness (Deuteranopia) would see the image on the left.

image

Some examples of color pairs that are difficult to distinguish for those with colorblindness: image

---table is here only to show 2 column layout---

If these combinations can’t be avoided, leverage use of light and dark values. For instance, Red and green both appear as brown to someone with red-green colorblindness. But a light green paired with a dark red would be distinguishable in value.

image

Using light and dark values also helps in showing a clear division between fields. Follow a pattern of alternating placement of light and dark colors. A simple way to ensure sufficient contrast is to use a palette that is monochromatic.

image

Create contrast by using a range of light and dark values. Use a palette with colors of similar values and saturation levels.

---table is here only to show 2 column layout---

Basic Tips

Avoid the temptation to use color as decoration. Colors should be used meaningfully to support the purpose of the chart.

Color Scheme Examples for Charts

These color schemes are designed to address contrast and colorblind accessibility. Feel free to use them just as they are or as a starting point for a customized palette.

Monochrome + neutral

image

Multicolor

image

Charting Example

---Example image goes here---

image

---End of design guideline---

Attachments

Layout in Sketch, Individual pngs to accompany doc png imgs for doc.zip color palette layout.zip hex nos.pdf.zip

^ All images for doc are included in "imgs for doc.zip" ^ See the color palette layout for guidance on layout ^ Use Hex nos.pdf to easily copy-paste hex numbers

github-actions[bot] commented 4 years ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.