Skip to content

Commit 16e45c5

Browse files
feat: Add the IBM Design Language qualitative color sequences (#117)
* Add the IBM Design Language qualitative color sequences * style(pre-commit.ci): auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ff22331 commit 16e45c5

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

src/cmap/data/ibm/__init__.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ibm_light = [
2+
[105, 41, 196], # Purple 70
3+
[17, 146, 232], # Cyan 50
4+
[0, 93, 93], # Teal 70
5+
[159, 24, 83], # Magenta 70
6+
[250, 77, 86], # Red 50
7+
[87, 4, 8], # Red 90
8+
[25, 128, 56], # Green 60
9+
[0, 45, 156], # Blue 80
10+
[238, 83, 139], # Magenta 50
11+
[178, 134, 0], # Yellow 50
12+
[0, 157, 154], # Teal 50
13+
[1, 39, 73], # Cyan 90
14+
[138, 56, 0], # Orange 70
15+
[165, 110, 255], # Purple 50
16+
]
17+
18+
ibm_dark = [
19+
[138, 63, 252], # Purple 60
20+
[51, 177, 255], # Cyan 40
21+
[0, 125, 121], # Teal 60
22+
[255, 126, 182], # Magenta 40
23+
[250, 77, 86], # Red 50
24+
[255, 241, 241], # Red 10
25+
[111, 220, 140], # Green 30
26+
[69, 137, 255], # Blue 50
27+
[209, 39, 113], # Magenta 60
28+
[210, 161, 6], # Yellow 40
29+
[8, 189, 186], # Teal 40
30+
[186, 230, 255], # Cyan 20
31+
[186, 78, 0], # Orange 60
32+
[212, 187, 255], # Purple 30
33+
]

src/cmap/data/ibm/record.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"authors": [],
3+
"category": "qualitative",
4+
"colormaps": {
5+
"ibm_dark": {
6+
"data": "cmap.data.ibm:ibm_dark",
7+
"interpolation": false
8+
},
9+
"ibm_light": {
10+
"data": "cmap.data.ibm:ibm_light",
11+
"interpolation": false
12+
}
13+
},
14+
"info": "Color palettes for data visualizations from the IBM Design Language. Designed to maximize accessibility and harmony within a page.",
15+
"namespace": "ibm",
16+
"source": "https://carbondesignsystem.com/data-visualization/color-palettes/#categorical-palettes"
17+
}

0 commit comments

Comments
 (0)