Shopify Polaris is the design system for the Shopify admin and for apps that run inside it, not for storefronts. Its colors are defined as semantic tokens, named for their job rather than their hue. --p-color-bg-surface is the white of cards (#FFFFFF), --p-color-text is the main text color (#303030), and --p-color-bg-fill-critical is the red of destructive actions (#C70A24). The tokens ship in the @shopify/polaris-tokens package.
Two things changed recently. Shopify released Polaris web components on October 1, 2025, and the Polaris React library is now deprecated and archived. In web components you don't pick colors at all: you set a tone such as critical or success, and Polaris applies the right colors. This guide lists the main color tokens with their values, the tones, and the contrast rules behind them. Token values come from @shopify/polaris-tokens version 9.4.2.
Shopify Polaris color tokens and hex values
| Token | Value | Used for |
|---|---|---|
--p-color-bg | #F1F1F1 | The admin page background |
--p-color-bg-surface | #FFFFFF | Cards and other surfaces on the page |
--p-color-bg-surface-hover | #F7F7F7 | Surfaces on hover |
--p-color-bg-fill-brand | #303030 | Primary buttons |
--p-color-bg-fill-critical | #C70A24 | Destructive buttons and critical fills |
--p-color-bg-fill-success | #047B5D | Success fills |
--p-color-bg-fill-warning | #FFB800 | Warning fills |
--p-color-bg-fill-caution | #FFE600 | Caution fills |
--p-color-bg-fill-info | #91D0FF | Informational fills |
--p-color-bg-surface-critical | #FEE8EB | Light background behind critical messages |
--p-color-text | #303030 | Main text |
--p-color-text-secondary | #616161 | Secondary text, such as help text |
--p-color-text-disabled | #B5B5B5 | Disabled text |
--p-color-text-link | #005BD3 | Links |
--p-color-text-critical | #8E0B21 | Error text |
--p-color-text-success | #014B40 | Success text |
--p-color-border | #E3E3E3 | Default borders |
--p-color-border-focus | #005BD3 | Focus rings |
--p-color-icon | #4A4A4A | Default icons |
--p-color-icon-secondary | #8A8A8A | Secondary icons |
The package defines about 225 color tokens in total. They follow one pattern: element (bg, bg-fill, bg-surface, text, border, icon), then an optional role (brand, critical, success, warning, caution, info), then an optional state (hover, active, selected, disabled). If you know what you are coloring and why, you can usually guess the token name.
Older guides mention tokens such as --p-color-text-subdued. That name is from an earlier version and no longer exists; the current equivalent is --p-color-text-secondary.
Polaris tones in web components
Polaris web components, such as <s-badge>, <s-banner> and <s-icon>, take a tone instead of a color:
| Tone | Meaning |
|---|---|
auto | The default. The component picks the treatment from context. |
neutral | Status with no positive or negative meaning |
info | Useful information |
success | Something completed or is in a good state |
caution | Needs attention soon. Replaces the old attention value from Polaris React. |
warning | Something could go wrong or needs action |
critical | An error, or a destructive action |
<s-badge tone="success">Paid</s-badge>
<s-badge tone="critical">Payment failed</s-badge>
Not every component accepts every tone, so check each component's reference on shopify.dev. The advantage is that your app's colors stay correct when Shopify updates the admin design.
How to use Polaris color tokens
- In new apps, build with Polaris web components and set tones. Avoid custom CSS colors for elements Polaris already provides.
- In existing Polaris React apps, the tokens are available as CSS custom properties. Use them instead of hex codes, for example
color: var(--p-color-text-secondary);. Plan the move to web components, since Polaris React will not get updates. - Outside Polaris components, install the package with
npm install @shopify/polaris-tokensand import@shopify/polaris-tokens/css/styles.cssto get the variables, or import the token values in JavaScript. - Never use color alone to carry meaning. A critical banner still needs text that says what went wrong, for users who can't tell red from green.
Apps that want the Built for Shopify badge are expected to look and work like the admin, and Polaris is how you get there. Our guide to Shopify App Store requirements covers the rest of the checklist.
Polaris colors and accessibility
WCAG 2.1 level AA asks for a contrast ratio of at least 4.5:1 for normal text, 3:1 for large text (about 18pt, or 14pt bold) and 3:1 for interface parts such as borders of inputs and focus rings. Polaris' main pairs pass comfortably. We calculated these from the token values:
| Pair | Contrast |
|---|---|
text on bg-surface | 13.2:1 |
text-secondary on bg-surface | 6.2:1 |
text-link on bg-surface | 6.1:1 |
text-critical on bg-surface-critical | 8.1:1 |
White on bg-fill-critical | 6.0:1 |
White on bg-fill-success | 5.3:1 |
text-disabled on bg-surface | 2.1:1 (disabled text is exempt from WCAG contrast rules) |
If you add your own colors, check them the same way. For the storefront side, see color contrast and accessibility on Shopify.
Can you use Polaris colors on your store?
You can, but you shouldn't need to. Polaris is meant to make apps feel native inside the admin. Your storefront's colors come from your theme. In Online Store 2.0 themes such as Dawn, you set them as color schemes in the theme editor, and they should follow your brand, not Shopify's admin.
FAQ
What colors does Shopify Polaris use?
Polaris uses semantic color tokens. The main ones are a light gray page background (#F1F1F1), white surfaces (#FFFFFF), near-black text and primary buttons (#303030), blue links (#005BD3) and red for critical states (#C70A24).
What are Polaris design tokens?
Named values for colors, spacing, typography and more, published in the @shopify/polaris-tokens package. Color tokens look like --p-color-bg-surface or --p-color-text-critical and describe the role of the color, not the hue.
What is the Polaris brand color?
--p-color-bg-fill-brand is #303030, a near-black used for primary buttons. The Shopify admin no longer uses green as its primary button color.
Is Polaris React deprecated?
Yes. The Polaris React repository is archived and the library is deprecated. Shopify released Polaris web components on October 1, 2025, and recommends them for new app development.
What tone values does Polaris support?
Polaris web components use auto, neutral, info, success, caution, warning and critical. The old attention tone from Polaris React maps to caution.
How do I use Polaris tokens in CSS?
Install @shopify/polaris-tokens, import @shopify/polaris-tokens/css/styles.css, and use the variables, for example color: var(--p-color-text-secondary);. Polaris React apps already load them.
Building a Shopify app?
From private apps to public App Store launches, our team has shipped both. Let's scope yours.
The checklist we run before touching a client's code
Get it by email, plus a few short notes over the next two weeks: what we see most often on Shopify stores and what actually fixes it.
Want more of our posts in your Google results? Add Codersy as a preferred source.
Add Codersy on Google(opens in a new tab)


