@mediaradar/design-tokens 2.6.0 → 2.7.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/dist/DESIGN.md CHANGED
@@ -205,6 +205,7 @@ Key is the suffix for any Tailwind color utility: `bg-{key}`, `text-{key}`, `bor
205
205
  | --- | --- |
206
206
  | micro | 0.6875rem |
207
207
  | xs | 0.75rem |
208
+ | dense | 0.8125rem |
208
209
  | sm | 0.875rem |
209
210
  | base | 1rem |
210
211
  | md | 1.125rem |
@@ -373,4 +374,5 @@ Tailwind: `z-{key}`
373
374
  | --- | --- |
374
375
  | dropdown | 1000 |
375
376
  | modal | 1100 |
377
+ | toast | 1150 |
376
378
  | tooltip | 1200 |
package/dist/css/ref.css CHANGED
@@ -336,6 +336,7 @@
336
336
  --mr-ref-typography-line-height-xl: 1.8;
337
337
  --mr-ref-typography-size-micro: 0.6875rem;
338
338
  --mr-ref-typography-size-xs: 0.75rem;
339
+ --mr-ref-typography-size-dense: 0.8125rem;
339
340
  --mr-ref-typography-size-sm: 0.875rem;
340
341
  --mr-ref-typography-size-base: 1rem;
341
342
  --mr-ref-typography-size-md: 1.125rem;
@@ -355,5 +356,6 @@
355
356
  --mr-ref-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
356
357
  --mr-ref-z-dropdown: 1000;
357
358
  --mr-ref-z-modal: 1100;
359
+ --mr-ref-z-toast: 1150;
358
360
  --mr-ref-z-tooltip: 1200;
359
361
  }
package/dist/css/sys.css CHANGED
@@ -32,6 +32,7 @@
32
32
  --mr-color-scrim: var(--mr-ref-color-brand-warm-scrim-light);
33
33
  --mr-typography-font-size-micro: var(--mr-ref-typography-size-micro);
34
34
  --mr-typography-font-size-xs: var(--mr-ref-typography-size-xs);
35
+ --mr-typography-font-size-dense: var(--mr-ref-typography-size-dense);
35
36
  --mr-typography-font-size-sm: var(--mr-ref-typography-size-sm);
36
37
  --mr-typography-font-size-base: var(--mr-ref-typography-size-base);
37
38
  --mr-typography-font-size-md: var(--mr-ref-typography-size-md);
@@ -66,6 +67,7 @@
66
67
  --mr-opacity-disabled: var(--mr-ref-opacity-disabled);
67
68
  --mr-z-dropdown: var(--mr-ref-z-dropdown);
68
69
  --mr-z-modal: var(--mr-ref-z-modal);
70
+ --mr-z-toast: var(--mr-ref-z-toast);
69
71
  --mr-z-tooltip: var(--mr-ref-z-tooltip);
70
72
  --mr-text-style-heading-1-font-size: var(--mr-typography-font-size-h1);
71
73
  --mr-text-style-heading-1-font-weight: var(--mr-ref-typography-weight-semibold);
@@ -419,6 +419,8 @@ export const mrRefTypographyLineHeightXl: number;
419
419
  /** 11px. The annotation step, below xs (12px) -- badges, eyebrow labels and other type that marks up content rather than being content. Added because every badge in the product was sized off-scale at 10, 10.5 or 11px, none of which the scale had. Settled on 11 rather than 10: badges carry semibold weight, and the eyebrow shape adds caps and letterspacing on top, which is where 10px starts to strain. 11px was also already the most common of the three sizes in use. */
420
420
  export const mrRefTypographySizeMicro: number;
421
421
  export const mrRefTypographySizeXs: number;
422
+ /** 13px. The dense interface step, between xs (12px) and sm (14px) -- table text, buttons, chips and other compact controls. Added because 13px was already the de-facto size for these across the product but existed only as a hard-coded value repeated per file, outside the scale. */
423
+ export const mrRefTypographySizeDense: number;
422
424
  export const mrRefTypographySizeSm: number;
423
425
  export const mrRefTypographySizeBase: number;
424
426
  export const mrRefTypographySizeMd: number;
@@ -438,6 +440,8 @@ export const mrRefMotionDurationSlow: number;
438
440
  export const mrRefMotionEasingStandard: string;
439
441
  export const mrRefZDropdown: number;
440
442
  export const mrRefZModal: number;
443
+ /** Above modal, below tooltip. A toast reporting on something that happened in a modal has to be visible over it; a tooltip on the toast's own action button has to sit above the toast. Added because the product had four different hand-picked z values for the same object, so which message won was an accident of which screen you were on. */
444
+ export const mrRefZToast: number;
441
445
  export const mrRefZTooltip: number;
442
446
  export const mrColorCanvas: string;
443
447
  export const mrColorSurface: string;
@@ -472,6 +476,7 @@ export const mrColorAiGradient: string;
472
476
  export const mrColorScrim: string;
473
477
  export const mrTypographyFontSizeMicro: number;
474
478
  export const mrTypographyFontSizeXs: number;
479
+ export const mrTypographyFontSizeDense: number;
475
480
  export const mrTypographyFontSizeSm: number;
476
481
  export const mrTypographyFontSizeBase: number;
477
482
  export const mrTypographyFontSizeMd: number;
@@ -506,6 +511,7 @@ export const mrMotionEasingInteractive: string;
506
511
  export const mrOpacityDisabled: number;
507
512
  export const mrZDropdown: number;
508
513
  export const mrZModal: number;
514
+ export const mrZToast: number;
509
515
  export const mrZTooltip: number;
510
516
  export const mrTextStyleHeading_1FontSize: number;
511
517
  export const mrTextStyleHeading_1FontWeight: number;
package/dist/js/tokens.js CHANGED
@@ -423,6 +423,7 @@ export const mrRefTypographyLineHeightLg = 1.6;
423
423
  export const mrRefTypographyLineHeightXl = 1.8;
424
424
  export const mrRefTypographySizeMicro = 0.6875; // 11px. The annotation step, below xs (12px) -- badges, eyebrow labels and other type that marks up content rather than being content. Added because every badge in the product was sized off-scale at 10, 10.5 or 11px, none of which the scale had. Settled on 11 rather than 10: badges carry semibold weight, and the eyebrow shape adds caps and letterspacing on top, which is where 10px starts to strain. 11px was also already the most common of the three sizes in use.
425
425
  export const mrRefTypographySizeXs = 0.75;
426
+ export const mrRefTypographySizeDense = 0.8125; // 13px. The dense interface step, between xs (12px) and sm (14px) -- table text, buttons, chips and other compact controls. Added because 13px was already the de-facto size for these across the product but existed only as a hard-coded value repeated per file, outside the scale.
426
427
  export const mrRefTypographySizeSm = 0.875;
427
428
  export const mrRefTypographySizeBase = 1;
428
429
  export const mrRefTypographySizeMd = 1.125;
@@ -444,6 +445,7 @@ export const mrRefMotionDurationSlow = 320;
444
445
  export const mrRefMotionEasingStandard = "cubic-bezier(0.2, 0, 0, 1)";
445
446
  export const mrRefZDropdown = 1000;
446
447
  export const mrRefZModal = 1100;
448
+ export const mrRefZToast = 1150; // Above modal, below tooltip. A toast reporting on something that happened in a modal has to be visible over it; a tooltip on the toast's own action button has to sit above the toast. Added because the product had four different hand-picked z values for the same object, so which message won was an accident of which screen you were on.
447
449
  export const mrRefZTooltip = 1200;
448
450
  export const mrColorCanvas = "#f4f2ee";
449
451
  export const mrColorSurface = "#fbfaf7";
@@ -479,6 +481,7 @@ export const mrColorAiGradient =
479
481
  export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
480
482
  export const mrTypographyFontSizeMicro = 0.6875;
481
483
  export const mrTypographyFontSizeXs = 0.75;
484
+ export const mrTypographyFontSizeDense = 0.8125;
482
485
  export const mrTypographyFontSizeSm = 0.875;
483
486
  export const mrTypographyFontSizeBase = 1;
484
487
  export const mrTypographyFontSizeMd = 1.125;
@@ -515,6 +518,7 @@ export const mrMotionEasingInteractive = "cubic-bezier(0.2, 0, 0, 1)";
515
518
  export const mrOpacityDisabled = 0.4;
516
519
  export const mrZDropdown = 1000;
517
520
  export const mrZModal = 1100;
521
+ export const mrZToast = 1150;
518
522
  export const mrZTooltip = 1200;
519
523
  export const mrTextStyleHeading_1FontSize = 1.875;
520
524
  export const mrTextStyleHeading_1FontWeight = 600;
@@ -80,6 +80,7 @@
80
80
  --color-scrim: var(--mr-color-scrim);
81
81
  --text-micro: var(--mr-typography-font-size-micro);
82
82
  --text-xs: var(--mr-typography-font-size-xs);
83
+ --text-dense: var(--mr-typography-font-size-dense);
83
84
  --text-sm: var(--mr-typography-font-size-sm);
84
85
  --text-base: var(--mr-typography-font-size-base);
85
86
  --text-md: var(--mr-typography-font-size-md);
@@ -113,5 +114,6 @@
113
114
  --opacity-disabled: var(--mr-opacity-disabled);
114
115
  --z-index-dropdown: var(--mr-z-dropdown);
115
116
  --z-index-modal: var(--mr-z-modal);
117
+ --z-index-toast: var(--mr-z-toast);
116
118
  --z-index-tooltip: var(--mr-z-tooltip);
117
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaradar/design-tokens",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "main": "dist/js/tokens.js",
5
5
  "types": "dist/js/tokens.d.ts",
6
6
  "type": "module",
@@ -30,18 +30,16 @@
30
30
  },
31
31
  "author": "",
32
32
  "license": "Apache-2.0",
33
- "dependencies": {
34
- "@tokens-studio/sd-transforms": "^2.0.3",
35
- "lodash": "^4.17.21",
36
- "lodash-es": "^4.17.21",
37
- "style-dictionary": "^5.5.0"
38
- },
39
33
  "devDependencies": {
40
34
  "@babel/parser": "^7.29.8",
41
35
  "@babel/traverse": "^7.29.8",
36
+ "@tokens-studio/sd-transforms": "^2.0.3",
42
37
  "@types/node": "^25.3.0",
43
38
  "eslint": "^10.0.1",
39
+ "lodash": "^4.17.21",
40
+ "lodash-es": "^4.17.21",
44
41
  "react-docgen-typescript": "^2.4.0",
42
+ "style-dictionary": "^5.5.0",
45
43
  "typescript": "5.7.2"
46
44
  },
47
45
  "keywords": [