npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@workday/canvas-colors-web

v2.0.1

Published

Canvas colors for web

Downloads

5,372

Readme

Canvas Colors for Web

License: CC BY 4.0

Canvas colors values in web formats.

Usage

The base Canvas color palette is available in CommonJS, ES6, JSON, LESS, and SASS formats.

Colors (100-600):

  • Cinnamon
  • Peach
  • Chili Mango
  • Cantaloupe
  • Sour Lemon
  • Juicy Pear
  • Kiwi
  • Green Apple
  • Watermelon
  • Jewel
  • Toothpaste
  • Blueberry
  • Plum
  • Berry Smoothie
  • Blackberry
  • Island Punch
  • Grape Soda
  • Pomegranate
  • Fruit Punch
  • Root Beer
  • Toasted Marshmallow
  • Coconut
  • Cappuccino
  • Soap
  • Licorice
  • French Vanilla
  • Black Pepper

JavaScript

The default import will provide hex color values as strings. Colors are accessed via their camel-cased names (e.g. frenchVanilla100).

TypeScript types are provided for convenience.

ES6

ES6 exports are located in @workday/canvas-colors-web/dist/es6.

import colors from '@workday/canvas-colors-web'

colors.frenchVanilla100
CommonJS

CommonJS exports are located in @workday/canvas-colors-web/dist/commonjs.

const colors = require('@workday/canvas-colors-web')

colors.frenchVanilla100
HSLA

To access HSLA, import from canvas-colors.js from your preferred JS format folder.

import colors from '@workday/canvas-colors-web/dist/es6/canvas-colors.js'
const colors = require('@workday/canvas-colors-web/dist/commonjs/canvas-colors.js')

colors.frenchVanilla100

SASS

Import Paths

SASS variable sheets are located in @workday/canvas-colors-web/dist/sass. They are available as both .sass and .scss.

  • Hex: canvas-colors-hex.scss
  • RGBA: canvas-colors-rgba.scss
  • HSLA: canvas-colors.scss
Usage

Color variables are camel-cased.

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.scss';

$wdc-color-french-vanilla-100;

LESS

Import Paths

LESS variable sheets are located in @workday/canvas-colors-web/dist/less.

  • Hex: canvas-colors-hex.less
  • RGBA: canvas-colors-rgba.less
  • HSLA: canvas-colors.less
Usage

Color variables are camel-cased.

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.less';

@wdc-color-french-vanilla-100;

Semantic Colors

To ensure consistency across implementations, our semantic constants should be used wherever possible. This allows us to swap out the color of a button or icon for example, without having to find every instance of it and change the color manually.

We have several semantic groupings:

  • commonColors
  • buttonColors
    • delete
    • primary
    • secondary
  • iconColors
  • statusColors
  • typeColors

JS

import { iconColors } from '@workday/canvas-colors-web'

iconColors.hover

SCSS

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.scss';

$wdc-color-common-background;

LESS

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.scss';

@wdc-color-common-background;

Charting Colors

The charting color palette is a set of 86 colors from the Canvas palette. Colors should be used in incremental numerical order. Offsets should also be used depending on the chart type. Color access keys start at 1 and go up to 86.

Offsets:

  • Bar and Column
  • Pie
  • Line and Area
  • Bubble

JS

import { chartingColors, chartingColorOffsets } from '@workday/canvas-colors-web'

chartingColors[1]
chartingColors[chartingColorOffsets.barAndColumn + i]

SCSS

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.scss';

$wdc-color-charting-1;
$wdc-color-bar-and-column;

LESS

@import '@workday/canvas-colors-web/dist/sass/canvas-colors-hex.scss';

@wdc-color-charting-1;
@wdc-color-bar-and-column;

License

(c) Workday, Inc.

License: CC BY 4.0