@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.
@@ -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
- "peachAlpha70": "#ffbf9eb2"
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": "#81828f"
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": "#e87a9b",
586
- "busTransparent": "#e87a9b26",
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": "#ffffff00",
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": "#ffffff00",
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": "#ffffff00",
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": {
@@ -1651,6 +1666,7 @@ var componentColors = {
1651
1666
  },
1652
1667
  "travelLeg": {
1653
1668
  "contrast": {
1669
+ "air": "#fbafea",
1654
1670
  "airportlinkbus": "#fbafea",
1655
1671
  "airportlinkrail": "#fbafea",
1656
1672
  "bicycle": "#00db9b",
@@ -1665,12 +1681,15 @@ var componentColors = {
1665
1681
  "metro": "#f08901",
1666
1682
  "mobility": "#00db9b",
1667
1683
  "plane": "#fbafea",
1684
+ "rail": "#42a5f5",
1668
1685
  "taxi": "#ffe082",
1669
1686
  "train": "#42a5f5",
1670
1687
  "tram": "#b482fb",
1671
- "walk": "#8284ab"
1688
+ "walk": "#8284ab",
1689
+ "water": "#6fdfff"
1672
1690
  },
1673
1691
  "standard": {
1692
+ "air": "#800664",
1674
1693
  "airportlinkbus": "#800664",
1675
1694
  "airportlinkrail": "#800664",
1676
1695
  "bicycle": "#388f76",
@@ -1685,10 +1704,12 @@ var componentColors = {
1685
1704
  "metro": "#bf5826",
1686
1705
  "mobility": "#388f76",
1687
1706
  "plane": "#800664",
1707
+ "rail": "#00367f",
1688
1708
  "taxi": "#3d3e40",
1689
1709
  "train": "#00367f",
1690
1710
  "tram": "#78469a",
1691
- "walk": "#8d8e9c"
1711
+ "walk": "#8d8e9c",
1712
+ "water": "#0c6693"
1692
1713
  }
1693
1714
  },
1694
1715
  "travelSwitch": {
@@ -2002,8 +2023,8 @@ var componentColors = {
2002
2023
  }
2003
2024
  },
2004
2025
  "dodontcard": {
2005
- "border": "#e3e6e8",
2006
2026
  "fill": "#f6f6f9",
2027
+ "statuslineNegative": "#d31b1b",
2007
2028
  "statuslineSuccess": "#1a8e60",
2008
2029
  "statuslineWarning": "#ffca28",
2009
2030
  "text": "#181c56"
@@ -2032,6 +2053,20 @@ var componentColors = {
2032
2053
  "fill": "#ffffff"
2033
2054
  }
2034
2055
  },
2056
+ "logo": {
2057
+ "contrast": {
2058
+ "backgroundApp": "#ffffff",
2059
+ "highlight": "#ff5959",
2060
+ "text": "#ffffff",
2061
+ "textApp": "#181c56"
2062
+ },
2063
+ "standard": {
2064
+ "backgroundApp": "#181c56",
2065
+ "highlight": "#ff5959",
2066
+ "text": "#181c56",
2067
+ "textApp": "#ffffff"
2068
+ }
2069
+ },
2035
2070
  "npmtag": {
2036
2071
  "divide": "#949699",
2037
2072
  "text": "#6e6f73"
@@ -2176,58 +2211,58 @@ var componentColors = {
2176
2211
  "alertbox": {
2177
2212
  "information": {
2178
2213
  "contrast": {
2179
- "border": "#ffffff00",
2180
- "fill": "#e1eff8",
2181
- "icon": "#067eb2",
2182
- "text": "#08091c"
2214
+ "border": "#acd7f1",
2215
+ "fill": "#2d98d233",
2216
+ "icon": "#acd7f1",
2217
+ "text": "#e5e5e9"
2183
2218
  },
2184
2219
  "standard": {
2185
- "border": "#ffffff00",
2186
- "fill": "#e1eff8",
2187
- "icon": "#067eb2",
2188
- "text": "#08091c"
2220
+ "border": "#acd7f1",
2221
+ "fill": "#2d98d233",
2222
+ "icon": "#acd7f1",
2223
+ "text": "#e5e5e9"
2189
2224
  }
2190
2225
  },
2191
2226
  "negative": {
2192
2227
  "contrast": {
2193
- "border": "#ffffff00",
2194
- "fill": "#ffcece",
2195
- "icon": "#d31b1b",
2196
- "text": "#08091c"
2228
+ "border": "#ff9494",
2229
+ "fill": "#ff949433",
2230
+ "icon": "#ff9494",
2231
+ "text": "#e5e5e9"
2197
2232
  },
2198
2233
  "standard": {
2199
- "border": "#ffffff00",
2200
- "fill": "#ffcece",
2201
- "icon": "#d31b1b",
2202
- "text": "#08091c"
2234
+ "border": "#ff9494",
2235
+ "fill": "#ff949433",
2236
+ "icon": "#ff9494",
2237
+ "text": "#e5e5e9"
2203
2238
  }
2204
2239
  },
2205
2240
  "success": {
2206
2241
  "contrast": {
2207
- "border": "#ffffff00",
2208
- "fill": "#d0f1e3",
2209
- "icon": "#1a8e60",
2210
- "text": "#08091c"
2242
+ "border": "#9cd9c2",
2243
+ "fill": "#5ac39a33",
2244
+ "icon": "#9cd9c2",
2245
+ "text": "#e5e5e9"
2211
2246
  },
2212
2247
  "standard": {
2213
- "border": "#ffffff00",
2214
- "fill": "#d0f1e3",
2215
- "icon": "#1a8e60",
2216
- "text": "#08091c"
2248
+ "border": "#9cd9c2",
2249
+ "fill": "#5ac39a33",
2250
+ "icon": "#9cd9c2",
2251
+ "text": "#e5e5e9"
2217
2252
  }
2218
2253
  },
2219
2254
  "warning": {
2220
2255
  "contrast": {
2221
- "border": "#ffffff00",
2222
- "fill": "#fff4cd",
2223
- "icon": "#08091c",
2224
- "text": "#08091c"
2256
+ "border": "#ffeeb3",
2257
+ "fill": "#ffe08240",
2258
+ "icon": "#ffeeb3",
2259
+ "text": "#e5e5e9"
2225
2260
  },
2226
2261
  "standard": {
2227
- "border": "#ffffff00",
2228
- "fill": "#fff4cd",
2229
- "icon": "#08091c",
2230
- "text": "#08091c"
2262
+ "border": "#ffeeb3",
2263
+ "fill": "#ffe08240",
2264
+ "icon": "#ffeeb3",
2265
+ "text": "#e5e5e9"
2231
2266
  }
2232
2267
  }
2233
2268
  },
@@ -2805,10 +2840,12 @@ var componentColors = {
2805
2840
  "border": "#ffffff00",
2806
2841
  "fillDefault": "#464755",
2807
2842
  "fillHover": "#626493",
2843
+ "fillSelected": "#8794d4",
2808
2844
  "icon": "#e5e5e9",
2809
2845
  "iconDisabled": "#949699",
2810
2846
  "text": "#e5e5e9",
2811
- "textDisabled": "#949699"
2847
+ "textDisabled": "#949699",
2848
+ "textSelected": "#181c56"
2812
2849
  },
2813
2850
  "pagination": {
2814
2851
  "contrast": {
@@ -3050,11 +3087,12 @@ var componentColors = {
3050
3087
  },
3051
3088
  "travelLeg": {
3052
3089
  "contrast": {
3090
+ "air": "#f2b8e5",
3053
3091
  "airportlinkbus": "#f2b8e5",
3054
3092
  "airportlinkrail": "#f2b8e5",
3055
3093
  "bicycle": "#4db295",
3056
3094
  "bulletBorder": "#08091c",
3057
- "bus": "#e87a9b",
3095
+ "bus": "#ef7398",
3058
3096
  "cableway": "#b898e5",
3059
3097
  "carferry": "#8ccfe2",
3060
3098
  "citybike": "#4db295",
@@ -3064,17 +3102,20 @@ var componentColors = {
3064
3102
  "metro": "#dd973c",
3065
3103
  "mobility": "#4db295",
3066
3104
  "plane": "#f2b8e5",
3105
+ "rail": "#60a2d7",
3067
3106
  "taxi": "#ffe082",
3068
3107
  "train": "#60a2d7",
3069
3108
  "tram": "#b898e5",
3070
- "walk": "#8d8e9c"
3109
+ "walk": "#8d8e9c",
3110
+ "water": "#8ccfe2"
3071
3111
  },
3072
3112
  "standard": {
3113
+ "air": "#f2b8e5",
3073
3114
  "airportlinkbus": "#f2b8e5",
3074
3115
  "airportlinkrail": "#f2b8e5",
3075
3116
  "bicycle": "#4db295",
3076
3117
  "bulletBorder": "#08091c",
3077
- "bus": "#e87a9b",
3118
+ "bus": "#ef7398",
3078
3119
  "cableway": "#b898e5",
3079
3120
  "carferry": "#8ccfe2",
3080
3121
  "citybike": "#4db295",
@@ -3084,10 +3125,12 @@ var componentColors = {
3084
3125
  "metro": "#dd973c",
3085
3126
  "mobility": "#4db295",
3086
3127
  "plane": "#f2b8e5",
3128
+ "rail": "#60a2d7",
3087
3129
  "taxi": "#ffe082",
3088
3130
  "train": "#60a2d7",
3089
3131
  "tram": "#b898e5",
3090
- "walk": "#8d8e9c"
3132
+ "walk": "#8d8e9c",
3133
+ "water": "#8ccfe2"
3091
3134
  }
3092
3135
  },
3093
3136
  "travelSwitch": {
@@ -3095,7 +3138,7 @@ var componentColors = {
3095
3138
  "backgroundfalse": "#e5e5e959",
3096
3139
  "backgroundtrueAir": "#f2b8e5",
3097
3140
  "backgroundtrueBicycle": "#4db295",
3098
- "backgroundtrueBus": "#e87a9b",
3141
+ "backgroundtrueBus": "#ef7398",
3099
3142
  "backgroundtrueCableway": "#b898e5",
3100
3143
  "backgroundtrueCarferry": "#8ccfe2",
3101
3144
  "backgroundtrueCitybike": "#4db295",
@@ -3115,7 +3158,7 @@ var componentColors = {
3115
3158
  "backgroundtrueAirportlinkrail": "#f2b8e5",
3116
3159
  "iconfalse": "#b3b4bd",
3117
3160
  "icontrueBicycle": "#4db295",
3118
- "icontrueBus": "#e87a9b",
3161
+ "icontrueBus": "#ef7398",
3119
3162
  "icontrueCableway": "#b898e5",
3120
3163
  "icontrueCarferry": "#8ccfe2",
3121
3164
  "icontrueCitybike": "#4db295",
@@ -3139,7 +3182,7 @@ var componentColors = {
3139
3182
  "backgroundfalse": "#e5e5e959",
3140
3183
  "backgroundtrueAir": "#f2b8e5",
3141
3184
  "backgroundtrueBicycle": "#4db295",
3142
- "backgroundtrueBus": "#e87a9b",
3185
+ "backgroundtrueBus": "#ef7398",
3143
3186
  "backgroundtrueCableway": "#b898e5",
3144
3187
  "backgroundtrueCarferry": "#8ccfe2",
3145
3188
  "backgroundtrueCitybike": "#4db295",
@@ -3159,7 +3202,7 @@ var componentColors = {
3159
3202
  "backgroundtrueAirportlinkrail": "#f2b8e5",
3160
3203
  "iconfalse": "#b3b4bd",
3161
3204
  "icontrueBicycle": "#00db9b",
3162
- "icontrueBus": "#e87a9b",
3205
+ "icontrueBus": "#ef7398",
3163
3206
  "icontrueCableway": "#b898e5",
3164
3207
  "icontrueCarferry": "#8ccfe2",
3165
3208
  "icontrueCitybike": "#00db9b",
@@ -3186,7 +3229,7 @@ var componentColors = {
3186
3229
  "travelTag": {
3187
3230
  "contrast": {
3188
3231
  "icon": "#08091c",
3189
- "iconBusCancled": "#e87a9b",
3232
+ "iconBusCancled": "#ef7398",
3190
3233
  "iconCabllewayCancled": "#b898e5",
3191
3234
  "iconCarferryCancled": "#8ccfe2",
3192
3235
  "iconFerryCancled": "#8ccfe2",
@@ -3203,8 +3246,8 @@ var componentColors = {
3203
3246
  "iconborderValidation": "#08091c",
3204
3247
  "tagfillAir": "#f2b8e5",
3205
3248
  "tagfillBicycle": "#4db295",
3206
- "tagfillBus": "#e87a9b",
3207
- "tagfillBusCancled": "#e87a9b26",
3249
+ "tagfillBus": "#ef7398",
3250
+ "tagfillBusCancled": "#ef739826",
3208
3251
  "tagfillCableway": "#b898e5",
3209
3252
  "tagfillCablewayCancled": "#b898e526",
3210
3253
  "tagfillCarferry": "#8ccfe2",
@@ -3240,7 +3283,7 @@ var componentColors = {
3240
3283
  "textCancled": "#b6b8ba",
3241
3284
  "textLabel": "#e5e5e9",
3242
3285
  "textLine": "#08091c",
3243
- "textLineBusCancled": "#e87a9b",
3286
+ "textLineBusCancled": "#ef7398",
3244
3287
  "textLineCablewayCancled": "#b898e5",
3245
3288
  "textLineCarferryCancled": "#8ccfe2",
3246
3289
  "textLineFerryCancled": "#8ccfe2",
@@ -3258,7 +3301,7 @@ var componentColors = {
3258
3301
  },
3259
3302
  "standard": {
3260
3303
  "icon": "#08091c",
3261
- "iconBusCancled": "#e87a9b",
3304
+ "iconBusCancled": "#ef7398",
3262
3305
  "iconCarferryCancled": "#8ccfe2",
3263
3306
  "iconFerryCancled": "#8ccfe2",
3264
3307
  "iconFunicularCancled": "#b898e5",
@@ -3276,8 +3319,8 @@ var componentColors = {
3276
3319
  "tagfillAir": "#f2b8e5",
3277
3320
  "tagfillAirCancled": "#f2b8e526",
3278
3321
  "tagfillBicycle": "#4db295",
3279
- "tagfillBus": "#e87a9b",
3280
- "tagfillBusCancled": "#e87a9b26",
3322
+ "tagfillBus": "#ef7398",
3323
+ "tagfillBusCancled": "#ef739826",
3281
3324
  "tagfillCableway": "#b898e5",
3282
3325
  "tagfillCablewayCancled": "#b482fb26",
3283
3326
  "tagfillCarferry": "#8ccfe2",
@@ -3312,7 +3355,7 @@ var componentColors = {
3312
3355
  "textCancled": "#b6b8ba",
3313
3356
  "textLabel": "#e5e5e9",
3314
3357
  "textLine": "#08091c",
3315
- "textLineBusCancled": "#e87a9b",
3358
+ "textLineBusCancled": "#ef7398",
3316
3359
  "textLineCablewayCancled": "#b898e5",
3317
3360
  "textLineCarferryCancled": "#8ccfe2",
3318
3361
  "textLineFerryCancled": "#8ccfe2",
@@ -3401,8 +3444,8 @@ var componentColors = {
3401
3444
  }
3402
3445
  },
3403
3446
  "dodontcard": {
3404
- "border": "#81828f",
3405
3447
  "fill": "#e5e5e926",
3448
+ "statuslineNegative": "#ff9494",
3406
3449
  "statuslineSuccess": "#9cd9c2",
3407
3450
  "statuslineWarning": "#ffeeb3",
3408
3451
  "text": "#e5e5e9"
@@ -3431,6 +3474,20 @@ var componentColors = {
3431
3474
  "fill": "#08091c"
3432
3475
  }
3433
3476
  },
3477
+ "logo": {
3478
+ "contrast": {
3479
+ "backgroundApp": "#e5e5e926",
3480
+ "highlight": "#ff5959",
3481
+ "text": "#ffffff",
3482
+ "textApp": "#ffffff"
3483
+ },
3484
+ "standard": {
3485
+ "backgroundApp": "#e5e5e926",
3486
+ "highlight": "#ff5959",
3487
+ "text": "#ffffff",
3488
+ "textApp": "#ffffff"
3489
+ }
3490
+ },
3434
3491
  "npmtag": {
3435
3492
  "divide": "#e5e5e9",
3436
3493
  "text": "#e5e5e9"
@@ -3846,11 +3903,11 @@ var outlineOffsets = {
3846
3903
  var SUPPORTED_COLOR_MODES = ['light', 'dark'];
3847
3904
  function createColorSet(fileData) {
3848
3905
  var colorsUnformated = JSON.parse(fileData);
3849
- var colorsFormatedAndMappedToModes = colorsUnformated.reduce(function (allComponentColors, colorMode) {
3906
+ var colorsFormatedAndMappedToModes = colorsUnformated[0].values.reduce(function (allComponentColors, colorMode) {
3850
3907
  var colorsFormatedForMode = colorMode.color.map(function (color) {
3851
3908
  var colorNameInKebabCase = toKebabCase(color.name);
3852
3909
  var varNameInKebabCase = toKebabCase(color["var"]);
3853
- var hexValue = color.color;
3910
+ var hexValue = color.value;
3854
3911
  var colorModeName = colorMode.mode.name.toLowerCase();
3855
3912
  var usesAlias = varNameInKebabCase !== '';
3856
3913
  return {