1.0.0 • Published 5 years ago

bw-color-blind-palette v1.0.0

Weekly downloads
27
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

B.W. Color-Blind Palette

A 7 color palette for the color-blind described by prof. Bang Wong.

Source: Wong, Bang. (2011). Points of view: Color blindness. Nature methods. 8. 441. 10.1038/nmeth.1618..

DOI: 10.1038/nmeth.1618.

Installation

npm install --save bw-color-blind-palette

Usage

@import '~bw-color-blind-palette'

$green:     map-get( $bw-color-blind-palette, 'bluish-green' )

.your-class

    color:  $green

Warning on name strings

Sass/SCSS recognizes color names and replaces them with their shortest values.

So this:

map-get( $bw-color-blind-palette, black )

may actually work like this and return null:

map-get( $bw-color-blind-palette, '#000' )

Colors

NameHexRGB
'black'#0000000, 0, 0
'orange'#e69f00230, 159, 0
'sky-blue'#56b4e986, 180, 233
'bluish-green'#009e730, 158, 115
'yellow'#f0e442240, 228, 66
'blue'#0072b20, 114, 178
'vermillion'#d55e00213, 94, 0
'reddish-purple'#ff79a7204, 121, 167

License

Bw-color-blind-palette is Apache-2.0 licensed.