@@ -3,134 +3,134 @@ import type { AliasColorTokens, Variants, VariantValue } from '@fluentui-react-n
3
3
// API that maps tokens coming from the android token pipeline to Theme color values.
4
4
export function mapPipelineToTheme ( pipelineOutput : any ) : AliasColorTokens {
5
5
return {
6
- neutralForeground1 : pipelineOutput . neutralForeground1 . fillColorRest ,
7
- neutralForeground1Hover : pipelineOutput . neutralForeground1 . fillColorHover ,
8
- neutralForeground1Pressed : pipelineOutput . neutralForeground1 . fillColorPressed ,
9
- neutralForeground1Selected : pipelineOutput . neutralForeground1 . fillColorSelected ,
10
- neutralForeground2 : pipelineOutput . neutralForeground2 . fillColorRest ,
11
- neutralForeground2Hover : pipelineOutput . neutralForeground2 . fillColorHover ,
12
- neutralForeground2Pressed : pipelineOutput . neutralForeground2 . fillColorPressed ,
13
- neutralForeground2Selected : pipelineOutput . neutralForeground2 . fillColorSelected ,
14
- neutralForeground2BrandHover : pipelineOutput . neutralForeground2 . fillColorBrandHover ,
15
- neutralForeground2BrandPressed : pipelineOutput . neutralForeground2 . fillColorBrandPressed ,
16
- neutralForeground2BrandSelected : pipelineOutput . neutralForeground2 . fillColorBrandSelected ,
17
- neutralForeground3 : pipelineOutput . neutralForeground3 . fillColorRest ,
18
- neutralForeground3Hover : pipelineOutput . neutralForeground3 . fillColorHover ,
19
- neutralForeground3Pressed : pipelineOutput . neutralForeground3 . fillColorPressed ,
20
- neutralForeground3Selected : pipelineOutput . neutralForeground3 . fillColorSelected ,
21
- neutralForeground3BrandHover : pipelineOutput . neutralForeground3 . fillColorBrandHover ,
22
- neutralForeground3BrandPressed : pipelineOutput . neutralForeground3 . fillColorBrandPressed ,
23
- neutralForeground3BrandSelected : pipelineOutput . neutralForeground3 . fillColorBrandSelected ,
24
- neutralForegroundInverted : pipelineOutput . neutralForegroundInverted . fillColorRest ,
25
- neutralForegroundDisabled1 : pipelineOutput . neutralForegroundDisabled1 . fillColorRest ,
26
- neutralForegroundDisabled2 : pipelineOutput . neutralForegroundDisabled2 . fillColorRest ,
27
-
28
- neutralForegroundOnColor : pipelineOutput . neutralForegroundOnColor . fillColorRest ,
29
-
30
- neutralBackgroundLightStatic : pipelineOutput . neutralBackgroundLightStatic . fillColorRest ,
31
- neutralBackgroundLightStaticDisabled : pipelineOutput . neutralBackgroundLightStaticDisabled . fillColorRest ,
32
-
33
- neutralBackground1 : pipelineOutput . neutralBackground1 . fillColorRest ,
34
- neutralBackground1Hover : pipelineOutput . neutralBackground1 . fillColorHover ,
35
- neutralBackground1Pressed : pipelineOutput . neutralBackground1 . fillColorPressed ,
36
- neutralBackground1Selected : pipelineOutput . neutralBackground1 . fillColorSelected ,
37
- neutralBackground2 : pipelineOutput . neutralBackground2 . fillColorRest ,
38
- neutralBackground2Hover : pipelineOutput . neutralBackground2 . fillColorHover ,
39
- neutralBackground2Pressed : pipelineOutput . neutralBackground2 . fillColorPressed ,
40
- neutralBackground2Selected : pipelineOutput . neutralBackground2 . fillColorSelected ,
41
-
42
- neutralBackground3 : pipelineOutput . neutralBackground3 . fillColorRest ,
43
- neutralBackground3Hover : pipelineOutput . neutralBackground3 . fillColorHover ,
44
- neutralBackground3Pressed : pipelineOutput . neutralBackground3 . fillColorPressed ,
45
- neutralBackground3Selected : pipelineOutput . neutralBackground3 . fillColorSelected ,
46
-
47
- neutralBackground4 : pipelineOutput . neutralBackground4 . fillColorRest ,
48
- neutralBackground4Hover : pipelineOutput . neutralBackground4 . fillColorHover ,
49
- neutralBackground4Pressed : pipelineOutput . neutralBackground4 . fillColorPressed ,
50
- neutralBackground4Selected : pipelineOutput . neutralBackground4 . fillColorSelected ,
51
-
52
- neutralBackground5 : pipelineOutput . neutralBackground5 . fillColorRest ,
53
- neutralBackground5Hover : pipelineOutput . neutralBackground5 . fillColorHover ,
54
- neutralBackground5Pressed : pipelineOutput . neutralBackground5 . fillColorPressed ,
55
- neutralBackground5Selected : pipelineOutput . neutralBackground5 . fillColorSelected ,
56
-
57
- neutralBackground6 : pipelineOutput . neutralBackground6 . fillColorRest ,
58
- neutralBackgroundInverted : pipelineOutput . neutralBackgroundInverted . fillColorRest ,
59
- neutralBackgroundDisabled : pipelineOutput . neutralBackgroundDisabled . fillColorRest ,
60
- neutralBackgroundCanvas : pipelineOutput . neutralBackgroundCanvas . fillColorRest ,
61
- neutralBackgroundDarkStatic : pipelineOutput . neutralBackgroundDarkStatic . fillColorRest ,
62
-
63
- neutralStencil1 : pipelineOutput . neutralStencil1 . fillColorRest ,
64
- neutralStencil2 : pipelineOutput . neutralStencil2 . fillColorRest ,
65
-
66
- neutralStrokeAccessible : pipelineOutput . neutralStrokeAccessible . strokeColorRest ,
67
- neutralStrokeAccessibleHover : pipelineOutput . neutralStrokeAccessible . strokeColorHover ,
68
- neutralStrokeAccessiblePressed : pipelineOutput . neutralStrokeAccessible . strokeColorPressed ,
69
- neutralStrokeAccessibleSelected : pipelineOutput . neutralStrokeAccessible . strokeColorSelected ,
70
-
71
- neutralStroke1 : pipelineOutput . neutralStroke1 . strokeColorRest ,
72
- neutralStroke1Hover : pipelineOutput . neutralStroke1 . strokeColorHover ,
73
- neutralStrokeFocus1 : pipelineOutput . neutralStrokeFocus1 . strokeColorRest ,
74
- neutralStrokeFocus2 : pipelineOutput . neutralStrokeFocus2 . strokeColorRest ,
75
- neutralStroke1Pressed : pipelineOutput . neutralStroke1 . strokeColorPressed ,
76
- neutralStroke1Selected : pipelineOutput . neutralStroke1 . strokeColorSelected ,
77
-
78
- neutralStroke2 : pipelineOutput . neutralStroke2 . strokeColorRest ,
79
- neutralStrokeDisabled : pipelineOutput . neutralStrokeDisabled . strokeColorRest ,
6
+ neutralForeground1 : pipelineOutput . neutralForeground1 . rest ,
7
+ neutralForeground1Hover : pipelineOutput . neutralForeground1 . hover ,
8
+ neutralForeground1Pressed : pipelineOutput . neutralForeground1 . pressed ,
9
+ neutralForeground1Selected : pipelineOutput . neutralForeground1 . selected ,
10
+ neutralForeground2 : pipelineOutput . neutralForeground2 . rest ,
11
+ neutralForeground2Hover : pipelineOutput . neutralForeground2 . hover ,
12
+ neutralForeground2Pressed : pipelineOutput . neutralForeground2 . pressed ,
13
+ neutralForeground2Selected : pipelineOutput . neutralForeground2 . selected ,
14
+ neutralForeground2BrandHover : pipelineOutput . neutralForeground2 . brandHover ,
15
+ neutralForeground2BrandPressed : pipelineOutput . neutralForeground2 . brandPressed ,
16
+ neutralForeground2BrandSelected : pipelineOutput . neutralForeground2 . brandSelected ,
17
+ neutralForeground3 : pipelineOutput . neutralForeground3 . rest ,
18
+ neutralForeground3Hover : pipelineOutput . neutralForeground3 . hover ,
19
+ neutralForeground3Pressed : pipelineOutput . neutralForeground3 . pressed ,
20
+ neutralForeground3Selected : pipelineOutput . neutralForeground3 . selected ,
21
+ neutralForeground3BrandHover : pipelineOutput . neutralForeground3 . brandHover ,
22
+ neutralForeground3BrandPressed : pipelineOutput . neutralForeground3 . brandPressed ,
23
+ neutralForeground3BrandSelected : pipelineOutput . neutralForeground3 . brandSelected ,
24
+ neutralForegroundInverted : pipelineOutput . neutralForegroundInverted . rest ,
25
+ neutralForegroundDisabled1 : pipelineOutput . neutralForegroundDisabled1 . rest ,
26
+ neutralForegroundDisabled2 : pipelineOutput . neutralForegroundDisabled2 . rest ,
27
+
28
+ neutralForegroundOnColor : pipelineOutput . neutralForegroundOnColor . rest ,
29
+
30
+ neutralBackgroundLightStatic : pipelineOutput . neutralBackgroundLightStatic . rest ,
31
+ neutralBackgroundLightStaticDisabled : pipelineOutput . neutralBackgroundLightStaticDisabled . rest ,
32
+
33
+ neutralBackground1 : pipelineOutput . neutralBackground1 . rest ,
34
+ neutralBackground1Hover : pipelineOutput . neutralBackground1 . hover ,
35
+ neutralBackground1Pressed : pipelineOutput . neutralBackground1 . pressed ,
36
+ neutralBackground1Selected : pipelineOutput . neutralBackground1 . selected ,
37
+ neutralBackground2 : pipelineOutput . neutralBackground2 . rest ,
38
+ neutralBackground2Hover : pipelineOutput . neutralBackground2 . hover ,
39
+ neutralBackground2Pressed : pipelineOutput . neutralBackground2 . pressed ,
40
+ neutralBackground2Selected : pipelineOutput . neutralBackground2 . selected ,
41
+
42
+ neutralBackground3 : pipelineOutput . neutralBackground3 . rest ,
43
+ neutralBackground3Hover : pipelineOutput . neutralBackground3 . hover ,
44
+ neutralBackground3Pressed : pipelineOutput . neutralBackground3 . pressed ,
45
+ neutralBackground3Selected : pipelineOutput . neutralBackground3 . selected ,
46
+
47
+ neutralBackground4 : pipelineOutput . neutralBackground4 . rest ,
48
+ neutralBackground4Hover : pipelineOutput . neutralBackground4 . hover ,
49
+ neutralBackground4Pressed : pipelineOutput . neutralBackground4 . pressed ,
50
+ neutralBackground4Selected : pipelineOutput . neutralBackground4 . selected ,
51
+
52
+ neutralBackground5 : pipelineOutput . neutralBackground5 . rest ,
53
+ neutralBackground5Hover : pipelineOutput . neutralBackground5 . hover ,
54
+ neutralBackground5Pressed : pipelineOutput . neutralBackground5 . pressed ,
55
+ neutralBackground5Selected : pipelineOutput . neutralBackground5 . selected ,
56
+
57
+ neutralBackground6 : pipelineOutput . neutralBackground6 . rest ,
58
+ neutralBackgroundInverted : pipelineOutput . neutralBackgroundInverted . rest ,
59
+ neutralBackgroundDisabled : pipelineOutput . neutralBackgroundDisabled . rest ,
60
+ neutralBackgroundCanvas : pipelineOutput . neutralBackgroundCanvas . rest ,
61
+ neutralBackgroundDarkStatic : pipelineOutput . neutralBackgroundDarkStatic . rest ,
62
+
63
+ neutralStencil1 : pipelineOutput . neutralStencil1 . rest ,
64
+ neutralStencil2 : pipelineOutput . neutralStencil2 . rest ,
65
+
66
+ neutralStrokeAccessible : pipelineOutput . neutralStrokeAccessible . rest ,
67
+ neutralStrokeAccessibleHover : pipelineOutput . neutralStrokeAccessible . hover ,
68
+ neutralStrokeAccessiblePressed : pipelineOutput . neutralStrokeAccessible . pressed ,
69
+ neutralStrokeAccessibleSelected : pipelineOutput . neutralStrokeAccessible . selected ,
70
+
71
+ neutralStroke1 : pipelineOutput . neutralStroke1 . rest ,
72
+ neutralStroke1Hover : pipelineOutput . neutralStroke1 . hover ,
73
+ neutralStrokeFocus1 : pipelineOutput . neutralStrokeFocus1 . rest ,
74
+ neutralStrokeFocus2 : pipelineOutput . neutralStrokeFocus2 . rest ,
75
+ neutralStroke1Pressed : pipelineOutput . neutralStroke1 . pressed ,
76
+ neutralStroke1Selected : pipelineOutput . neutralStroke1 . selected ,
77
+
78
+ neutralStroke2 : pipelineOutput . neutralStroke2 . rest ,
79
+ neutralStrokeDisabled : pipelineOutput . neutralStrokeDisabled . rest ,
80
80
81
81
//Brand tokens.
82
- brandBackground : pipelineOutput . brandBackground1 . fillColorRest ,
83
- brandBackgroundPressed : pipelineOutput . brandBackground1 . fillColorPressed ,
84
- brandBackgroundSelected : pipelineOutput . brandBackground1 . fillColorSelected ,
85
- brandBackgroundDisabled : pipelineOutput . brandBackgroundDisabled . fillColorRest ,
86
- brandBackground2 : pipelineOutput . brandBackground2 ?. fillColorRest ,
87
- brandBackground2Pressed : pipelineOutput . brandBackground2 ?. fillColorPressed ,
88
- brandBackground2Selected : pipelineOutput . brandBackground2 ?. fillColorSelected ,
82
+ brandBackground : pipelineOutput . brandBackground1 . rest ,
83
+ brandBackgroundPressed : pipelineOutput . brandBackground1 . pressed ,
84
+ brandBackgroundSelected : pipelineOutput . brandBackground1 . selected ,
85
+ brandBackgroundDisabled : pipelineOutput . brandBackgroundDisabled . rest ,
86
+ brandBackground2 : pipelineOutput . brandBackground2 ?. rest ,
87
+ brandBackground2Pressed : pipelineOutput . brandBackground2 ?. pressed ,
88
+ brandBackground2Selected : pipelineOutput . brandBackground2 ?. selected ,
89
89
90
- brandBackground3 : pipelineOutput . brandBackground3 ?. fillColorRest ,
91
- brandBackgroundTint : pipelineOutput . brandBackgroundTint . fillColorRest ,
92
- brandBackgroundInverted : pipelineOutput . brandBackgroundInverted . fillColorRest ,
90
+ brandBackground3 : pipelineOutput . brandBackground3 ?. rest ,
91
+ brandBackgroundTint : pipelineOutput . brandBackgroundTint . rest ,
92
+ brandBackgroundInverted : pipelineOutput . brandBackgroundInverted . rest ,
93
93
94
- brandBackgroundInvertedDisabled : pipelineOutput . brandBackgroundInvertedDisabled . fillColorRest ,
94
+ brandBackgroundInvertedDisabled : pipelineOutput . brandBackgroundInvertedDisabled . rest ,
95
95
96
- brandForeground1 : pipelineOutput . brandForeground1 . fillColorRest ,
97
- brandForeground1Pressed : pipelineOutput . brandForeground1 . fillColorPressed ,
98
- brandForeground1Selected : pipelineOutput . brandForeground1 . fillColorSelected ,
96
+ brandForeground1 : pipelineOutput . brandForeground1 . rest ,
97
+ brandForeground1Pressed : pipelineOutput . brandForeground1 . pressed ,
98
+ brandForeground1Selected : pipelineOutput . brandForeground1 . selected ,
99
99
100
- brandForegroundTint : pipelineOutput . brandForegroundTint . fillColorRest ,
101
- brandForegroundDisabled1 : pipelineOutput . brandForegroundDisabled1 . fillColorRest ,
102
- brandForegroundDisabled2 : pipelineOutput . brandForegroundDisabled2 . fillColorRest ,
100
+ brandForegroundTint : pipelineOutput . brandForegroundTint . rest ,
101
+ brandForegroundDisabled1 : pipelineOutput . brandForegroundDisabled1 . rest ,
102
+ brandForegroundDisabled2 : pipelineOutput . brandForegroundDisabled2 . rest ,
103
103
104
- brandStroke1 : pipelineOutput . brandStroke1 . strokeColorRest ,
105
- brandStroke1Pressed : pipelineOutput . brandStroke1 . strokeColorPressed ,
106
- brandStroke1Selected : pipelineOutput . brandStroke1 . strokeColorSelected ,
104
+ brandStroke1 : pipelineOutput . brandStroke1 . rest ,
105
+ brandStroke1Pressed : pipelineOutput . brandStroke1 . pressed ,
106
+ brandStroke1Selected : pipelineOutput . brandStroke1 . selected ,
107
107
108
108
/// Error, status, and presence tokens
109
109
110
- dangerBackground1 : pipelineOutput . dangerBackground1 . fillColorRest ,
111
- dangerBackground2 : pipelineOutput . dangerBackground2 . fillColorRest ,
112
- dangerForeground1 : pipelineOutput . dangerForeground1 . fillColorRest ,
113
- dangerForeground2 : pipelineOutput . dangerForeground2 . fillColorRest ,
114
-
115
- successBackground1 : pipelineOutput . successBackground1 . fillColorRest ,
116
- successBackground2 : pipelineOutput . successBackground2 . fillColorRest ,
117
- successForeground1 : pipelineOutput . successForeground1 . fillColorRest ,
118
- successForeground2 : pipelineOutput . successForeground2 . fillColorRest ,
119
-
120
- warningBackground1 : pipelineOutput . warningBackground1 . fillColorRest ,
121
- warningBackground2 : pipelineOutput . warningBackground2 . fillColorRest ,
122
- warningForeground1 : pipelineOutput . warningForeground1 . fillColorRest ,
123
- warningForeground2 : pipelineOutput . warningForeground2 . fillColorRest ,
124
-
125
- severeBackground1 : pipelineOutput . severeBackground1 . fillColorRest ,
126
- severeBackground2 : pipelineOutput . severeBackground2 . fillColorRest ,
127
- severeForeground1 : pipelineOutput . severeForeground1 . fillColorRest ,
128
- severeForeground2 : pipelineOutput . severeForeground1 . fillColorRest ,
129
-
130
- presenceAway : pipelineOutput . presenceAway . fillColorRest ,
131
- presenceDnd : pipelineOutput . presenceDnd . fillColorRest ,
132
- presenceAvailable : pipelineOutput . presenceAvailable . fillColorRest ,
133
- presenceOof : pipelineOutput . presenceOof . fillColorRest ,
110
+ dangerBackground1 : pipelineOutput . dangerBackground1 . rest ,
111
+ dangerBackground2 : pipelineOutput . dangerBackground2 . rest ,
112
+ dangerForeground1 : pipelineOutput . dangerForeground1 . rest ,
113
+ dangerForeground2 : pipelineOutput . dangerForeground2 . rest ,
114
+
115
+ successBackground1 : pipelineOutput . successBackground1 . rest ,
116
+ successBackground2 : pipelineOutput . successBackground2 . rest ,
117
+ successForeground1 : pipelineOutput . successForeground1 . rest ,
118
+ successForeground2 : pipelineOutput . successForeground2 . rest ,
119
+
120
+ warningBackground1 : pipelineOutput . warningBackground1 . rest ,
121
+ warningBackground2 : pipelineOutput . warningBackground2 . rest ,
122
+ warningForeground1 : pipelineOutput . warningForeground1 . rest ,
123
+ warningForeground2 : pipelineOutput . warningForeground2 . rest ,
124
+
125
+ severeBackground1 : pipelineOutput . severeBackground1 . rest ,
126
+ severeBackground2 : pipelineOutput . severeBackground2 . rest ,
127
+ severeForeground1 : pipelineOutput . severeForeground1 . rest ,
128
+ severeForeground2 : pipelineOutput . severeForeground1 . rest ,
129
+
130
+ presenceAway : pipelineOutput . presenceAway . rest ,
131
+ presenceDnd : pipelineOutput . presenceDnd . rest ,
132
+ presenceAvailable : pipelineOutput . presenceAvailable . rest ,
133
+ presenceOof : pipelineOutput . presenceOof . rest ,
134
134
} ;
135
135
}
136
136
0 commit comments