Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tjonx/add color section #10578

Merged
merged 9 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions polaris.shopify.com/content/design/colors.md

This file was deleted.

218 changes: 218 additions & 0 deletions polaris.shopify.com/content/design/colors/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
---
title: Color
description: Color highlights important areas, communicates status, urgency, and directs attention.
icon: ColorsMajor
keywords:
- color role
- color strategy
- color use
- black and white
- grayscale
---

# {frontmatter.title}

<Lede>{frontmatter.description}</Lede>

<Subnav />

<Stack gap="8">

<Box className="card">
tjonx marked this conversation as resolved.
Show resolved Hide resolved

<Grid gap="4">

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

## Color has purpose

The purpose of using color has to be clear. Color needs to support a message or a status that needs to be easily identifiable by merchants.

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 8, xl: 8}}>

![A display of Polaris components like badges, menus and banners with different color roles](/images/design/colors/color-overview-purpose@2x.png)

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

Each usage of color within the Shopify admin is purposefully tied to a specific meaning. For instance, red signifies critical errors, green represents success messages, and blue is used to draw attention to tips and offers. Using color as decoration is exclusive to illustration.

This deliberate color coding facilitates merchants in identifying which parts of the user interface require focus and distinguishes them from the default features provided by the Shopify admin.
</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![A list of badges that display paid, fulfilled, in progress, partially paid and unfulfilled states](/images/design/colors/color-overview-states-do@2x.png)

<Do>
Use color to support different states merchants need to be informed about.
</Do>

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![A card with a pink border and a pink $99 trying to entice the merchant](/images/design/colors/color-overview-decorate-dont@2x.png)

<Dont>
Use color to decorate or to distract merchants from performing tasks.
</Dont>

</Box>

</Grid.Cell>

</Grid>

</Box>

<Box className="card">

<Grid gap="4">

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

## Color has impact

The Shopify admin interface adopts a black and white color scheme, intentionally creating a neutral backdrop. By employing this monochromatic design, elements that incorporate color gain heightened visual impact and prominence.

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 8, xl: 8}}>

![Cards in a grayscale interface with colorful badges that serve as headings](/images/design/colors/color-overview-impact@2x.png)

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

The intentional design of the overall interface in black and white enables strategically positioned and carefully selected elements to grab merchants' attention. By utilizing color purposefully, the focus is directed towards crucial information, actions, and visual cues.

Create impact when using color by using appropriate shades to convey the importance of what is being communicated to merchants.

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![A modal with a bright red header and bright red button that stops the user from navigating away from a page with unsaved changes](/images/design/colors/color-overview-vivid-do@2x.png)

<Do>
Use strong, vivid colors to grab attention to things that matter most.
</Do>

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![A modal with a gray header and white button with red text that stops the user from navigating away from a page with unsaved changes](/images/design/colors/color-overview-diminish-dont@2x.png)

<Dont>
Contradict or diminish messaging by using subdued colors or grayscale.
</Dont>

</Box>

</Grid.Cell>

</Grid>

</Box>

<Box className="card">

<Grid gap="4">

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

## Color is accessible

Polaris offers consistent color palettes for each color role. This means that each color is assigned a specific relationship within the overall palette.

These color relationships ensure that color contrasts remain consistent across every application of color and ensure proper legibility and understanding when it comes to combining texts with color and interactive shapes with various backgrounds.

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 8, xl: 8}}>

![A dialog box with various elements highlighted where color combinations used for these elements passes AA and AAA accessibility standards for contrast](/images/design/colors/color-overview-accessible@2x.png)

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 6, lg: 4, xl: 4}}>

<Box className="text-extra-padding">

Colors are meant to be easily understood and read by all merchants. Sufficient contrast makes things easier to find, identify and interact with.

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![An orange badge with an alert icon and text label in a table column that indicates that an item is almost out of stock](/images/design/colors/color-overview-conjunction-do@2x.png)

<Do>
Use color in conjunction with other discernible elements to amplify the message.
</Do>

</Box>

</Grid.Cell>

<Grid.Cell columnSpan={{xs: 12, sm: 6, md: 3, lg: 4, xl: 4}}>

<Box className="directive">

![A text label in orange in a table column that indicates that an item is almost out of stock](/images/design/colors/color-overview-alone-dont@2x.png)

<Dont>
Use color alone to convey meaning
</Dont>

</Box>

</Grid.Cell>

</Grid>

</Box>

</Stack>
Loading