@transfermarkt/global-styles 1.60.0 → 1.62.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transfermarkt/global-styles",
3
- "version": "1.60.0",
3
+ "version": "1.62.0",
4
4
  "description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
5
5
  "author": "Transfermarkt",
6
6
  "license": "MIT",
@@ -90,6 +90,7 @@ $figma-variables: (
90
90
  'color-red-default': #ef1717,
91
91
  'color-red-lighter': #fff1f1,
92
92
  'color-red-darker': #c90c0c,
93
+ 'color-red-light': #ff9c9c,
93
94
 
94
95
  // lightblue
95
96
  'color-lightblue-default': #0087ff,
@@ -127,6 +128,11 @@ $figma-variables: (
127
128
  'scale-1200-(48)': 48,
128
129
  'scale-1600-(64)': 64,
129
130
  'scale-500-(20)': 20,
131
+ // icon
132
+ // stroke
133
+ 'scale-icon-stroke-lg': 2,
134
+ 'scale-icon-stroke-md': 1.5,
135
+ 'scale-icon-stroke-sm': 1.4,
130
136
 
131
137
  // ALIAS
132
138
  // primary
@@ -193,7 +199,8 @@ $figma-variables: (
193
199
  // error
194
200
  'error-default': 'color-red-default',
195
201
  'error-dark': 'color-red-darker',
196
- 'error-light': 'color-red-lighter',
202
+ 'error-lighter': 'color-red-lighter',
203
+ 'error-light': 'color-red-light',
197
204
 
198
205
  // highlight
199
206
  'highlight-default': 'color-skyblue_old-default',
@@ -226,267 +233,259 @@ $figma-variables: (
226
233
  'secondary-50': 'color-lightblue-50',
227
234
 
228
235
  // MAPPED
229
- // text
236
+ // _text
230
237
  'text-heading': 'primary-default',
231
- 'text-body': 'primary-600',
232
- 'text-action': 'secondary-default',
233
- 'text-action-hover': 'secondary-dark',
234
- 'text-disabled': 'secondary-400',
235
- 'text-information': 'primary-600',
236
- 'text-success': 'success-dark',
237
- 'text-warning': 'warning-dark',
238
- 'text-error': 'error-dark',
238
+ 'text-heading-on-blue': 'neutral-white',
239
+ 'text-primary': 'primary-default',
240
+ 'text-primary-on-blue': 'neutral-white',
241
+ 'text-default': 'primary-600',
242
+ 'text-default-on-blue': #000,
243
+ 'text-primary-light': 'primary-400',
244
+ 'text-primary-light-on-blue': #000,
245
+ 'text-primary-lightest': 'primary-200',
246
+ 'text-primary-lightest-on-blue': 'primary-200',
247
+ 'text-primary-disabled': 'primary-150',
248
+ 'text-primary-disabled-on-blue': #000,
249
+ 'text-secondary': 'secondary-default',
250
+ 'text-secondary-on-blue': 'secondary-default',
251
+ 'text-secondary-dark': 'secondary-dark',
252
+ 'text-secondary-dark-on-blue': 'secondary-dark',
253
+ 'text-secondary-disabled': 'secondary-400',
254
+ 'text-secondary-disabled-on-blue': 'neutral-white-30',
239
255
  'text-on-action': 'neutral-white',
256
+ 'text-on-action-on-blue': 'neutral-white',
240
257
  'text-on-disabled': 'neutral-white',
241
- // form-field
242
- 'text-form-field-label': 'primary-600',
243
- 'text-form-field-default': 'primary-200',
244
- 'text-form-field-filled': 'primary-600',
245
- 'text-form-field-error': 'error-dark',
246
- 'text-form-field-disabled': 'primary-150',
247
- 'text-form-field-assistive-text': 'primary-500',
248
- 'text-form-field-assistive-text-success': 'success-dark',
249
- 'text-form-field-assistive-text-unmet': 'primary-500',
250
- 'text-form-field-link': 'secondary-default',
251
- 'text-form-field-link-hover': 'secondary-dark',
252
-
253
- // tab
254
- 'text-tab-selected': 'secondary-default',
255
- 'text-tab-unselected': 'primary-400',
256
-
257
- // banner
258
- 'text-banner-information': 'primary-700',
259
- 'text-banner-success': 'success-dark',
260
- 'text-banner-error': 'error-dark',
261
- 'text-banner-neutral': 'primary-default',
262
-
263
- // radio-button
264
- 'text-radio-button-default': 'primary-600',
265
- 'text-radio-button-disabled': 'primary-150',
266
-
267
- // checkbox
268
- 'text-checkbox-default': 'primary-600',
269
- 'text-checkbox-disabled': 'primary-150',
270
-
271
- // button
272
- 'text-button-default': 'neutral-white',
273
- 'text-button-hover': 'neutral-white',
274
- 'text-button-disabled': 'neutral-white',
275
- 'text-button-secondary-default': 'secondary-default',
276
- 'text-button-secondary-hover': 'secondary-dark',
277
- 'text-button-secondary-disabled': 'secondary-400',
278
- 'text-button-tertiary-default': 'secondary-default',
279
- 'text-button-tertiary-hover': 'secondary-default',
280
- 'text-button-tertiary-disabled': 'secondary-400',
281
- 'text-button-secondary-grey-default': 'primary-default',
282
- 'text-button-secondary-grey-hover': 'primary-default',
283
- 'text-button-secondary-grey-disabled': 'primary-150',
284
- 'text-button-tertiary-grey-default': 'primary-default',
285
- 'text-button-tertiary-grey-hover': 'primary-default',
286
- 'text-button-tertiary-grey-disabled': 'primary-150',
287
- 'text-button-warning': 'neutral-white',
288
- 'text-button-warning-hover': 'neutral-white',
289
- 'text-button-warning-disabled': 'neutral-white',
290
- 'text-button-tertiary-warning': 'error-default',
291
- 'text-button-tertiary-warning-hover': 'error-dark',
292
-
293
- // heading
294
- 'text-heading-default': 'primary-default',
295
-
296
- // body
297
- 'text-body-default': 'primary-600',
298
- 'text-body-disabled': 'color-darkblue-150',
299
-
300
- // dropdown
301
- 'text-dropdown-default': 'primary-600',
302
-
303
- // link
304
- 'text-link-default': 'secondary-default',
305
- 'text-link-hover': 'secondary-dark',
306
-
307
- // divider
308
- 'text-divider-default': 'primary-400',
309
-
310
- // icon
311
- 'icon-secondary': 'primary-400',
312
- 'icon-information': 'primary-700',
313
- 'icon-success': 'success-dark',
314
- 'icon-warning': 'warning-dark',
315
- 'icon-error': 'error-dark',
316
- 'icon-disabled': 'primary-150',
317
- 'icon-assistive-text-unmet': 'primary-400',
258
+ 'text-on-disabled-on-blue': 'neutral-white-20',
259
+ 'text-white-base': #000,
260
+ 'text-white-base-on-blue': 'neutral-white',
261
+ 'text-white-placeholder': #000,
262
+ 'text-white-placeholder-on-blue': 'neutral-white-40',
263
+ 'text-white-disabled': #000,
264
+ 'text-white-disabled-on-blue': 'neutral-white-30',
265
+ 'text-white-on-disabled': #000,
266
+ 'text-white-on-disabled-on-blue': 'neutral-white-20',
267
+ 'text-success': #000,
268
+ 'text-success-on-blue': 'success-default',
269
+ 'text-success-dark': 'success-dark',
270
+ 'text-success-dark-on-blue': #000,
271
+ 'text-warning-dark': 'warning-dark',
272
+ 'text-warning-dark-on-blue': #000,
273
+ 'text-error': 'error-default',
274
+ 'text-error-on-blue': 'error-default',
275
+ 'text-error-dark': 'error-dark',
276
+ 'text-error-dark-on-blue': #000,
277
+ 'text-error-disabled': 'error-light',
278
+ 'text-error-disabled-on-blue': #000,
279
+ 'text-warning': #000,
280
+ 'text-warning-on-blue': 'warning-default',
281
+
282
+ // _surface
283
+ 'surface-primary': 'primary-default',
284
+ 'surface-primary-on-blue': 'primary-default',
285
+ 'surface-primary-light': 'primary-400',
286
+ 'surface-primary-light-on-blue': #000,
287
+ 'surface-primary-lightest': 'primary-30',
288
+ 'surface-primary-lightest-on-blue': #000,
289
+ 'surface-secondary': 'secondary-default',
290
+ 'surface-secondary-on-blue': 'secondary-default',
291
+ 'surface-secondary-dark': 'secondary-dark',
292
+ 'surface-secondary-dark-on-blue': 'secondary-dark',
293
+ 'surface-secondary-disabled': 'secondary-400',
294
+ 'surface-secondary-disabled-on-blue': #000,
295
+ 'surface-hover': 'secondary-100',
296
+ 'surface-hover-on-blue': #000,
297
+ 'surface-information': 'secondary-100',
298
+ 'surface-information-on-blue': #000,
299
+ 'surface-default': 'neutral-white',
300
+ 'surface-default-on-blue': 'primary-default',
301
+ 'surface-white-surface-disabled': #000,
302
+ 'surface-white-surface-disabled-on-blue': 'neutral-white-10',
303
+ 'surface-success-light': 'success-light',
304
+ 'surface-success-light-on-blue': #000,
305
+ 'surface-error': 'error-default',
306
+ 'surface-error-on-blue': 'error-default',
307
+ 'surface-error-dark': 'error-dark',
308
+ 'surface-error-dark-on-blue': #000,
309
+ 'surface-error-lighter': 'error-lighter',
310
+ 'surface-error-lighter-on-blue': #000,
311
+ 'surface-error-disabled': 'error-lighter',
312
+ 'surface-error-disabled-on-blue': #000,
313
+
314
+ // _icon
318
315
  'icon-primary': 'primary-default',
316
+ 'icon-primary-on-blue': 'neutral-white',
317
+ 'icon-primary-light': 'primary-400',
318
+ 'icon-primary-light-on-blue': 'neutral-white',
319
+ 'icon-primary-lightest': 'primary-200',
320
+ 'icon-primary-lightest-on-blue': 'primary-200',
321
+ 'icon-primary-disabled': 'primary-150',
322
+ 'icon-primary-disabled-on-blue': #000,
323
+ 'icon-secondary': 'secondary-default',
324
+ 'icon-secondary-on-blue': 'secondary-default',
325
+ 'icon-secondary-dark': 'secondary-dark',
326
+ 'icon-secondary-dark-on-blue': 'secondary-dark',
327
+ 'icon-secondary-disabled': 'secondary-400',
328
+ 'icon-secondary-disabled-on-blue': 'neutral-white-30',
319
329
  'icon-on-action': 'neutral-white',
320
- 'icon-on-action-hover': 'neutral-white',
321
- 'icon-on-action-disabled': 'neutral-white',
322
- 'icon-on-action-secondary': 'secondary-default',
323
- 'icon-on-action-secondary-hover': 'secondary-dark',
324
- 'icon-on-action-secondary-disabled': 'secondary-400',
325
- 'icon-on-action-tertiary': 'secondary-default',
326
- 'icon-on-action-tertiary-hover': 'secondary-default',
327
- 'icon-on-action-tertiary-disabled': 'secondary-400',
328
- 'icon-on-action-secondary-grey': 'primary-default',
329
- 'icon-on-action-secondary-grey-hover': 'primary-default',
330
- 'icon-on-action-secondary-grey-disabled': 'primary-150',
331
- 'icon-on-action-tertiary-grey': 'primary-default',
332
- 'icon-on-action-tertiary-grey-hover': 'primary-default',
333
- 'icon-on-action-tertiary-grey-disabled': 'primary-150',
334
- 'icon-on-action-warning': 'neutral-white',
335
- 'icon-on-action-warning-hover': 'neutral-white',
336
- 'icon-on-action-warning-disabled': 'neutral-white',
337
-
338
- // table
339
- 'table-highest': 'secondary-default',
340
-
341
- // border
342
- 'border-container': 'primary-50',
343
- 'border-container-alt': #ddd,
344
- // form-field
345
- 'border-form-field-default': 'primary-150',
346
- 'border-form-field-hover': 'primary-400',
347
- 'border-form-field-focus': 'secondary-default',
348
- 'border-form-field-error': 'error-dark',
349
- 'border-form-field-filled': 'primary-150',
350
- 'border-form-field-disabled': 'primary-150',
351
-
352
- // button
353
- 'border-button-default': 'secondary-default',
354
- 'border-button-hover': 'secondary-dark',
355
- 'border-button-disabled': 'secondary-400',
356
- 'border-button-grey-default': 'primary-150',
357
- 'border-button-grey-hover': 'primary-400',
358
- 'border-button-secondary-grey-disabled': 'primary-150',
359
-
360
- // radio-button
361
- 'border-radio-button-selected': 'secondary-default',
362
- 'border-radio-button-unselected': 'primary-150',
363
- 'border-radio-button-hover': 'primary-400',
364
- 'border-radio-button-disabled': 'primary-150',
365
-
366
- // checkbox
367
- 'border-checkbox-selected': 'secondary-default',
368
- 'border-checkbox-unselected': 'primary-150',
369
- 'border-checkbox-hover': 'primary-400',
370
- 'border-checkbox-disabled': 'primary-150',
371
-
372
- // flags
373
- 'border-flags-default': 'primary-600',
374
-
375
- // banner
376
- 'border-banner-neutral': 'primary-150',
377
-
378
- // dropdown
379
- 'border-dropdown-default': 'primary-150',
380
- 'border-dropdown-option-hover': 'secondary-400',
381
-
382
- // divider
383
- 'border-divider-default': 'primary-150',
384
-
385
- // radius
386
- // width
387
- // surface
388
- // page
389
- 'surface-page-default': 'primary-50',
390
- 'surface-page-lighter': 'primary-30',
391
-
392
- // button
393
- 'surface-button-default': 'secondary-default',
394
- 'surface-button-hover': 'secondary-dark',
395
- 'surface-button-primary-disabled': 'secondary-400',
396
- 'surface-button-warning': 'error-default',
397
- 'surface-button-warning-hover': 'error-dark',
398
- 'surface-button-warning-disabled': 'error-light',
399
-
400
- // form-field
401
- 'surface-form-field-default': 'neutral-white',
402
-
403
- // banner
404
- 'surface-banner-information': 'secondary-100',
405
- 'surface-banner-success': 'success-light',
406
- 'surface-banner-error': 'error-light',
407
-
408
- // tab
409
- 'surface-tab-selected': 'secondary-default',
410
-
411
- // modal
412
- 'surface-modal-default': 'neutral-white',
413
-
414
- // radio-button
415
- 'surface-radio-button-selected': 'secondary-default',
416
-
417
- // checkbox
418
- 'surface-checkbox-selected': 'secondary-default',
419
-
420
- // dropdown
421
- 'surface-dropdown-default': 'neutral-white',
422
- 'surface-dropdown-hover': 'secondary-100',
423
-
424
- // container
425
- 'surface-container-default': 'neutral-white',
426
- 'surface-container-light': 'primary-30',
427
-
428
- // backdrop
429
- 'surface-backdrop-default': 'primary-400',
330
+ 'icon-on-action-on-blue': 'neutral-white',
331
+ 'icon-white-base': #000,
332
+ 'icon-white-base-on-blue': 'neutral-white',
333
+ 'icon-white-disabled': #000,
334
+ 'icon-white-disabled-on-blue': 'neutral-white-30',
335
+ 'icon-white-on-disabled': #000,
336
+ 'icon-white-on-disabled-on-blue': 'neutral-white-20',
337
+ 'icon-success': #000,
338
+ 'icon-success-on-blue': 'success-default',
339
+ 'icon-success-dark': 'success-dark',
340
+ 'icon-success-dark-on-blue': #000,
341
+ 'icon-warning-dark': 'warning-dark',
342
+ 'icon-warning-dark-on-blue': #000,
343
+ 'icon-error': 'error-default',
344
+ 'icon-error-on-blue': 'error-default',
345
+ 'icon-error-dark': 'error-dark',
346
+ 'icon-error-dark-on-blue': #000,
347
+ 'icon-error-disabled': 'error-light',
348
+ 'icon-error-disabled-on-blue': #000,
349
+ 'icon-warning': #000,
350
+ 'icon-warning-on-blue': 'warning-default',
351
+
352
+ // _border
353
+ 'border-primary-dark': 'primary-600',
354
+ 'border-primary-dark-on-blue': #000,
355
+ 'border-primary-light': 'primary-400',
356
+ 'border-primary-light-on-blue': #000,
357
+ 'border-default': 'primary-150',
358
+ 'border-default-on-blue': #000,
359
+ 'border-primary-lightest': 'primary-50',
360
+ 'border-primary-lightest-on-blue': #000,
361
+ 'border-secondary': 'secondary-default',
362
+ 'border-secondary-on-blue': 'secondary-default',
363
+ 'border-secondary-dark': 'secondary-dark',
364
+ 'border-secondary-dark-on-blue': 'secondary-dark',
365
+ 'border-secondary-disabled': 'secondary-400',
366
+ 'border-secondary-disabled-on-blue': 'neutral-white-30',
367
+ 'border-hover': 'secondary-400',
368
+ 'border-hover-on-blue': #000,
369
+ 'border-white-base': #000,
370
+ 'border-white-base-on-blue': 'neutral-white',
371
+ 'border-white-border': #000,
372
+ 'border-white-border-on-blue': 'neutral-white-50',
373
+ 'border-white-disabled': #000,
374
+ 'border-white-disabled-on-blue': 'neutral-white-30',
375
+ 'border-white-hover': #000,
376
+ 'border-white-hover-on-blue': 'neutral-white-20',
377
+ 'border-error': 'error-default',
378
+ 'border-error-on-blue': 'error-default',
379
+ 'border-error-dark': 'error-dark',
380
+ 'border-error-dark-on-blue': #000,
381
+ 'border-error-disabled': 'error-light',
382
+ 'border-error-disabled-on-blue': #000,
383
+ 'border-white-divider': #000,
384
+ 'border-white-divider-on-blue': 'neutral-white-10',
430
385
 
431
386
  // RESPONSIVE
432
387
  // fontsize
433
388
  // body
434
- 'fontsize-body-lg': 16,
435
- 'fontsize-body-md': 14,
389
+ 'fontsize-body-lg-desktop': 16,
390
+ 'fontsize-body-lg': 18,
391
+ 'fontsize-body-md-desktop': 14,
392
+ 'fontsize-body-md': 16,
393
+ 'fontsize-body-xl-desktop': 20,
436
394
  'fontsize-body-xl': 20,
437
- 'fontsize-body-sm': 12,
438
- 'fontsize-body-xs': 10,
395
+ 'fontsize-body-sm-desktop': 12,
396
+ 'fontsize-body-sm': 14,
397
+ 'fontsize-body-xs-desktop': 10,
398
+ 'fontsize-body-xs': 12,
439
399
 
440
400
  // headings
441
- 'fontsize-headings-h6': 14,
401
+ 'fontsize-headings-h6-desktop': 14,
402
+ 'fontsize-headings-h6': 16,
403
+ 'fontsize-headings-h5-desktop': 20,
442
404
  'fontsize-headings-h5': 20,
405
+ 'fontsize-headings-h4-desktop': 24,
443
406
  'fontsize-headings-h4': 24,
407
+ 'fontsize-headings-h3-desktop': 32,
444
408
  'fontsize-headings-h3': 32,
409
+ 'fontsize-headings-h2-desktop': 40,
445
410
  'fontsize-headings-h2': 40,
411
+ 'fontsize-headings-h1-desktop': 48,
446
412
  'fontsize-headings-h1': 48,
447
413
 
448
414
  // line-height
449
415
  // body
450
- 'line-height-body-xs': 16,
451
- 'line-height-body-sm': 18,
452
- 'line-height-body-md': 22,
416
+ 'line-height-body-xs-desktop': 16,
417
+ 'line-height-body-xs': 18,
418
+ 'line-height-body-sm-desktop': 18,
419
+ 'line-height-body-sm': 22,
420
+ 'line-height-body-md-desktop': 22,
421
+ 'line-height-body-md': 24,
422
+ 'line-height-body-xl-desktop': 32,
453
423
  'line-height-body-xl': 32,
454
- 'line-height-body-lg': 24,
424
+ 'line-height-body-lg-desktop': 24,
425
+ 'line-height-body-lg': 28,
455
426
 
456
427
  // headings
457
- 'line-height-headings-h6': 22,
428
+ 'line-height-headings-h6-desktop': 22,
429
+ 'line-height-headings-h6': 24,
430
+ 'line-height-headings-h5-desktop': 32,
458
431
  'line-height-headings-h5': 32,
432
+ 'line-height-headings-h4-desktop': 36,
459
433
  'line-height-headings-h4': 36,
434
+ 'line-height-headings-h3-desktop': 40,
460
435
  'line-height-headings-h3': 40,
436
+ 'line-height-headings-h2-desktop': 48,
461
437
  'line-height-headings-h2': 48,
438
+ 'line-height-headings-h1-desktop': 56,
462
439
  'line-height-headings-h1': 56,
463
440
 
464
441
  // paragraph-spacing
465
442
  // body
466
- 'paragraph-spacing-body-xs': 6,
467
- 'paragraph-spacing-body-sm': 8,
468
- 'paragraph-spacing-body-md': 10,
443
+ 'paragraph-spacing-body-xs-desktop': 6,
444
+ 'paragraph-spacing-body-xs': 8,
445
+ 'paragraph-spacing-body-sm-desktop': 8,
446
+ 'paragraph-spacing-body-sm': 10,
447
+ 'paragraph-spacing-body-md-desktop': 10,
448
+ 'paragraph-spacing-body-md': 12,
449
+ 'paragraph-spacing-body-lg-desktop': 12,
469
450
  'paragraph-spacing-body-lg': 12,
451
+ 'paragraph-spacing-body-xl-desktop': 14,
470
452
  'paragraph-spacing-body-xl': 14,
471
453
 
472
454
  // headings
473
- 'paragraph-spacing-headings-h6': 10,
455
+ 'paragraph-spacing-headings-h6-desktop': 10,
456
+ 'paragraph-spacing-headings-h6': 12,
457
+ 'paragraph-spacing-headings-h5-desktop': 14,
474
458
  'paragraph-spacing-headings-h5': 14,
459
+ 'paragraph-spacing-headings-h4-desktop': 16,
475
460
  'paragraph-spacing-headings-h4': 16,
461
+ 'paragraph-spacing-headings-h3-desktop': 20,
476
462
  'paragraph-spacing-headings-h3': 20,
463
+ 'paragraph-spacing-headings-h2-desktop': 24,
477
464
  'paragraph-spacing-headings-h2': 24,
465
+ 'paragraph-spacing-headings-h1-desktop': 28,
478
466
  'paragraph-spacing-headings-h1': 28,
479
467
 
480
468
  // spacing
469
+ 'spacing-none-desktop': 'scale-0',
481
470
  'spacing-none': 'scale-0',
471
+ 'spacing-3xs-desktop': 'scale-50-(2)',
482
472
  'spacing-3xs': 'scale-50-(2)',
473
+ 'spacing-2xs-desktop': 'scale-100-(4)',
483
474
  'spacing-2xs': 'scale-100-(4)',
475
+ 'spacing-xs-desktop': 'scale-200-(8)',
484
476
  'spacing-xs': 'scale-200-(8)',
477
+ 'spacing-sm-desktop': 'scale-250-(10)',
485
478
  'spacing-sm': 'scale-250-(10)',
479
+ 'spacing-md-desktop': 'scale-300-(12)',
486
480
  'spacing-md': 'scale-300-(12)',
481
+ 'spacing-lg-desktop': 'scale-400-(16)',
487
482
  'spacing-lg': 'scale-400-(16)',
483
+ 'spacing-xl-desktop': 'scale-600-(24)',
488
484
  'spacing-xl': 'scale-600-(24)',
485
+ 'spacing-2xl-desktop': 'scale-800-(32)',
489
486
  'spacing-2xl': 'scale-800-(32)',
487
+ 'spacing-3xl-desktop': 'scale-1200-(48)',
490
488
  'spacing-3xl': 'scale-1200-(48)',
489
+ 'spacing-4xl-desktop': 'scale-1600-(64)',
491
490
  'spacing-4xl': 'scale-1600-(64)'
492
491
  );