Skip to content

Commit

Permalink
fix: add a second color blind friendly pallet to avoid clashing with …
Browse files Browse the repository at this point in the history
…background color (#775)
  • Loading branch information
TCL735 authored Jul 15, 2022
1 parent f1bffef commit a19da41
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.31.0",
"version": "2.31.1",
"main": "dist/index.js",
"module": "dist/index.js",
"license": "MIT",
Expand Down
13 changes: 12 additions & 1 deletion giraffe/src/constants/colorSchemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const RAINBOW_SIXTEEN = [
'#4dc98e',
'#007c41',
]
export const COLOR_BLIND_FRIENDLY = [
export const COLOR_BLIND_FRIENDLY_DARK = [
'#000000',
'#E69F00',
'#56B4E9',
Expand All @@ -222,6 +222,17 @@ export const COLOR_BLIND_FRIENDLY = [
'#CC79A7',
]

export const COLOR_BLIND_FRIENDLY_LIGHT = [
'#FFFFFF',
'#E69F00',
'#56B4E9',
'#009E73',
'#F0E442',
'#0072B2',
'#D55E00',
'#CC79A7',
]

// Solid Colors
export const SOLID_RED = ['#DC4E58', '#DC4E58', '#DC4E58']
export const SOLID_YELLOW = ['#FFD255', '#FFD255', '#FFD255']
Expand Down
2 changes: 1 addition & 1 deletion stories/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe-stories",
"version": "2.31.0",
"version": "2.31.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion stories/src/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const colorSchemeKnob = (initial?: string[]) =>
'Color Scheme',
{
'Nineteen Eighty Four': giraffe.NINETEEN_EIGHTY_FOUR,
'Color Blind Friendly': giraffe.COLOR_BLIND_FRIENDLY,
'Color Blind Friendly Light': giraffe.COLOR_BLIND_FRIENDLY_LIGHT,
'Color Blind Friendly Dark': giraffe.COLOR_BLIND_FRIENDLY_DARK,
Atlantis: giraffe.ATLANTIS,
'Do Androids Dream': giraffe.DO_ANDROIDS_DREAM,
Delorean: giraffe.DELOREAN,
Expand Down

0 comments on commit a19da41

Please sign in to comment.