@entur/tokens 3.15.1 → 3.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.css +1 -1
- package/dist/base.scss +1 -1
- package/dist/componentColors.d.ts +32 -0
- package/dist/primitive.css +4 -0
- package/dist/primitive.d.ts +4 -0
- package/dist/primitive.less +4 -0
- package/dist/primitive.scss +4 -0
- package/dist/semantic.css +9 -0
- package/dist/semantic.d.ts +9 -0
- package/dist/semantic.less +9 -0
- package/dist/semantic.scss +9 -0
- package/dist/tokens.cjs.development.js +107 -62
- package/dist/tokens.cjs.development.js.map +1 -1
- package/dist/tokens.cjs.production.min.js +1 -1
- package/dist/tokens.cjs.production.min.js.map +1 -1
- package/dist/tokens.esm.js +107 -62
- package/dist/tokens.esm.js.map +1 -1
- package/dist/transport.css +2 -2
- package/dist/transport.less +2 -2
- package/dist/transport.scss +2 -2
- package/package.json +2 -2
package/dist/tokens.esm.js
CHANGED
|
@@ -126,6 +126,7 @@ var primitive = {
|
|
|
126
126
|
"transparent": {
|
|
127
127
|
"blueAlpha10": "#9ea0bd1a",
|
|
128
128
|
"blueAlpha40": "#54568c66",
|
|
129
|
+
"canaryAlpha25": "#ffe08240",
|
|
129
130
|
"canaryAlpha30": "#fff4cd4d",
|
|
130
131
|
"coralAlpha20": "#ff949433",
|
|
131
132
|
"ebonyAlpha15": "#e5e5e926",
|
|
@@ -133,9 +134,12 @@ var primitive = {
|
|
|
133
134
|
"ebonyAlpha25": "#e5e5e940",
|
|
134
135
|
"ebonyAlpha35": "#e5e5e959",
|
|
135
136
|
"lavenderAlpha70": "#aeb7e2b2",
|
|
137
|
+
"mintAlpha20": "#5ac39a33",
|
|
136
138
|
"neutralAlpha10": "#cfd2d41a",
|
|
137
139
|
"neutralAlpha15": "#cfd2d426",
|
|
138
|
-
"
|
|
140
|
+
"neutralAlpha20": "#26272933",
|
|
141
|
+
"peachAlpha70": "#ffbf9eb2",
|
|
142
|
+
"skyAlpha20": "#2d98d233"
|
|
139
143
|
},
|
|
140
144
|
"white": {
|
|
141
145
|
"alpha0": "#ffffff00",
|
|
@@ -206,7 +210,8 @@ var semantic = {
|
|
|
206
210
|
"contrast": "#64b3e7",
|
|
207
211
|
"deep": "#067eb2",
|
|
208
212
|
"muted": "#e1eff8",
|
|
209
|
-
"tint": "#acd7f1"
|
|
213
|
+
"tint": "#acd7f1",
|
|
214
|
+
"transparent": "#2d98d233"
|
|
210
215
|
},
|
|
211
216
|
"negative": {
|
|
212
217
|
"contrast": "#ff5959",
|
|
@@ -263,13 +268,15 @@ var semantic = {
|
|
|
263
268
|
"deep": "#1a8e60",
|
|
264
269
|
"muted": "#d0f1e3",
|
|
265
270
|
"subdued": "#37ab83",
|
|
266
|
-
"tint": "#9cd9c2"
|
|
271
|
+
"tint": "#9cd9c2",
|
|
272
|
+
"transparent": "#5ac39a33"
|
|
267
273
|
},
|
|
268
274
|
"warning": {
|
|
269
275
|
"contrast": "#ffe082",
|
|
270
276
|
"deep": "#ffca28",
|
|
271
277
|
"muted": "#fff4cd",
|
|
272
|
-
"tint": "#ffeeb3"
|
|
278
|
+
"tint": "#ffeeb3",
|
|
279
|
+
"transparent": "#ffe08240"
|
|
273
280
|
}
|
|
274
281
|
},
|
|
275
282
|
"shape": {
|
|
@@ -283,6 +290,7 @@ var semantic = {
|
|
|
283
290
|
"inactive": "#bcbdd2",
|
|
284
291
|
"information": "#067eb2",
|
|
285
292
|
"informationalt": "#64b3e7",
|
|
293
|
+
"informationalt2": "#acd7f1",
|
|
286
294
|
"light": "#ffffff",
|
|
287
295
|
"lightalt": "#e5e5e9",
|
|
288
296
|
"negative": "#d31b1b",
|
|
@@ -294,8 +302,10 @@ var semantic = {
|
|
|
294
302
|
"subduedalt": "#d9dae8",
|
|
295
303
|
"success": "#1a8e60",
|
|
296
304
|
"successalt": "#5ac39a",
|
|
305
|
+
"successalt2": "#9cd9c2",
|
|
297
306
|
"warning": "#ffca28",
|
|
298
|
-
"warningalt": "#ffe082"
|
|
307
|
+
"warningalt": "#ffe082",
|
|
308
|
+
"warningalt2": "#ffeeb3"
|
|
299
309
|
},
|
|
300
310
|
"stroke": {
|
|
301
311
|
"accent": "#181c56",
|
|
@@ -308,6 +318,7 @@ var semantic = {
|
|
|
308
318
|
"highlight": "#ff5959",
|
|
309
319
|
"highlightalt": "#ff9494",
|
|
310
320
|
"information": "#067eb2",
|
|
321
|
+
"informationalt": "#acd7f1",
|
|
311
322
|
"light": "#ffffff",
|
|
312
323
|
"lightalt": "#e5e5e9",
|
|
313
324
|
"negative": "#d31b1b",
|
|
@@ -317,9 +328,11 @@ var semantic = {
|
|
|
317
328
|
"subdued": "#8284ab",
|
|
318
329
|
"success": "#1a8e60",
|
|
319
330
|
"successalt": "#5ac39a",
|
|
331
|
+
"successalt2": "#9cd9c2",
|
|
320
332
|
"transparent": "#54568c66",
|
|
321
333
|
"transparentalt": "#aeb7e2b2",
|
|
322
|
-
"warning": "#e9b10c"
|
|
334
|
+
"warning": "#e9b10c",
|
|
335
|
+
"warningalt": "#ffeeb3"
|
|
323
336
|
},
|
|
324
337
|
"text": {
|
|
325
338
|
"accent": "#181c56",
|
|
@@ -480,7 +493,7 @@ var base = {
|
|
|
480
493
|
"highlight": "#ff9494",
|
|
481
494
|
"light": "#b3b4bd",
|
|
482
495
|
"subdued": "#81828f",
|
|
483
|
-
"subduedalt": "#
|
|
496
|
+
"subduedalt": "#949699"
|
|
484
497
|
},
|
|
485
498
|
"text": {
|
|
486
499
|
"accent": "#e5e5e9",
|
|
@@ -582,8 +595,8 @@ var transport = {
|
|
|
582
595
|
},
|
|
583
596
|
"dark": {
|
|
584
597
|
"bicycle": "#4db295",
|
|
585
|
-
"bus": "#
|
|
586
|
-
"busTransparent": "#
|
|
598
|
+
"bus": "#ef7398",
|
|
599
|
+
"busTransparent": "#ef739826",
|
|
587
600
|
"cableway": "#b898e5",
|
|
588
601
|
"cablewayTransparent": "#b898e526",
|
|
589
602
|
"carferry": "#8ccfe2",
|
|
@@ -797,7 +810,7 @@ var componentColors = {
|
|
|
797
810
|
"text": "#181c56"
|
|
798
811
|
},
|
|
799
812
|
"standard": {
|
|
800
|
-
"border": "#
|
|
813
|
+
"border": "#d31b1b",
|
|
801
814
|
"fill": "#ffcece",
|
|
802
815
|
"icon": "#d31b1b",
|
|
803
816
|
"text": "#181c56"
|
|
@@ -811,7 +824,7 @@ var componentColors = {
|
|
|
811
824
|
"text": "#181c56"
|
|
812
825
|
},
|
|
813
826
|
"standard": {
|
|
814
|
-
"border": "#
|
|
827
|
+
"border": "#1a8e60",
|
|
815
828
|
"fill": "#d0f1e3",
|
|
816
829
|
"icon": "#1a8e60",
|
|
817
830
|
"text": "#181c56"
|
|
@@ -825,7 +838,7 @@ var componentColors = {
|
|
|
825
838
|
"text": "#181c56"
|
|
826
839
|
},
|
|
827
840
|
"standard": {
|
|
828
|
-
"border": "#
|
|
841
|
+
"border": "#e9b10c",
|
|
829
842
|
"fill": "#fff4cd",
|
|
830
843
|
"icon": "#181c56",
|
|
831
844
|
"text": "#181c56"
|
|
@@ -1406,10 +1419,12 @@ var componentColors = {
|
|
|
1406
1419
|
"border": "#8284ab",
|
|
1407
1420
|
"fillDefault": "#f2f5f7",
|
|
1408
1421
|
"fillHover": "#d9dae8",
|
|
1422
|
+
"fillSelected": "#181c56",
|
|
1409
1423
|
"icon": "#181c56",
|
|
1410
1424
|
"iconDisabled": "#6e6f73",
|
|
1411
1425
|
"text": "#181c56",
|
|
1412
|
-
"textDisabled": "#6e6f73"
|
|
1426
|
+
"textDisabled": "#6e6f73",
|
|
1427
|
+
"textSelected": "#ffffff"
|
|
1413
1428
|
},
|
|
1414
1429
|
"pagination": {
|
|
1415
1430
|
"contrast": {
|
|
@@ -2032,6 +2047,20 @@ var componentColors = {
|
|
|
2032
2047
|
"fill": "#ffffff"
|
|
2033
2048
|
}
|
|
2034
2049
|
},
|
|
2050
|
+
"logo": {
|
|
2051
|
+
"contrast": {
|
|
2052
|
+
"backgroundApp": "#ffffff",
|
|
2053
|
+
"highlight": "#ff5959",
|
|
2054
|
+
"text": "#ffffff",
|
|
2055
|
+
"textApp": "#181c56"
|
|
2056
|
+
},
|
|
2057
|
+
"standard": {
|
|
2058
|
+
"backgroundApp": "#181c56",
|
|
2059
|
+
"highlight": "#ff5959",
|
|
2060
|
+
"text": "#181c56",
|
|
2061
|
+
"textApp": "#ffffff"
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2035
2064
|
"npmtag": {
|
|
2036
2065
|
"divide": "#949699",
|
|
2037
2066
|
"text": "#6e6f73"
|
|
@@ -2176,58 +2205,58 @@ var componentColors = {
|
|
|
2176
2205
|
"alertbox": {
|
|
2177
2206
|
"information": {
|
|
2178
2207
|
"contrast": {
|
|
2179
|
-
"border": "#
|
|
2180
|
-
"fill": "#
|
|
2181
|
-
"icon": "#
|
|
2182
|
-
"text": "#
|
|
2208
|
+
"border": "#acd7f1",
|
|
2209
|
+
"fill": "#2d98d233",
|
|
2210
|
+
"icon": "#acd7f1",
|
|
2211
|
+
"text": "#e5e5e9"
|
|
2183
2212
|
},
|
|
2184
2213
|
"standard": {
|
|
2185
|
-
"border": "#
|
|
2186
|
-
"fill": "#
|
|
2187
|
-
"icon": "#
|
|
2188
|
-
"text": "#
|
|
2214
|
+
"border": "#acd7f1",
|
|
2215
|
+
"fill": "#2d98d233",
|
|
2216
|
+
"icon": "#acd7f1",
|
|
2217
|
+
"text": "#e5e5e9"
|
|
2189
2218
|
}
|
|
2190
2219
|
},
|
|
2191
2220
|
"negative": {
|
|
2192
2221
|
"contrast": {
|
|
2193
|
-
"border": "#
|
|
2194
|
-
"fill": "#
|
|
2195
|
-
"icon": "#
|
|
2196
|
-
"text": "#
|
|
2222
|
+
"border": "#ff9494",
|
|
2223
|
+
"fill": "#ff949433",
|
|
2224
|
+
"icon": "#ff9494",
|
|
2225
|
+
"text": "#e5e5e9"
|
|
2197
2226
|
},
|
|
2198
2227
|
"standard": {
|
|
2199
|
-
"border": "#
|
|
2200
|
-
"fill": "#
|
|
2201
|
-
"icon": "#
|
|
2202
|
-
"text": "#
|
|
2228
|
+
"border": "#ff9494",
|
|
2229
|
+
"fill": "#ff949433",
|
|
2230
|
+
"icon": "#ff9494",
|
|
2231
|
+
"text": "#e5e5e9"
|
|
2203
2232
|
}
|
|
2204
2233
|
},
|
|
2205
2234
|
"success": {
|
|
2206
2235
|
"contrast": {
|
|
2207
|
-
"border": "#
|
|
2208
|
-
"fill": "#
|
|
2209
|
-
"icon": "#
|
|
2210
|
-
"text": "#
|
|
2236
|
+
"border": "#9cd9c2",
|
|
2237
|
+
"fill": "#5ac39a33",
|
|
2238
|
+
"icon": "#9cd9c2",
|
|
2239
|
+
"text": "#e5e5e9"
|
|
2211
2240
|
},
|
|
2212
2241
|
"standard": {
|
|
2213
|
-
"border": "#
|
|
2214
|
-
"fill": "#
|
|
2215
|
-
"icon": "#
|
|
2216
|
-
"text": "#
|
|
2242
|
+
"border": "#9cd9c2",
|
|
2243
|
+
"fill": "#5ac39a33",
|
|
2244
|
+
"icon": "#9cd9c2",
|
|
2245
|
+
"text": "#e5e5e9"
|
|
2217
2246
|
}
|
|
2218
2247
|
},
|
|
2219
2248
|
"warning": {
|
|
2220
2249
|
"contrast": {
|
|
2221
|
-
"border": "#
|
|
2222
|
-
"fill": "#
|
|
2223
|
-
"icon": "#
|
|
2224
|
-
"text": "#
|
|
2250
|
+
"border": "#ffeeb3",
|
|
2251
|
+
"fill": "#ffe08240",
|
|
2252
|
+
"icon": "#ffeeb3",
|
|
2253
|
+
"text": "#e5e5e9"
|
|
2225
2254
|
},
|
|
2226
2255
|
"standard": {
|
|
2227
|
-
"border": "#
|
|
2228
|
-
"fill": "#
|
|
2229
|
-
"icon": "#
|
|
2230
|
-
"text": "#
|
|
2256
|
+
"border": "#ffeeb3",
|
|
2257
|
+
"fill": "#ffe08240",
|
|
2258
|
+
"icon": "#ffeeb3",
|
|
2259
|
+
"text": "#e5e5e9"
|
|
2231
2260
|
}
|
|
2232
2261
|
}
|
|
2233
2262
|
},
|
|
@@ -2805,10 +2834,12 @@ var componentColors = {
|
|
|
2805
2834
|
"border": "#ffffff00",
|
|
2806
2835
|
"fillDefault": "#464755",
|
|
2807
2836
|
"fillHover": "#626493",
|
|
2837
|
+
"fillSelected": "#8794d4",
|
|
2808
2838
|
"icon": "#e5e5e9",
|
|
2809
2839
|
"iconDisabled": "#949699",
|
|
2810
2840
|
"text": "#e5e5e9",
|
|
2811
|
-
"textDisabled": "#949699"
|
|
2841
|
+
"textDisabled": "#949699",
|
|
2842
|
+
"textSelected": "#181c56"
|
|
2812
2843
|
},
|
|
2813
2844
|
"pagination": {
|
|
2814
2845
|
"contrast": {
|
|
@@ -3054,7 +3085,7 @@ var componentColors = {
|
|
|
3054
3085
|
"airportlinkrail": "#f2b8e5",
|
|
3055
3086
|
"bicycle": "#4db295",
|
|
3056
3087
|
"bulletBorder": "#08091c",
|
|
3057
|
-
"bus": "#
|
|
3088
|
+
"bus": "#ef7398",
|
|
3058
3089
|
"cableway": "#b898e5",
|
|
3059
3090
|
"carferry": "#8ccfe2",
|
|
3060
3091
|
"citybike": "#4db295",
|
|
@@ -3074,7 +3105,7 @@ var componentColors = {
|
|
|
3074
3105
|
"airportlinkrail": "#f2b8e5",
|
|
3075
3106
|
"bicycle": "#4db295",
|
|
3076
3107
|
"bulletBorder": "#08091c",
|
|
3077
|
-
"bus": "#
|
|
3108
|
+
"bus": "#ef7398",
|
|
3078
3109
|
"cableway": "#b898e5",
|
|
3079
3110
|
"carferry": "#8ccfe2",
|
|
3080
3111
|
"citybike": "#4db295",
|
|
@@ -3095,7 +3126,7 @@ var componentColors = {
|
|
|
3095
3126
|
"backgroundfalse": "#e5e5e959",
|
|
3096
3127
|
"backgroundtrueAir": "#f2b8e5",
|
|
3097
3128
|
"backgroundtrueBicycle": "#4db295",
|
|
3098
|
-
"backgroundtrueBus": "#
|
|
3129
|
+
"backgroundtrueBus": "#ef7398",
|
|
3099
3130
|
"backgroundtrueCableway": "#b898e5",
|
|
3100
3131
|
"backgroundtrueCarferry": "#8ccfe2",
|
|
3101
3132
|
"backgroundtrueCitybike": "#4db295",
|
|
@@ -3115,7 +3146,7 @@ var componentColors = {
|
|
|
3115
3146
|
"backgroundtrueAirportlinkrail": "#f2b8e5",
|
|
3116
3147
|
"iconfalse": "#b3b4bd",
|
|
3117
3148
|
"icontrueBicycle": "#4db295",
|
|
3118
|
-
"icontrueBus": "#
|
|
3149
|
+
"icontrueBus": "#ef7398",
|
|
3119
3150
|
"icontrueCableway": "#b898e5",
|
|
3120
3151
|
"icontrueCarferry": "#8ccfe2",
|
|
3121
3152
|
"icontrueCitybike": "#4db295",
|
|
@@ -3139,7 +3170,7 @@ var componentColors = {
|
|
|
3139
3170
|
"backgroundfalse": "#e5e5e959",
|
|
3140
3171
|
"backgroundtrueAir": "#f2b8e5",
|
|
3141
3172
|
"backgroundtrueBicycle": "#4db295",
|
|
3142
|
-
"backgroundtrueBus": "#
|
|
3173
|
+
"backgroundtrueBus": "#ef7398",
|
|
3143
3174
|
"backgroundtrueCableway": "#b898e5",
|
|
3144
3175
|
"backgroundtrueCarferry": "#8ccfe2",
|
|
3145
3176
|
"backgroundtrueCitybike": "#4db295",
|
|
@@ -3159,7 +3190,7 @@ var componentColors = {
|
|
|
3159
3190
|
"backgroundtrueAirportlinkrail": "#f2b8e5",
|
|
3160
3191
|
"iconfalse": "#b3b4bd",
|
|
3161
3192
|
"icontrueBicycle": "#00db9b",
|
|
3162
|
-
"icontrueBus": "#
|
|
3193
|
+
"icontrueBus": "#ef7398",
|
|
3163
3194
|
"icontrueCableway": "#b898e5",
|
|
3164
3195
|
"icontrueCarferry": "#8ccfe2",
|
|
3165
3196
|
"icontrueCitybike": "#00db9b",
|
|
@@ -3186,7 +3217,7 @@ var componentColors = {
|
|
|
3186
3217
|
"travelTag": {
|
|
3187
3218
|
"contrast": {
|
|
3188
3219
|
"icon": "#08091c",
|
|
3189
|
-
"iconBusCancled": "#
|
|
3220
|
+
"iconBusCancled": "#ef7398",
|
|
3190
3221
|
"iconCabllewayCancled": "#b898e5",
|
|
3191
3222
|
"iconCarferryCancled": "#8ccfe2",
|
|
3192
3223
|
"iconFerryCancled": "#8ccfe2",
|
|
@@ -3203,8 +3234,8 @@ var componentColors = {
|
|
|
3203
3234
|
"iconborderValidation": "#08091c",
|
|
3204
3235
|
"tagfillAir": "#f2b8e5",
|
|
3205
3236
|
"tagfillBicycle": "#4db295",
|
|
3206
|
-
"tagfillBus": "#
|
|
3207
|
-
"tagfillBusCancled": "#
|
|
3237
|
+
"tagfillBus": "#ef7398",
|
|
3238
|
+
"tagfillBusCancled": "#ef739826",
|
|
3208
3239
|
"tagfillCableway": "#b898e5",
|
|
3209
3240
|
"tagfillCablewayCancled": "#b898e526",
|
|
3210
3241
|
"tagfillCarferry": "#8ccfe2",
|
|
@@ -3240,7 +3271,7 @@ var componentColors = {
|
|
|
3240
3271
|
"textCancled": "#b6b8ba",
|
|
3241
3272
|
"textLabel": "#e5e5e9",
|
|
3242
3273
|
"textLine": "#08091c",
|
|
3243
|
-
"textLineBusCancled": "#
|
|
3274
|
+
"textLineBusCancled": "#ef7398",
|
|
3244
3275
|
"textLineCablewayCancled": "#b898e5",
|
|
3245
3276
|
"textLineCarferryCancled": "#8ccfe2",
|
|
3246
3277
|
"textLineFerryCancled": "#8ccfe2",
|
|
@@ -3258,7 +3289,7 @@ var componentColors = {
|
|
|
3258
3289
|
},
|
|
3259
3290
|
"standard": {
|
|
3260
3291
|
"icon": "#08091c",
|
|
3261
|
-
"iconBusCancled": "#
|
|
3292
|
+
"iconBusCancled": "#ef7398",
|
|
3262
3293
|
"iconCarferryCancled": "#8ccfe2",
|
|
3263
3294
|
"iconFerryCancled": "#8ccfe2",
|
|
3264
3295
|
"iconFunicularCancled": "#b898e5",
|
|
@@ -3276,8 +3307,8 @@ var componentColors = {
|
|
|
3276
3307
|
"tagfillAir": "#f2b8e5",
|
|
3277
3308
|
"tagfillAirCancled": "#f2b8e526",
|
|
3278
3309
|
"tagfillBicycle": "#4db295",
|
|
3279
|
-
"tagfillBus": "#
|
|
3280
|
-
"tagfillBusCancled": "#
|
|
3310
|
+
"tagfillBus": "#ef7398",
|
|
3311
|
+
"tagfillBusCancled": "#ef739826",
|
|
3281
3312
|
"tagfillCableway": "#b898e5",
|
|
3282
3313
|
"tagfillCablewayCancled": "#b482fb26",
|
|
3283
3314
|
"tagfillCarferry": "#8ccfe2",
|
|
@@ -3312,7 +3343,7 @@ var componentColors = {
|
|
|
3312
3343
|
"textCancled": "#b6b8ba",
|
|
3313
3344
|
"textLabel": "#e5e5e9",
|
|
3314
3345
|
"textLine": "#08091c",
|
|
3315
|
-
"textLineBusCancled": "#
|
|
3346
|
+
"textLineBusCancled": "#ef7398",
|
|
3316
3347
|
"textLineCablewayCancled": "#b898e5",
|
|
3317
3348
|
"textLineCarferryCancled": "#8ccfe2",
|
|
3318
3349
|
"textLineFerryCancled": "#8ccfe2",
|
|
@@ -3431,6 +3462,20 @@ var componentColors = {
|
|
|
3431
3462
|
"fill": "#08091c"
|
|
3432
3463
|
}
|
|
3433
3464
|
},
|
|
3465
|
+
"logo": {
|
|
3466
|
+
"contrast": {
|
|
3467
|
+
"backgroundApp": "#e5e5e926",
|
|
3468
|
+
"highlight": "#ff5959",
|
|
3469
|
+
"text": "#ffffff",
|
|
3470
|
+
"textApp": "#ffffff"
|
|
3471
|
+
},
|
|
3472
|
+
"standard": {
|
|
3473
|
+
"backgroundApp": "#e5e5e926",
|
|
3474
|
+
"highlight": "#ff5959",
|
|
3475
|
+
"text": "#ffffff",
|
|
3476
|
+
"textApp": "#ffffff"
|
|
3477
|
+
}
|
|
3478
|
+
},
|
|
3434
3479
|
"npmtag": {
|
|
3435
3480
|
"divide": "#e5e5e9",
|
|
3436
3481
|
"text": "#e5e5e9"
|
|
@@ -3846,11 +3891,11 @@ var outlineOffsets = {
|
|
|
3846
3891
|
var SUPPORTED_COLOR_MODES = ['light', 'dark'];
|
|
3847
3892
|
function createColorSet(fileData) {
|
|
3848
3893
|
var colorsUnformated = JSON.parse(fileData);
|
|
3849
|
-
var colorsFormatedAndMappedToModes = colorsUnformated.reduce(function (allComponentColors, colorMode) {
|
|
3894
|
+
var colorsFormatedAndMappedToModes = colorsUnformated[0].values.reduce(function (allComponentColors, colorMode) {
|
|
3850
3895
|
var colorsFormatedForMode = colorMode.color.map(function (color) {
|
|
3851
3896
|
var colorNameInKebabCase = toKebabCase(color.name);
|
|
3852
3897
|
var varNameInKebabCase = toKebabCase(color["var"]);
|
|
3853
|
-
var hexValue = color.
|
|
3898
|
+
var hexValue = color.value;
|
|
3854
3899
|
var colorModeName = colorMode.mode.name.toLowerCase();
|
|
3855
3900
|
var usesAlias = varNameInKebabCase !== '';
|
|
3856
3901
|
return {
|