@transfermarkt/global-styles 1.61.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.61.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",
@@ -233,274 +233,259 @@ $figma-variables: (
233
233
  'secondary-50': 'color-lightblue-50',
234
234
 
235
235
  // MAPPED
236
- // text
236
+ // _text
237
237
  'text-heading': 'primary-default',
238
- 'text-body': 'primary-600',
239
- 'text-action': 'secondary-default',
240
- 'text-action-hover': 'secondary-dark',
241
- 'text-disabled': 'secondary-400',
242
- 'text-information': 'primary-600',
243
- 'text-success': 'success-dark',
244
- 'text-warning': 'warning-dark',
245
- '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',
246
255
  'text-on-action': 'neutral-white',
256
+ 'text-on-action-on-blue': 'neutral-white',
247
257
  'text-on-disabled': 'neutral-white',
248
- // form-field
249
- 'text-form-field-label': 'primary-600',
250
- 'text-form-field-default': 'primary-200',
251
- 'text-form-field-filled': 'primary-600',
252
- 'text-form-field-error': 'error-dark',
253
- 'text-form-field-disabled': 'primary-150',
254
- 'text-form-field-assistive-text': 'primary-500',
255
- 'text-form-field-assistive-text-success': 'success-dark',
256
- 'text-form-field-assistive-text-unmet': 'primary-500',
257
- 'text-form-field-link': 'secondary-default',
258
- 'text-form-field-link-hover': 'secondary-dark',
259
-
260
- // tab
261
- 'text-tab-selected': 'secondary-default',
262
- 'text-tab-unselected': 'primary-400',
263
-
264
- // banner
265
- 'text-banner-information': 'primary-700',
266
- 'text-banner-success': 'success-dark',
267
- 'text-banner-error': 'error-dark',
268
- 'text-banner-neutral': 'primary-default',
269
-
270
- // radio-button
271
- 'text-radio-button-default': 'primary-600',
272
- 'text-radio-button-disabled': 'primary-150',
273
-
274
- // checkbox
275
- 'text-checkbox-default': 'primary-600',
276
- 'text-checkbox-disabled': 'primary-150',
277
-
278
- // button
279
- 'text-button-default': 'neutral-white',
280
- 'text-button-hover': 'neutral-white',
281
- 'text-button-disabled': 'neutral-white',
282
- 'text-button-secondary-default': 'secondary-default',
283
- 'text-button-secondary-hover': 'secondary-dark',
284
- 'text-button-secondary-disabled': 'secondary-400',
285
- 'text-button-tertiary-default': 'secondary-default',
286
- 'text-button-tertiary-hover': 'secondary-default',
287
- 'text-button-tertiary-disabled': 'secondary-400',
288
- 'text-button-secondary-grey-default': 'primary-default',
289
- 'text-button-secondary-grey-hover': 'primary-default',
290
- 'text-button-secondary-grey-disabled': 'primary-150',
291
- 'text-button-tertiary-grey-default': 'primary-default',
292
- 'text-button-tertiary-grey-hover': 'primary-default',
293
- 'text-button-tertiary-grey-disabled': 'primary-150',
294
- 'text-button-warning': 'neutral-white',
295
- 'text-button-warning-hover': 'neutral-white',
296
- 'text-button-warning-disabled': 'neutral-white',
297
- 'text-button-tertiary-warning': 'error-default',
298
- 'text-button-tertiary-warning-hover': 'error-dark',
299
- 'text-button-tertiary-warning-disabled': 'error-light',
300
-
301
- // heading
302
- 'text-heading-default': 'primary-default',
303
-
304
- // body
305
- 'text-body-default': 'primary-600',
306
- 'text-body-disabled': 'color-darkblue-150',
307
-
308
- // dropdown
309
- 'text-dropdown-default': 'primary-600',
310
-
311
- // link
312
- 'text-link-default': 'secondary-default',
313
- 'text-link-hover': 'secondary-dark',
314
-
315
- // divider
316
- 'text-divider-default': 'primary-400',
317
-
318
- // icon
319
- 'icon-secondary': 'primary-400',
320
- 'icon-information': 'primary-700',
321
- 'icon-success': 'success-dark',
322
- 'icon-warning': 'warning-dark',
323
- 'icon-error': 'error-dark',
324
- 'icon-disabled': 'primary-150',
325
- '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
326
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',
327
329
  'icon-on-action': 'neutral-white',
328
- 'icon-on-action-hover': 'neutral-white',
329
- 'icon-on-action-disabled': 'neutral-white',
330
- 'icon-on-action-secondary': 'secondary-default',
331
- 'icon-on-action-secondary-hover': 'secondary-dark',
332
- 'icon-on-action-secondary-disabled': 'secondary-400',
333
- 'icon-on-action-tertiary': 'secondary-default',
334
- 'icon-on-action-tertiary-hover': 'secondary-default',
335
- 'icon-on-action-tertiary-disabled': 'secondary-400',
336
- 'icon-on-action-secondary-grey': 'primary-default',
337
- 'icon-on-action-secondary-grey-hover': 'primary-default',
338
- 'icon-on-action-secondary-grey-disabled': 'primary-150',
339
- 'icon-on-action-tertiary-grey': 'primary-default',
340
- 'icon-on-action-tertiary-grey-hover': 'primary-default',
341
- 'icon-on-action-tertiary-grey-disabled': 'primary-150',
342
- 'icon-on-action-warning': 'neutral-white',
343
- 'icon-on-action-warning-hover': 'neutral-white',
344
- 'icon-on-action-warning-disabled': 'neutral-white',
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,
345
347
  'icon-error-disabled': 'error-light',
346
- 'icon-secondary-lighter': 'primary-150',
347
-
348
- // table
349
- 'table-highest': 'secondary-default',
350
-
351
- // border
352
- 'border-container': 'primary-50',
353
- 'border-container-alt': #ddd,
354
- // form-field
355
- 'border-form-field-default': 'primary-150',
356
- 'border-form-field-hover': 'primary-400',
357
- 'border-form-field-focus': 'secondary-default',
358
- 'border-form-field-error': 'error-dark',
359
- 'border-form-field-filled': 'primary-150',
360
- 'border-form-field-disabled': 'primary-150',
361
-
362
- // button
363
- 'border-button-default': 'secondary-default',
364
- 'border-button-hover': 'secondary-dark',
365
- 'border-button-disabled': 'secondary-400',
366
- 'border-button-grey-default': 'primary-150',
367
- 'border-button-grey-hover': 'primary-400',
368
- 'border-button-secondary-grey-disabled': 'primary-150',
369
- 'border-button-warning': 'error-default',
370
- 'border-button-warning-hover': 'error-dark',
371
- 'border-button-warning-disabled': 'error-light',
372
-
373
- // radio-button
374
- 'border-radio-button-selected': 'secondary-default',
375
- 'border-radio-button-unselected': 'primary-150',
376
- 'border-radio-button-hover': 'primary-400',
377
- 'border-radio-button-disabled': 'primary-150',
378
-
379
- // checkbox
380
- 'border-checkbox-selected': 'secondary-default',
381
- 'border-checkbox-unselected': 'primary-150',
382
- 'border-checkbox-hover': 'primary-400',
383
- 'border-checkbox-disabled': 'primary-150',
384
-
385
- // flags
386
- 'border-flags-default': 'primary-600',
387
-
388
- // banner
389
- 'border-banner-neutral': 'primary-150',
390
-
391
- // dropdown
392
- 'border-dropdown-default': 'primary-150',
393
- 'border-dropdown-option-hover': 'secondary-400',
394
-
395
- // divider
396
- 'border-divider-default': 'primary-150',
397
-
398
- // radius
399
- // width
400
- // surface
401
- // page
402
- 'surface-page-default': 'primary-50',
403
- 'surface-page-lighter': 'primary-30',
404
-
405
- // button
406
- 'surface-button-default': 'secondary-default',
407
- 'surface-button-hover': 'secondary-dark',
408
- 'surface-button-primary-disabled': 'secondary-400',
409
- 'surface-button-warning': 'error-default',
410
- 'surface-button-warning-hover': 'error-dark',
411
- 'surface-button-warning-disabled': 'error-lighter',
412
- 'surface-button-secondary-grey': 'primary-default',
413
-
414
- // form-field
415
- 'surface-form-field-default': 'neutral-white',
416
-
417
- // banner
418
- 'surface-banner-information': 'secondary-100',
419
- 'surface-banner-success': 'success-light',
420
- 'surface-banner-error': 'error-lighter',
421
-
422
- // tab
423
- 'surface-tab-selected': 'secondary-default',
424
-
425
- // modal
426
- 'surface-modal-default': 'neutral-white',
427
-
428
- // radio-button
429
- 'surface-radio-button-selected': 'secondary-default',
430
-
431
- // checkbox
432
- 'surface-checkbox-selected': 'secondary-default',
433
-
434
- // dropdown
435
- 'surface-dropdown-default': 'neutral-white',
436
- 'surface-dropdown-hover': 'secondary-100',
437
-
438
- // container
439
- 'surface-container-default': 'neutral-white',
440
- 'surface-container-light': 'primary-30',
441
-
442
- // backdrop
443
- 'surface-backdrop-default': 'primary-400',
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',
444
385
 
445
386
  // RESPONSIVE
446
387
  // fontsize
447
388
  // body
448
- 'fontsize-body-lg': 16,
449
- '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,
450
394
  'fontsize-body-xl': 20,
451
- 'fontsize-body-sm': 12,
452
- '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,
453
399
 
454
400
  // headings
455
- 'fontsize-headings-h6': 14,
401
+ 'fontsize-headings-h6-desktop': 14,
402
+ 'fontsize-headings-h6': 16,
403
+ 'fontsize-headings-h5-desktop': 20,
456
404
  'fontsize-headings-h5': 20,
405
+ 'fontsize-headings-h4-desktop': 24,
457
406
  'fontsize-headings-h4': 24,
407
+ 'fontsize-headings-h3-desktop': 32,
458
408
  'fontsize-headings-h3': 32,
409
+ 'fontsize-headings-h2-desktop': 40,
459
410
  'fontsize-headings-h2': 40,
411
+ 'fontsize-headings-h1-desktop': 48,
460
412
  'fontsize-headings-h1': 48,
461
413
 
462
414
  // line-height
463
415
  // body
464
- 'line-height-body-xs': 16,
465
- 'line-height-body-sm': 18,
466
- '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,
467
423
  'line-height-body-xl': 32,
468
- 'line-height-body-lg': 24,
424
+ 'line-height-body-lg-desktop': 24,
425
+ 'line-height-body-lg': 28,
469
426
 
470
427
  // headings
471
- '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,
472
431
  'line-height-headings-h5': 32,
432
+ 'line-height-headings-h4-desktop': 36,
473
433
  'line-height-headings-h4': 36,
434
+ 'line-height-headings-h3-desktop': 40,
474
435
  'line-height-headings-h3': 40,
436
+ 'line-height-headings-h2-desktop': 48,
475
437
  'line-height-headings-h2': 48,
438
+ 'line-height-headings-h1-desktop': 56,
476
439
  'line-height-headings-h1': 56,
477
440
 
478
441
  // paragraph-spacing
479
442
  // body
480
- 'paragraph-spacing-body-xs': 6,
481
- 'paragraph-spacing-body-sm': 8,
482
- '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,
483
450
  'paragraph-spacing-body-lg': 12,
451
+ 'paragraph-spacing-body-xl-desktop': 14,
484
452
  'paragraph-spacing-body-xl': 14,
485
453
 
486
454
  // headings
487
- '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,
488
458
  'paragraph-spacing-headings-h5': 14,
459
+ 'paragraph-spacing-headings-h4-desktop': 16,
489
460
  'paragraph-spacing-headings-h4': 16,
461
+ 'paragraph-spacing-headings-h3-desktop': 20,
490
462
  'paragraph-spacing-headings-h3': 20,
463
+ 'paragraph-spacing-headings-h2-desktop': 24,
491
464
  'paragraph-spacing-headings-h2': 24,
465
+ 'paragraph-spacing-headings-h1-desktop': 28,
492
466
  'paragraph-spacing-headings-h1': 28,
493
467
 
494
468
  // spacing
469
+ 'spacing-none-desktop': 'scale-0',
495
470
  'spacing-none': 'scale-0',
471
+ 'spacing-3xs-desktop': 'scale-50-(2)',
496
472
  'spacing-3xs': 'scale-50-(2)',
473
+ 'spacing-2xs-desktop': 'scale-100-(4)',
497
474
  'spacing-2xs': 'scale-100-(4)',
475
+ 'spacing-xs-desktop': 'scale-200-(8)',
498
476
  'spacing-xs': 'scale-200-(8)',
477
+ 'spacing-sm-desktop': 'scale-250-(10)',
499
478
  'spacing-sm': 'scale-250-(10)',
479
+ 'spacing-md-desktop': 'scale-300-(12)',
500
480
  'spacing-md': 'scale-300-(12)',
481
+ 'spacing-lg-desktop': 'scale-400-(16)',
501
482
  'spacing-lg': 'scale-400-(16)',
483
+ 'spacing-xl-desktop': 'scale-600-(24)',
502
484
  'spacing-xl': 'scale-600-(24)',
485
+ 'spacing-2xl-desktop': 'scale-800-(32)',
503
486
  'spacing-2xl': 'scale-800-(32)',
487
+ 'spacing-3xl-desktop': 'scale-1200-(48)',
504
488
  'spacing-3xl': 'scale-1200-(48)',
489
+ 'spacing-4xl-desktop': 'scale-1600-(64)',
505
490
  'spacing-4xl': 'scale-1600-(64)'
506
491
  );