Color

Color tokens give designers and developers clear guidance on how and when to use the color palette. They make it easy to connect color names with their intended purpose.

Looking for our old color tokens?

While we still support our old tokens, we’re migrating our documentation and usage guidance to reflect our new Tokens Web. It is not currently a requirement to update all your tokens to use v11, but we strongly encourage you to begin migrating as you can. If you're an engineer looking to migrate to our new tokens, we wrote a handy migration guidefor you.

View v10 Color Token Docs.
yarn add @workday/canvas-tokens-web
Sources
Storybook
Install
yarn add @workday/canvas-tokens-web

Usage Guidance

Our color choices promote visual clarity, making it easy for users to find what they need. We use a consistent palette to create a seamless and intuitive experience across all sections of the application.

To learn more about tokens in general, go to Tokens Overview page.

General Brand Colors

From backgrounds, to selection, to icons, these brand colors apply to most pages in the Workday product.

alert
SwatchCSS VariableJS VariableValue
--cnvs-brand-alert-lightestbrand.alert.lightest
--cnvs-brand-alert-lightbrand.alert.light
--cnvs-brand-alert-basebrand.alert.base
--cnvs-brand-alert-darkbrand.alert.dark
--cnvs-brand-alert-darkestbrand.alert.darkest
--cnvs-brand-alert-accentbrand.alert.accent
common
SwatchCSS VariableJS VariableValue
--cnvs-brand-common-focus-outlinebrand.common.focusOutline
--cnvs-brand-common-error-innerbrand.common.errorInner
--cnvs-brand-common-alert-innerbrand.common.alertInner
error
SwatchCSS VariableJS VariableValue
--cnvs-brand-error-lightestbrand.error.lightest
--cnvs-brand-error-lightbrand.error.light
--cnvs-brand-error-basebrand.error.base
--cnvs-brand-error-darkbrand.error.dark
--cnvs-brand-error-darkestbrand.error.darkest
--cnvs-brand-error-accentbrand.error.accent
gradient
SwatchCSS VariableJS VariableValue
--cnvs-brand-gradient-primarybrand.gradient.primary
neutral
SwatchCSS VariableJS VariableValue
--cnvs-brand-neutral-lightestbrand.neutral.lightest
--cnvs-brand-neutral-lightbrand.neutral.light
--cnvs-brand-neutral-basebrand.neutral.base
--cnvs-brand-neutral-darkbrand.neutral.dark
--cnvs-brand-neutral-darkestbrand.neutral.darkest
--cnvs-brand-neutral-accentbrand.neutral.accent
primary
SwatchCSS VariableJS VariableValue
--cnvs-brand-primary-lightestbrand.primary.lightest
--cnvs-brand-primary-lightbrand.primary.light
--cnvs-brand-primary-basebrand.primary.base
--cnvs-brand-primary-darkbrand.primary.dark
--cnvs-brand-primary-darkestbrand.primary.darkest
--cnvs-brand-primary-accentbrand.primary.accent
success
SwatchCSS VariableJS VariableValue
--cnvs-brand-success-lightestbrand.success.lightest
--cnvs-brand-success-lightbrand.success.light
--cnvs-brand-success-basebrand.success.base
--cnvs-brand-success-darkbrand.success.dark
--cnvs-brand-success-darkestbrand.success.darkest
--cnvs-brand-success-accentbrand.success.accent

System Color Tokens

System tokens are themed variables intended to provide application-wide theming. They are not connected to Brand tokens, which are tenant-specific theming.

View our system color tokens

Background

From backgrounds, to selection, to icons, these general colors apply to most pages in the Workday product.

View our background color tokens

Text

Use these color tokens to color text such as body, label, or heading. For more information on how typography is used in Workday, check out Type token page.

View our text color tokens

Icon

Use these color tokens for System Icons only. Accent and Applet Icons are considered illustrations and could use either Background or Static Color Tokens.

View our icon color tokens

Foreground

Use foreground color or “fg” for short when both text and icon in a component must change color value together. They’re currently used in buttons, segmented controls, table cells, status indicators, banners, and tabs components.

Some of our Canvas components, such as menu, search input, prompt inputs, toasts, and pills, use separate colors for text and icons.

View our foreground color tokens

Border

These are used for border colors only.

View our border color tokens

Shadow

The default color for drop-shadows.

View our shadow color tokens

Static

Use the following colors to denote the status of an object, task, or flow. If you're interested in displaying the status of something, check out the Status Indicator component.

Note: These colors are intended for decorative purposes only. Use these when the Brand and System Colors are not sufficient. Be careful using these for text, as some colors do not pass contrast ratio guidelines.

View our static color tokens

Brand Color Tokens

Brand tokens are themed variables designated for brand / tenant-level customization. They are not connected to system tokens, which are intended to be application-wide. Brand tokens are used for our buttons, focus rings, errors, inputs, and banners.

View our brand color tokens

Web Examples

Canvas Tokens can be consumed as either JavaScript variables or as CSS variables and class names. The JavaScript token values reference CSS variable names, so if you're using JS tokens, you'll also need to import the CSS variables in your application.

Javascript / Typescript

// styles.ts
import {system} from '@workday/canvas-tokens-web';
const styles = {
backgroundColor: `var(${system.color.bg.default})`,
};

CSS

// styles.css
@import '@workday/canvas-tokens-web/css/system/_variables.css';
.card {
background-color: var(--cnvs-sys-color-bg-default);
}

All Colors

Hover over a color or use your keyboard to tab to it to access a button which can be pressed to copy the hexadecimal code for that color to your clipboard.

Cinnamon

500
  • 100#ffefee
  • 200#fcc9c5
  • 300#ff867d
  • 400#ff5347
  • 500#de2e21
  • 600#a31b12

Peach

500
  • 100#fff3f0
  • 200#ffc2b3
  • 300#ff957a
  • 400#ff643d
  • 500#de4721
  • 600#b53413

Chili Mango

500
  • 100#ffe6d9
  • 200#ffc7ab
  • 300#ff9b69
  • 400#ff671b
  • 500#e04b00
  • 600#a33600

Cantaloupe

500
  • 100#ffeed9
  • 200#fcd49f
  • 300#ffbc63
  • 400#ffa126
  • 500#f38b00
  • 600#c06c00

Sour Lemon

500
  • 100#fff9e6
  • 200#ffecab
  • 300#ffda61
  • 400#ffc629
  • 500#ebb400
  • 600#bd9100

Juicy Pear

500
  • 100#f7fae6
  • 200#e2f391
  • 300#c4de40
  • 400#a8c224
  • 500#8ea618
  • 600#687818

Kiwi

500
  • 100#ecfcd7
  • 200#caf593
  • 300#a7e05c
  • 400#77bc1f
  • 500#609915
  • 600#537824

Green Apple

500
  • 100#ebfff0
  • 200#acf5be
  • 300#5fe380
  • 400#43c463
  • 500#319c4c
  • 600#217a37

Watermelon

500
  • 100#ebfdf8
  • 200#b7edde
  • 300#65ccaf
  • 400#12a67c
  • 500#0c7a5b
  • 600#00573e

Jewel

500
  • 100#ebfdff
  • 200#acecf3
  • 300#44c8d7
  • 400#1ea4b3
  • 500#1a818c
  • 600#156973

Toothpaste

500
  • 100#d7f1fc
  • 200#99e0ff
  • 300#40b4e5
  • 400#1894c9
  • 500#0271a1
  • 600#005b82

Blueberry

500
  • 100#d7eafc
  • 200#a6d2ff
  • 300#40a0ff
  • 400#0875e1
  • 500#005cb9
  • 600#004387

Plum

500
  • 100#e6f1ff
  • 200#a6cdff
  • 300#529bfa
  • 400#3881e1
  • 500#3166ab
  • 600#264a7a

Berry Smoothie

500
  • 100#e8edff
  • 200#c2cfff
  • 300#7891ff
  • 400#5e77e6
  • 500#4b5eb3
  • 600#3b4987

Blackberry

500
  • 100#f0f0ff
  • 200#c3c2ff
  • 300#8483e6
  • 400#5c59e6
  • 500#413fcc
  • 600#2e2d91

Island Punch

500
  • 100#f5f0ff
  • 200#d2befa
  • 300#a88ae6
  • 400#8660d1
  • 500#6345a1
  • 600#503882

Grape Soda

500
  • 100#feebff
  • 200#fac0ff
  • 300#de8ae6
  • 400#c860d1
  • 500#97499e
  • 600#7c3882

Pomegranate

500
  • 100#ffebf3
  • 200#ffbdd6
  • 300#ff5c9a
  • 400#f31167
  • 500#c70550
  • 600#99003a

Fruit Punch

500
  • 100#ffeeee
  • 200#ffbdbd
  • 300#ff7e7e
  • 400#ff4c4c
  • 500#e12f2f
  • 600#b82828

Root Beer

500
  • 100#faf3f0
  • 200#ebd7cf
  • 300#dcbbad
  • 400#ba9a8c
  • 500#8c7266
  • 600#664d42

Toasted Marshmallow

500
  • 100#fdf6e6
  • 200#ebd6a9
  • 300#e6bf6c
  • 400#cc9e3b
  • 500#b37f10
  • 600#8c6000

Coconut

500
  • 100#f0eeee
  • 200#e3dfdf
  • 300#d1cbcc
  • 400#b3acac
  • 500#9e9595
  • 600#8f8687

Cappuccino

500
  • 100#7a7374
  • 200#706869
  • 300#5e5757
  • 400#4a4242
  • 500#352f2f
  • 600#231f20

Soap

500
  • 100#f6f7f8
  • 200#f0f1f2
  • 300#e8ebed
  • 400#dfe2e6
  • 500#ced3d9
  • 600#b9c0c7

Licorice

500
  • 100#a1aab3
  • 200#7b858f
  • 300#5e6a75
  • 400#4a5561
  • 500#333d47
  • 600#1f262e

French Vanilla

500
  • 100#ffffff
  • 200#ebebeb
  • 300#d4d4d4
  • 400#bdbdbd
  • 500#a6a6a6
  • 600#8f8f8f

Black Pepper

500
  • 100#787878
  • 200#616161
  • 300#494949
  • 400#333333
  • 500#1e1e1e
  • 600#000000

Can't Find What You Need?

Check out our FAQ section which may help you find the information you're looking for.

FAQ Section