@mediaradar/design-tokens 2.6.1 → 2.8.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 +1 -0
- package/dist/css/component.css +1 -1
- package/dist/css/ref.css +4 -2
- package/dist/css/sys.css +3 -0
- package/dist/js/tokens.d.ts +6 -0
- package/dist/js/tokens.js +13 -3
- package/dist/tailwind/theme.css +3 -0
- package/package.json +1 -1
package/dist/DESIGN.md
CHANGED
package/dist/css/component.css
CHANGED
package/dist/css/ref.css
CHANGED
|
@@ -323,8 +323,9 @@
|
|
|
323
323
|
--mr-ref-dimension-radius-lg: 12px;
|
|
324
324
|
--mr-ref-dimension-radius-xl: 16px;
|
|
325
325
|
--mr-ref-dimension-radius-full: 999px;
|
|
326
|
-
--mr-ref-typography-family-primary: '
|
|
327
|
-
--mr-ref-typography-family-heading: '
|
|
326
|
+
--mr-ref-typography-family-primary: 'Instrument Sans', system-ui, sans-serif;
|
|
327
|
+
--mr-ref-typography-family-heading: 'Instrument Sans', system-ui, sans-serif;
|
|
328
|
+
--mr-ref-typography-family-display: 'Instrument Serif', Georgia, serif;
|
|
328
329
|
--mr-ref-typography-weight-regular: 400;
|
|
329
330
|
--mr-ref-typography-weight-medium: 500;
|
|
330
331
|
--mr-ref-typography-weight-semibold: 600;
|
|
@@ -356,5 +357,6 @@
|
|
|
356
357
|
--mr-ref-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
357
358
|
--mr-ref-z-dropdown: 1000;
|
|
358
359
|
--mr-ref-z-modal: 1100;
|
|
360
|
+
--mr-ref-z-toast: 1150;
|
|
359
361
|
--mr-ref-z-tooltip: 1200;
|
|
360
362
|
}
|
package/dist/css/sys.css
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
--mr-color-ai-ontint: var(--mr-ref-color-brand-warm-ai-ontint-light);
|
|
31
31
|
--mr-color-ai-gradient: var(--mr-ref-color-brand-warm-ai-gradient-light);
|
|
32
32
|
--mr-color-scrim: var(--mr-ref-color-brand-warm-scrim-light);
|
|
33
|
+
--mr-typography-family-sans: var(--mr-ref-typography-family-primary);
|
|
34
|
+
--mr-typography-family-serif: var(--mr-ref-typography-family-display);
|
|
33
35
|
--mr-typography-font-size-micro: var(--mr-ref-typography-size-micro);
|
|
34
36
|
--mr-typography-font-size-xs: var(--mr-ref-typography-size-xs);
|
|
35
37
|
--mr-typography-font-size-dense: var(--mr-ref-typography-size-dense);
|
|
@@ -67,6 +69,7 @@
|
|
|
67
69
|
--mr-opacity-disabled: var(--mr-ref-opacity-disabled);
|
|
68
70
|
--mr-z-dropdown: var(--mr-ref-z-dropdown);
|
|
69
71
|
--mr-z-modal: var(--mr-ref-z-modal);
|
|
72
|
+
--mr-z-toast: var(--mr-ref-z-toast);
|
|
70
73
|
--mr-z-tooltip: var(--mr-ref-z-tooltip);
|
|
71
74
|
--mr-text-style-heading-1-font-size: var(--mr-typography-font-size-h1);
|
|
72
75
|
--mr-text-style-heading-1-font-weight: var(--mr-ref-typography-weight-semibold);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -407,6 +407,7 @@ export const mrRefDimensionRadiusXl: number;
|
|
|
407
407
|
export const mrRefDimensionRadiusFull: number;
|
|
408
408
|
export const mrRefTypographyFamilyPrimary: string;
|
|
409
409
|
export const mrRefTypographyFamilyHeading: string;
|
|
410
|
+
export const mrRefTypographyFamilyDisplay: string;
|
|
410
411
|
export const mrRefTypographyWeightRegular: number;
|
|
411
412
|
export const mrRefTypographyWeightMedium: number;
|
|
412
413
|
export const mrRefTypographyWeightSemibold: number;
|
|
@@ -440,6 +441,8 @@ export const mrRefMotionDurationSlow: number;
|
|
|
440
441
|
export const mrRefMotionEasingStandard: string;
|
|
441
442
|
export const mrRefZDropdown: number;
|
|
442
443
|
export const mrRefZModal: number;
|
|
444
|
+
/** 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. */
|
|
445
|
+
export const mrRefZToast: number;
|
|
443
446
|
export const mrRefZTooltip: number;
|
|
444
447
|
export const mrColorCanvas: string;
|
|
445
448
|
export const mrColorSurface: string;
|
|
@@ -472,6 +475,8 @@ export const mrColorAiTint: string;
|
|
|
472
475
|
export const mrColorAiOntint: string;
|
|
473
476
|
export const mrColorAiGradient: string;
|
|
474
477
|
export const mrColorScrim: string;
|
|
478
|
+
export const mrTypographyFamilySans: string;
|
|
479
|
+
export const mrTypographyFamilySerif: string;
|
|
475
480
|
export const mrTypographyFontSizeMicro: number;
|
|
476
481
|
export const mrTypographyFontSizeXs: number;
|
|
477
482
|
export const mrTypographyFontSizeDense: number;
|
|
@@ -509,6 +514,7 @@ export const mrMotionEasingInteractive: string;
|
|
|
509
514
|
export const mrOpacityDisabled: number;
|
|
510
515
|
export const mrZDropdown: number;
|
|
511
516
|
export const mrZModal: number;
|
|
517
|
+
export const mrZToast: number;
|
|
512
518
|
export const mrZTooltip: number;
|
|
513
519
|
export const mrTextStyleHeading_1FontSize: number;
|
|
514
520
|
export const mrTextStyleHeading_1FontWeight: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const mrButtonBorder = "#dcd6cb";
|
|
6
|
-
export const mrButtonTypographyFontfamily =
|
|
6
|
+
export const mrButtonTypographyFontfamily =
|
|
7
|
+
"'Instrument Sans', system-ui, sans-serif";
|
|
7
8
|
export const mrSysColorCanvas = "#1c1814";
|
|
8
9
|
export const mrSysColorSurface = "#26211b";
|
|
9
10
|
export const mrSysColorSubtle = "#322c24";
|
|
@@ -410,8 +411,12 @@ export const mrRefDimensionRadiusMd = 8;
|
|
|
410
411
|
export const mrRefDimensionRadiusLg = 12;
|
|
411
412
|
export const mrRefDimensionRadiusXl = 16;
|
|
412
413
|
export const mrRefDimensionRadiusFull = 999;
|
|
413
|
-
export const mrRefTypographyFamilyPrimary =
|
|
414
|
-
|
|
414
|
+
export const mrRefTypographyFamilyPrimary =
|
|
415
|
+
"'Instrument Sans', system-ui, sans-serif";
|
|
416
|
+
export const mrRefTypographyFamilyHeading =
|
|
417
|
+
"'Instrument Sans', system-ui, sans-serif";
|
|
418
|
+
export const mrRefTypographyFamilyDisplay =
|
|
419
|
+
"'Instrument Serif', Georgia, serif";
|
|
415
420
|
export const mrRefTypographyWeightRegular = 400;
|
|
416
421
|
export const mrRefTypographyWeightMedium = 500;
|
|
417
422
|
export const mrRefTypographyWeightSemibold = 600;
|
|
@@ -445,6 +450,7 @@ export const mrRefMotionDurationSlow = 320;
|
|
|
445
450
|
export const mrRefMotionEasingStandard = "cubic-bezier(0.2, 0, 0, 1)";
|
|
446
451
|
export const mrRefZDropdown = 1000;
|
|
447
452
|
export const mrRefZModal = 1100;
|
|
453
|
+
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.
|
|
448
454
|
export const mrRefZTooltip = 1200;
|
|
449
455
|
export const mrColorCanvas = "#f4f2ee";
|
|
450
456
|
export const mrColorSurface = "#fbfaf7";
|
|
@@ -478,6 +484,9 @@ export const mrColorAiOntint = "#2747c4";
|
|
|
478
484
|
export const mrColorAiGradient =
|
|
479
485
|
"linear-gradient(135deg, #2747c4 0%, #f05323 60%, #f99d20 100%)";
|
|
480
486
|
export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
|
|
487
|
+
export const mrTypographyFamilySans =
|
|
488
|
+
"'Instrument Sans', system-ui, sans-serif";
|
|
489
|
+
export const mrTypographyFamilySerif = "'Instrument Serif', Georgia, serif";
|
|
481
490
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
482
491
|
export const mrTypographyFontSizeXs = 0.75;
|
|
483
492
|
export const mrTypographyFontSizeDense = 0.8125;
|
|
@@ -517,6 +526,7 @@ export const mrMotionEasingInteractive = "cubic-bezier(0.2, 0, 0, 1)";
|
|
|
517
526
|
export const mrOpacityDisabled = 0.4;
|
|
518
527
|
export const mrZDropdown = 1000;
|
|
519
528
|
export const mrZModal = 1100;
|
|
529
|
+
export const mrZToast = 1150;
|
|
520
530
|
export const mrZTooltip = 1200;
|
|
521
531
|
export const mrTextStyleHeading_1FontSize = 1.875;
|
|
522
532
|
export const mrTextStyleHeading_1FontWeight = 600;
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
--color-ai-ontint: var(--mr-color-ai-ontint);
|
|
79
79
|
--color-ai-gradient: var(--mr-color-ai-gradient);
|
|
80
80
|
--color-scrim: var(--mr-color-scrim);
|
|
81
|
+
--font-sans: var(--mr-typography-family-sans);
|
|
82
|
+
--font-serif: var(--mr-typography-family-serif);
|
|
81
83
|
--text-micro: var(--mr-typography-font-size-micro);
|
|
82
84
|
--text-xs: var(--mr-typography-font-size-xs);
|
|
83
85
|
--text-dense: var(--mr-typography-font-size-dense);
|
|
@@ -114,5 +116,6 @@
|
|
|
114
116
|
--opacity-disabled: var(--mr-opacity-disabled);
|
|
115
117
|
--z-index-dropdown: var(--mr-z-dropdown);
|
|
116
118
|
--z-index-modal: var(--mr-z-modal);
|
|
119
|
+
--z-index-toast: var(--mr-z-toast);
|
|
117
120
|
--z-index-tooltip: var(--mr-z-tooltip);
|
|
118
121
|
}
|