@entur/tokens 3.15.1 → 3.16.0

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.
@@ -130,6 +130,7 @@ var primitive = {
130
130
  "transparent": {
131
131
  "blueAlpha10": "#9ea0bd1a",
132
132
  "blueAlpha40": "#54568c66",
133
+ "canaryAlpha25": "#ffe08240",
133
134
  "canaryAlpha30": "#fff4cd4d",
134
135
  "coralAlpha20": "#ff949433",
135
136
  "ebonyAlpha15": "#e5e5e926",
@@ -137,9 +138,12 @@ var primitive = {
137
138
  "ebonyAlpha25": "#e5e5e940",
138
139
  "ebonyAlpha35": "#e5e5e959",
139
140
  "lavenderAlpha70": "#aeb7e2b2",
141
+ "mintAlpha20": "#5ac39a33",
140
142
  "neutralAlpha10": "#cfd2d41a",
141
143
  "neutralAlpha15": "#cfd2d426",
142
- "peachAlpha70": "#ffbf9eb2"
144
+ "neutralAlpha20": "#26272933",
145
+ "peachAlpha70": "#ffbf9eb2",
146
+ "skyAlpha20": "#2d98d233"
143
147
  },
144
148
  "white": {
145
149
  "alpha0": "#ffffff00",
@@ -210,7 +214,8 @@ var semantic = {
210
214
  "contrast": "#64b3e7",
211
215
  "deep": "#067eb2",
212
216
  "muted": "#e1eff8",
213
- "tint": "#acd7f1"
217
+ "tint": "#acd7f1",
218
+ "transparent": "#2d98d233"
214
219
  },
215
220
  "negative": {
216
221
  "contrast": "#ff5959",
@@ -267,13 +272,15 @@ var semantic = {
267
272
  "deep": "#1a8e60",
268
273
  "muted": "#d0f1e3",
269
274
  "subdued": "#37ab83",
270
- "tint": "#9cd9c2"
275
+ "tint": "#9cd9c2",
276
+ "transparent": "#5ac39a33"
271
277
  },
272
278
  "warning": {
273
279
  "contrast": "#ffe082",
274
280
  "deep": "#ffca28",
275
281
  "muted": "#fff4cd",
276
- "tint": "#ffeeb3"
282
+ "tint": "#ffeeb3",
283
+ "transparent": "#ffe08240"
277
284
  }
278
285
  },
279
286
  "shape": {
@@ -287,6 +294,7 @@ var semantic = {
287
294
  "inactive": "#bcbdd2",
288
295
  "information": "#067eb2",
289
296
  "informationalt": "#64b3e7",
297
+ "informationalt2": "#acd7f1",
290
298
  "light": "#ffffff",
291
299
  "lightalt": "#e5e5e9",
292
300
  "negative": "#d31b1b",
@@ -298,8 +306,10 @@ var semantic = {
298
306
  "subduedalt": "#d9dae8",
299
307
  "success": "#1a8e60",
300
308
  "successalt": "#5ac39a",
309
+ "successalt2": "#9cd9c2",
301
310
  "warning": "#ffca28",
302
- "warningalt": "#ffe082"
311
+ "warningalt": "#ffe082",
312
+ "warningalt2": "#ffeeb3"
303
313
  },
304
314
  "stroke": {
305
315
  "accent": "#181c56",
@@ -312,6 +322,7 @@ var semantic = {
312
322
  "highlight": "#ff5959",
313
323
  "highlightalt": "#ff9494",
314
324
  "information": "#067eb2",
325
+ "informationalt": "#acd7f1",
315
326
  "light": "#ffffff",
316
327
  "lightalt": "#e5e5e9",
317
328
  "negative": "#d31b1b",
@@ -321,9 +332,11 @@ var semantic = {
321
332
  "subdued": "#8284ab",
322
333
  "success": "#1a8e60",
323
334
  "successalt": "#5ac39a",
335
+ "successalt2": "#9cd9c2",
324
336
  "transparent": "#54568c66",
325
337
  "transparentalt": "#aeb7e2b2",
326
- "warning": "#e9b10c"
338
+ "warning": "#e9b10c",
339
+ "warningalt": "#ffeeb3"
327
340
  },
328
341
  "text": {
329
342
  "accent": "#181c56",
@@ -484,7 +497,7 @@ var base = {
484
497
  "highlight": "#ff9494",
485
498
  "light": "#b3b4bd",
486
499
  "subdued": "#81828f",
487
- "subduedalt": "#81828f"
500
+ "subduedalt": "#949699"
488
501
  },
489
502
  "text": {
490
503
  "accent": "#e5e5e9",
@@ -586,8 +599,8 @@ var transport = {
586
599
  },
587
600
  "dark": {
588
601
  "bicycle": "#4db295",
589
- "bus": "#e87a9b",
590
- "busTransparent": "#e87a9b26",
602
+ "bus": "#ef7398",
603
+ "busTransparent": "#ef739826",
591
604
  "cableway": "#b898e5",
592
605
  "cablewayTransparent": "#b898e526",
593
606
  "carferry": "#8ccfe2",
@@ -801,7 +814,7 @@ var componentColors = {
801
814
  "text": "#181c56"
802
815
  },
803
816
  "standard": {
804
- "border": "#ffffff00",
817
+ "border": "#d31b1b",
805
818
  "fill": "#ffcece",
806
819
  "icon": "#d31b1b",
807
820
  "text": "#181c56"
@@ -815,7 +828,7 @@ var componentColors = {
815
828
  "text": "#181c56"
816
829
  },
817
830
  "standard": {
818
- "border": "#ffffff00",
831
+ "border": "#1a8e60",
819
832
  "fill": "#d0f1e3",
820
833
  "icon": "#1a8e60",
821
834
  "text": "#181c56"
@@ -829,7 +842,7 @@ var componentColors = {
829
842
  "text": "#181c56"
830
843
  },
831
844
  "standard": {
832
- "border": "#ffffff00",
845
+ "border": "#e9b10c",
833
846
  "fill": "#fff4cd",
834
847
  "icon": "#181c56",
835
848
  "text": "#181c56"
@@ -1410,10 +1423,12 @@ var componentColors = {
1410
1423
  "border": "#8284ab",
1411
1424
  "fillDefault": "#f2f5f7",
1412
1425
  "fillHover": "#d9dae8",
1426
+ "fillSelected": "#181c56",
1413
1427
  "icon": "#181c56",
1414
1428
  "iconDisabled": "#6e6f73",
1415
1429
  "text": "#181c56",
1416
- "textDisabled": "#6e6f73"
1430
+ "textDisabled": "#6e6f73",
1431
+ "textSelected": "#ffffff"
1417
1432
  },
1418
1433
  "pagination": {
1419
1434
  "contrast": {
@@ -1655,6 +1670,7 @@ var componentColors = {
1655
1670
  },
1656
1671
  "travelLeg": {
1657
1672
  "contrast": {
1673
+ "air": "#fbafea",
1658
1674
  "airportlinkbus": "#fbafea",
1659
1675
  "airportlinkrail": "#fbafea",
1660
1676
  "bicycle": "#00db9b",
@@ -1669,12 +1685,15 @@ var componentColors = {
1669
1685
  "metro": "#f08901",
1670
1686
  "mobility": "#00db9b",
1671
1687
  "plane": "#fbafea",
1688
+ "rail": "#42a5f5",
1672
1689
  "taxi": "#ffe082",
1673
1690
  "train": "#42a5f5",
1674
1691
  "tram": "#b482fb",
1675
- "walk": "#8284ab"
1692
+ "walk": "#8284ab",
1693
+ "water": "#6fdfff"
1676
1694
  },
1677
1695
  "standard": {
1696
+ "air": "#800664",
1678
1697
  "airportlinkbus": "#800664",
1679
1698
  "airportlinkrail": "#800664",
1680
1699
  "bicycle": "#388f76",
@@ -1689,10 +1708,12 @@ var componentColors = {
1689
1708
  "metro": "#bf5826",
1690
1709
  "mobility": "#388f76",
1691
1710
  "plane": "#800664",
1711
+ "rail": "#00367f",
1692
1712
  "taxi": "#3d3e40",
1693
1713
  "train": "#00367f",
1694
1714
  "tram": "#78469a",
1695
- "walk": "#8d8e9c"
1715
+ "walk": "#8d8e9c",
1716
+ "water": "#0c6693"
1696
1717
  }
1697
1718
  },
1698
1719
  "travelSwitch": {
@@ -2006,8 +2027,8 @@ var componentColors = {
2006
2027
  }
2007
2028
  },
2008
2029
  "dodontcard": {
2009
- "border": "#e3e6e8",
2010
2030
  "fill": "#f6f6f9",
2031
+ "statuslineNegative": "#d31b1b",
2011
2032
  "statuslineSuccess": "#1a8e60",
2012
2033
  "statuslineWarning": "#ffca28",
2013
2034
  "text": "#181c56"
@@ -2036,6 +2057,20 @@ var componentColors = {
2036
2057
  "fill": "#ffffff"
2037
2058
  }
2038
2059
  },
2060
+ "logo": {
2061
+ "contrast": {
2062
+ "backgroundApp": "#ffffff",
2063
+ "highlight": "#ff5959",
2064
+ "text": "#ffffff",
2065
+ "textApp": "#181c56"
2066
+ },
2067
+ "standard": {
2068
+ "backgroundApp": "#181c56",
2069
+ "highlight": "#ff5959",
2070
+ "text": "#181c56",
2071
+ "textApp": "#ffffff"
2072
+ }
2073
+ },
2039
2074
  "npmtag": {
2040
2075
  "divide": "#949699",
2041
2076
  "text": "#6e6f73"
@@ -2180,58 +2215,58 @@ var componentColors = {
2180
2215
  "alertbox": {
2181
2216
  "information": {
2182
2217
  "contrast": {
2183
- "border": "#ffffff00",
2184
- "fill": "#e1eff8",
2185
- "icon": "#067eb2",
2186
- "text": "#08091c"
2218
+ "border": "#acd7f1",
2219
+ "fill": "#2d98d233",
2220
+ "icon": "#acd7f1",
2221
+ "text": "#e5e5e9"
2187
2222
  },
2188
2223
  "standard": {
2189
- "border": "#ffffff00",
2190
- "fill": "#e1eff8",
2191
- "icon": "#067eb2",
2192
- "text": "#08091c"
2224
+ "border": "#acd7f1",
2225
+ "fill": "#2d98d233",
2226
+ "icon": "#acd7f1",
2227
+ "text": "#e5e5e9"
2193
2228
  }
2194
2229
  },
2195
2230
  "negative": {
2196
2231
  "contrast": {
2197
- "border": "#ffffff00",
2198
- "fill": "#ffcece",
2199
- "icon": "#d31b1b",
2200
- "text": "#08091c"
2232
+ "border": "#ff9494",
2233
+ "fill": "#ff949433",
2234
+ "icon": "#ff9494",
2235
+ "text": "#e5e5e9"
2201
2236
  },
2202
2237
  "standard": {
2203
- "border": "#ffffff00",
2204
- "fill": "#ffcece",
2205
- "icon": "#d31b1b",
2206
- "text": "#08091c"
2238
+ "border": "#ff9494",
2239
+ "fill": "#ff949433",
2240
+ "icon": "#ff9494",
2241
+ "text": "#e5e5e9"
2207
2242
  }
2208
2243
  },
2209
2244
  "success": {
2210
2245
  "contrast": {
2211
- "border": "#ffffff00",
2212
- "fill": "#d0f1e3",
2213
- "icon": "#1a8e60",
2214
- "text": "#08091c"
2246
+ "border": "#9cd9c2",
2247
+ "fill": "#5ac39a33",
2248
+ "icon": "#9cd9c2",
2249
+ "text": "#e5e5e9"
2215
2250
  },
2216
2251
  "standard": {
2217
- "border": "#ffffff00",
2218
- "fill": "#d0f1e3",
2219
- "icon": "#1a8e60",
2220
- "text": "#08091c"
2252
+ "border": "#9cd9c2",
2253
+ "fill": "#5ac39a33",
2254
+ "icon": "#9cd9c2",
2255
+ "text": "#e5e5e9"
2221
2256
  }
2222
2257
  },
2223
2258
  "warning": {
2224
2259
  "contrast": {
2225
- "border": "#ffffff00",
2226
- "fill": "#fff4cd",
2227
- "icon": "#08091c",
2228
- "text": "#08091c"
2260
+ "border": "#ffeeb3",
2261
+ "fill": "#ffe08240",
2262
+ "icon": "#ffeeb3",
2263
+ "text": "#e5e5e9"
2229
2264
  },
2230
2265
  "standard": {
2231
- "border": "#ffffff00",
2232
- "fill": "#fff4cd",
2233
- "icon": "#08091c",
2234
- "text": "#08091c"
2266
+ "border": "#ffeeb3",
2267
+ "fill": "#ffe08240",
2268
+ "icon": "#ffeeb3",
2269
+ "text": "#e5e5e9"
2235
2270
  }
2236
2271
  }
2237
2272
  },
@@ -2809,10 +2844,12 @@ var componentColors = {
2809
2844
  "border": "#ffffff00",
2810
2845
  "fillDefault": "#464755",
2811
2846
  "fillHover": "#626493",
2847
+ "fillSelected": "#8794d4",
2812
2848
  "icon": "#e5e5e9",
2813
2849
  "iconDisabled": "#949699",
2814
2850
  "text": "#e5e5e9",
2815
- "textDisabled": "#949699"
2851
+ "textDisabled": "#949699",
2852
+ "textSelected": "#181c56"
2816
2853
  },
2817
2854
  "pagination": {
2818
2855
  "contrast": {
@@ -3054,11 +3091,12 @@ var componentColors = {
3054
3091
  },
3055
3092
  "travelLeg": {
3056
3093
  "contrast": {
3094
+ "air": "#f2b8e5",
3057
3095
  "airportlinkbus": "#f2b8e5",
3058
3096
  "airportlinkrail": "#f2b8e5",
3059
3097
  "bicycle": "#4db295",
3060
3098
  "bulletBorder": "#08091c",
3061
- "bus": "#e87a9b",
3099
+ "bus": "#ef7398",
3062
3100
  "cableway": "#b898e5",
3063
3101
  "carferry": "#8ccfe2",
3064
3102
  "citybike": "#4db295",
@@ -3068,17 +3106,20 @@ var componentColors = {
3068
3106
  "metro": "#dd973c",
3069
3107
  "mobility": "#4db295",
3070
3108
  "plane": "#f2b8e5",
3109
+ "rail": "#60a2d7",
3071
3110
  "taxi": "#ffe082",
3072
3111
  "train": "#60a2d7",
3073
3112
  "tram": "#b898e5",
3074
- "walk": "#8d8e9c"
3113
+ "walk": "#8d8e9c",
3114
+ "water": "#8ccfe2"
3075
3115
  },
3076
3116
  "standard": {
3117
+ "air": "#f2b8e5",
3077
3118
  "airportlinkbus": "#f2b8e5",
3078
3119
  "airportlinkrail": "#f2b8e5",
3079
3120
  "bicycle": "#4db295",
3080
3121
  "bulletBorder": "#08091c",
3081
- "bus": "#e87a9b",
3122
+ "bus": "#ef7398",
3082
3123
  "cableway": "#b898e5",
3083
3124
  "carferry": "#8ccfe2",
3084
3125
  "citybike": "#4db295",
@@ -3088,10 +3129,12 @@ var componentColors = {
3088
3129
  "metro": "#dd973c",
3089
3130
  "mobility": "#4db295",
3090
3131
  "plane": "#f2b8e5",
3132
+ "rail": "#60a2d7",
3091
3133
  "taxi": "#ffe082",
3092
3134
  "train": "#60a2d7",
3093
3135
  "tram": "#b898e5",
3094
- "walk": "#8d8e9c"
3136
+ "walk": "#8d8e9c",
3137
+ "water": "#8ccfe2"
3095
3138
  }
3096
3139
  },
3097
3140
  "travelSwitch": {
@@ -3099,7 +3142,7 @@ var componentColors = {
3099
3142
  "backgroundfalse": "#e5e5e959",
3100
3143
  "backgroundtrueAir": "#f2b8e5",
3101
3144
  "backgroundtrueBicycle": "#4db295",
3102
- "backgroundtrueBus": "#e87a9b",
3145
+ "backgroundtrueBus": "#ef7398",
3103
3146
  "backgroundtrueCableway": "#b898e5",
3104
3147
  "backgroundtrueCarferry": "#8ccfe2",
3105
3148
  "backgroundtrueCitybike": "#4db295",
@@ -3119,7 +3162,7 @@ var componentColors = {
3119
3162
  "backgroundtrueAirportlinkrail": "#f2b8e5",
3120
3163
  "iconfalse": "#b3b4bd",
3121
3164
  "icontrueBicycle": "#4db295",
3122
- "icontrueBus": "#e87a9b",
3165
+ "icontrueBus": "#ef7398",
3123
3166
  "icontrueCableway": "#b898e5",
3124
3167
  "icontrueCarferry": "#8ccfe2",
3125
3168
  "icontrueCitybike": "#4db295",
@@ -3143,7 +3186,7 @@ var componentColors = {
3143
3186
  "backgroundfalse": "#e5e5e959",
3144
3187
  "backgroundtrueAir": "#f2b8e5",
3145
3188
  "backgroundtrueBicycle": "#4db295",
3146
- "backgroundtrueBus": "#e87a9b",
3189
+ "backgroundtrueBus": "#ef7398",
3147
3190
  "backgroundtrueCableway": "#b898e5",
3148
3191
  "backgroundtrueCarferry": "#8ccfe2",
3149
3192
  "backgroundtrueCitybike": "#4db295",
@@ -3163,7 +3206,7 @@ var componentColors = {
3163
3206
  "backgroundtrueAirportlinkrail": "#f2b8e5",
3164
3207
  "iconfalse": "#b3b4bd",
3165
3208
  "icontrueBicycle": "#00db9b",
3166
- "icontrueBus": "#e87a9b",
3209
+ "icontrueBus": "#ef7398",
3167
3210
  "icontrueCableway": "#b898e5",
3168
3211
  "icontrueCarferry": "#8ccfe2",
3169
3212
  "icontrueCitybike": "#00db9b",
@@ -3190,7 +3233,7 @@ var componentColors = {
3190
3233
  "travelTag": {
3191
3234
  "contrast": {
3192
3235
  "icon": "#08091c",
3193
- "iconBusCancled": "#e87a9b",
3236
+ "iconBusCancled": "#ef7398",
3194
3237
  "iconCabllewayCancled": "#b898e5",
3195
3238
  "iconCarferryCancled": "#8ccfe2",
3196
3239
  "iconFerryCancled": "#8ccfe2",
@@ -3207,8 +3250,8 @@ var componentColors = {
3207
3250
  "iconborderValidation": "#08091c",
3208
3251
  "tagfillAir": "#f2b8e5",
3209
3252
  "tagfillBicycle": "#4db295",
3210
- "tagfillBus": "#e87a9b",
3211
- "tagfillBusCancled": "#e87a9b26",
3253
+ "tagfillBus": "#ef7398",
3254
+ "tagfillBusCancled": "#ef739826",
3212
3255
  "tagfillCableway": "#b898e5",
3213
3256
  "tagfillCablewayCancled": "#b898e526",
3214
3257
  "tagfillCarferry": "#8ccfe2",
@@ -3244,7 +3287,7 @@ var componentColors = {
3244
3287
  "textCancled": "#b6b8ba",
3245
3288
  "textLabel": "#e5e5e9",
3246
3289
  "textLine": "#08091c",
3247
- "textLineBusCancled": "#e87a9b",
3290
+ "textLineBusCancled": "#ef7398",
3248
3291
  "textLineCablewayCancled": "#b898e5",
3249
3292
  "textLineCarferryCancled": "#8ccfe2",
3250
3293
  "textLineFerryCancled": "#8ccfe2",
@@ -3262,7 +3305,7 @@ var componentColors = {
3262
3305
  },
3263
3306
  "standard": {
3264
3307
  "icon": "#08091c",
3265
- "iconBusCancled": "#e87a9b",
3308
+ "iconBusCancled": "#ef7398",
3266
3309
  "iconCarferryCancled": "#8ccfe2",
3267
3310
  "iconFerryCancled": "#8ccfe2",
3268
3311
  "iconFunicularCancled": "#b898e5",
@@ -3280,8 +3323,8 @@ var componentColors = {
3280
3323
  "tagfillAir": "#f2b8e5",
3281
3324
  "tagfillAirCancled": "#f2b8e526",
3282
3325
  "tagfillBicycle": "#4db295",
3283
- "tagfillBus": "#e87a9b",
3284
- "tagfillBusCancled": "#e87a9b26",
3326
+ "tagfillBus": "#ef7398",
3327
+ "tagfillBusCancled": "#ef739826",
3285
3328
  "tagfillCableway": "#b898e5",
3286
3329
  "tagfillCablewayCancled": "#b482fb26",
3287
3330
  "tagfillCarferry": "#8ccfe2",
@@ -3316,7 +3359,7 @@ var componentColors = {
3316
3359
  "textCancled": "#b6b8ba",
3317
3360
  "textLabel": "#e5e5e9",
3318
3361
  "textLine": "#08091c",
3319
- "textLineBusCancled": "#e87a9b",
3362
+ "textLineBusCancled": "#ef7398",
3320
3363
  "textLineCablewayCancled": "#b898e5",
3321
3364
  "textLineCarferryCancled": "#8ccfe2",
3322
3365
  "textLineFerryCancled": "#8ccfe2",
@@ -3405,8 +3448,8 @@ var componentColors = {
3405
3448
  }
3406
3449
  },
3407
3450
  "dodontcard": {
3408
- "border": "#81828f",
3409
3451
  "fill": "#e5e5e926",
3452
+ "statuslineNegative": "#ff9494",
3410
3453
  "statuslineSuccess": "#9cd9c2",
3411
3454
  "statuslineWarning": "#ffeeb3",
3412
3455
  "text": "#e5e5e9"
@@ -3435,6 +3478,20 @@ var componentColors = {
3435
3478
  "fill": "#08091c"
3436
3479
  }
3437
3480
  },
3481
+ "logo": {
3482
+ "contrast": {
3483
+ "backgroundApp": "#e5e5e926",
3484
+ "highlight": "#ff5959",
3485
+ "text": "#ffffff",
3486
+ "textApp": "#ffffff"
3487
+ },
3488
+ "standard": {
3489
+ "backgroundApp": "#e5e5e926",
3490
+ "highlight": "#ff5959",
3491
+ "text": "#ffffff",
3492
+ "textApp": "#ffffff"
3493
+ }
3494
+ },
3438
3495
  "npmtag": {
3439
3496
  "divide": "#e5e5e9",
3440
3497
  "text": "#e5e5e9"
@@ -3850,11 +3907,11 @@ var outlineOffsets = {
3850
3907
  var SUPPORTED_COLOR_MODES = ['light', 'dark'];
3851
3908
  function createColorSet(fileData) {
3852
3909
  var colorsUnformated = JSON.parse(fileData);
3853
- var colorsFormatedAndMappedToModes = colorsUnformated.reduce(function (allComponentColors, colorMode) {
3910
+ var colorsFormatedAndMappedToModes = colorsUnformated[0].values.reduce(function (allComponentColors, colorMode) {
3854
3911
  var colorsFormatedForMode = colorMode.color.map(function (color) {
3855
3912
  var colorNameInKebabCase = toKebabCase(color.name);
3856
3913
  var varNameInKebabCase = toKebabCase(color["var"]);
3857
- var hexValue = color.color;
3914
+ var hexValue = color.value;
3858
3915
  var colorModeName = colorMode.mode.name.toLowerCase();
3859
3916
  var usesAlias = varNameInKebabCase !== '';
3860
3917
  return {