@mediaradar/design-tokens 2.6.0 → 2.6.1
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/ref.css +1 -0
- package/dist/css/sys.css +1 -0
- package/dist/js/tokens.d.ts +3 -0
- package/dist/js/tokens.js +2 -0
- package/dist/tailwind/theme.css +1 -0
- package/package.json +5 -7
package/dist/DESIGN.md
CHANGED
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;
|
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);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -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;
|
|
@@ -472,6 +474,7 @@ export const mrColorAiGradient: string;
|
|
|
472
474
|
export const mrColorScrim: string;
|
|
473
475
|
export const mrTypographyFontSizeMicro: number;
|
|
474
476
|
export const mrTypographyFontSizeXs: number;
|
|
477
|
+
export const mrTypographyFontSizeDense: number;
|
|
475
478
|
export const mrTypographyFontSizeSm: number;
|
|
476
479
|
export const mrTypographyFontSizeBase: number;
|
|
477
480
|
export const mrTypographyFontSizeMd: 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;
|
|
@@ -479,6 +480,7 @@ export const mrColorAiGradient =
|
|
|
479
480
|
export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
|
|
480
481
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
481
482
|
export const mrTypographyFontSizeXs = 0.75;
|
|
483
|
+
export const mrTypographyFontSizeDense = 0.8125;
|
|
482
484
|
export const mrTypographyFontSizeSm = 0.875;
|
|
483
485
|
export const mrTypographyFontSizeBase = 1;
|
|
484
486
|
export const mrTypographyFontSizeMd = 1.125;
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediaradar/design-tokens",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
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": [
|