1
1
// Selected set of PF chart colors to optimize for full-spectrum and colorblindness
2
2
// using unique part of PF name and a hex color fallback
3
3
$plotColors : (
4
- blue- 300 #06c ,
5
- green- 100 #bde2b9 ,
6
- cyan - 200 #73c5c5 ,
7
- purple- 100 #b2b0ea ,
8
- gold- 300 #f4c145 ,
9
- orange- 300 #ec7a08 ,
10
- red- 200 #a30000 ,
11
- cyan - 300 #009596 ,
12
- black- 500 #4d5258
4
+ " blue-- 300" #06c ,
5
+ " green-- 100" #bde2b9 ,
6
+ " teal-- 200" #73c5c5 ,
7
+ " purple-- 100" #b2b0ea ,
8
+ " gold-- 300" #f4c145 ,
9
+ " orange-- 300" #ec7a08 ,
10
+ " red-orange-- 200" #a30000 ,
11
+ " teal-- 300" #009596 ,
12
+ " black-- 500" #4d5258
13
13
);
14
14
15
15
.ct-plot {
16
- font-family : var (--pf-v5-chart -global--FontFamily );
16
+ font-family : var (--pf-t- -global--font--family--body );
17
17
18
18
& -border {
19
- stroke : var (--pf-v5- chart-global--Fill--Color --300 );
19
+ stroke : var (--pf-t-- chart-- global--fill--color --300 );
20
20
fill : transparent ;
21
21
shape-rendering : crispedges ;
22
22
}
23
23
24
24
& -title {
25
- font-size : calc (var (--pf-v5- chart-global--FontSize--md ) * 1px );
25
+ font-size : calc (var (--pf-t-- chart-- global--FontSize--sm ) * 1px );
26
26
}
27
27
28
28
// Placeholder string to stretch the column, set offscreen
@@ -32,19 +32,19 @@ $plotColors: (
32
32
33
33
& -axis ,
34
34
& -unit {
35
- font-size : calc (var (--pf-v5- chart-global--FontSize--xs ) * 1px );
36
- fill : var (--pf-v5- chart-global--Fill--Color --700 );
37
- letter-spacing : var (--pf-v5- chart-global--letter-spacing );
35
+ font-size : calc (var (--pf-t-- chart- -global--FontSize--xs ) * 1px );
36
+ fill : var (--pf-t-- chart-- global--fill--color --700 );
37
+ letter-spacing : var (--pf-t-- chart- -global--letter-spacing );
38
38
}
39
39
40
40
.pf-v6-theme-dark & -axis ,
41
41
.pf-v6-theme-dark & -unit {
42
- fill : var (--pf-v5- chart-global--Fill--Color --400 );
42
+ fill : var (--pf-t-- chart-- global--fill--color --400 );
43
43
}
44
44
45
45
& -lines ,
46
46
& -ticks {
47
- stroke : var (--pf-v5- chart-global--Fill--Color --300 );
47
+ stroke : var (--pf-t-- chart-- global--fill--color --300 );
48
48
shape-rendering : crispedges ;
49
49
}
50
50
@@ -56,7 +56,7 @@ $plotColors: (
56
56
}
57
57
58
58
& -paths {
59
- stroke-width : var (--pf-v5- chart-global--stroke--Width--sm );
59
+ stroke-width : var (--pf-t-- chart-- global--stroke--width--xs );
60
60
shape-rendering : geometricprecision ;
61
61
62
62
> path {
@@ -67,7 +67,7 @@ $plotColors: (
67
67
}
68
68
69
69
.ct-plot-title {
70
- fill : var (--pf-v5- global--Color--100 );
70
+ fill : var (--pf-t-- global--text--color--regular );
71
71
}
72
72
73
73
$plotColorCurrent : 0 ;
@@ -80,7 +80,7 @@ $plotColorTotal: 0;
80
80
@each $plotColor , $plotColorBackup in $plotColors {
81
81
$plotColorCurrent : $plotColorCurrent + 1 ;
82
82
.ct-plot-paths > path :nth-last-child (#{$plotColorTotal } n + #{$plotColorCurrent } ) {
83
- --ct-plot-path-color : var (--pf-v5- chart-color - #{$plotColor } , #{$plotColorBackup } );
83
+ --ct-plot-path-color : var (--pf-t-- chart-- color - -#{$plotColor} , #{$plotColorBackup } );
84
84
}
85
85
}
86
86
0 commit comments