@mediaradar/design-tokens 3.2.1 → 3.4.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 +2 -0
- package/dist/css/ref.css +2 -0
- package/dist/css/sys.css +2 -0
- package/dist/js/tokens.d.ts +7 -1
- package/dist/js/tokens.js +5 -1
- package/dist/tailwind/preset.cjs +2 -0
- package/dist/tailwind/preset.js +2 -0
- package/dist/tailwind/theme.css +2 -0
- package/package.json +1 -1
package/dist/DESIGN.md
CHANGED
|
@@ -211,11 +211,13 @@ Key is the suffix for any Tailwind color utility: `bg-{key}`, `text-{key}`, `bor
|
|
|
211
211
|
|
|
212
212
|
| Key | Value |
|
|
213
213
|
| --- | --- |
|
|
214
|
+
| control-caption | 0.625rem |
|
|
214
215
|
| micro | 0.6875rem |
|
|
215
216
|
| xs | 0.75rem |
|
|
216
217
|
| card-title | 0.7813rem |
|
|
217
218
|
| dense | 0.8125rem |
|
|
218
219
|
| sm | 0.875rem |
|
|
220
|
+
| panel-title | 0.9375rem |
|
|
219
221
|
| base | 1rem |
|
|
220
222
|
| md | 1.125rem |
|
|
221
223
|
| lg | 1.25rem |
|
package/dist/css/ref.css
CHANGED
|
@@ -343,11 +343,13 @@
|
|
|
343
343
|
--mr-ref-typography-line-height-base: 1.5;
|
|
344
344
|
--mr-ref-typography-line-height-lg: 1.6;
|
|
345
345
|
--mr-ref-typography-line-height-xl: 1.8;
|
|
346
|
+
--mr-ref-typography-size-control-caption: 0.625rem;
|
|
346
347
|
--mr-ref-typography-size-micro: 0.6875rem;
|
|
347
348
|
--mr-ref-typography-size-xs: 0.75rem;
|
|
348
349
|
--mr-ref-typography-size-card-title: 0.78125rem;
|
|
349
350
|
--mr-ref-typography-size-dense: 0.8125rem;
|
|
350
351
|
--mr-ref-typography-size-sm: 0.875rem;
|
|
352
|
+
--mr-ref-typography-size-panel-title: 0.9375rem;
|
|
351
353
|
--mr-ref-typography-size-base: 1rem;
|
|
352
354
|
--mr-ref-typography-size-md: 1.125rem;
|
|
353
355
|
--mr-ref-typography-size-lg: 1.25rem;
|
package/dist/css/sys.css
CHANGED
|
@@ -36,11 +36,13 @@
|
|
|
36
36
|
--mr-color-scrim: var(--mr-ref-color-brand-warm-scrim-light);
|
|
37
37
|
--mr-typography-family-sans: var(--mr-ref-typography-family-primary);
|
|
38
38
|
--mr-typography-family-serif: var(--mr-ref-typography-family-display);
|
|
39
|
+
--mr-typography-font-size-control-caption: var(--mr-ref-typography-size-control-caption);
|
|
39
40
|
--mr-typography-font-size-micro: var(--mr-ref-typography-size-micro);
|
|
40
41
|
--mr-typography-font-size-xs: var(--mr-ref-typography-size-xs);
|
|
41
42
|
--mr-typography-font-size-card-title: var(--mr-ref-typography-size-card-title);
|
|
42
43
|
--mr-typography-font-size-dense: var(--mr-ref-typography-size-dense);
|
|
43
44
|
--mr-typography-font-size-sm: var(--mr-ref-typography-size-sm);
|
|
45
|
+
--mr-typography-font-size-panel-title: var(--mr-ref-typography-size-panel-title);
|
|
44
46
|
--mr-typography-font-size-base: var(--mr-ref-typography-size-base);
|
|
45
47
|
--mr-typography-font-size-md: var(--mr-ref-typography-size-md);
|
|
46
48
|
--mr-typography-font-size-lg: var(--mr-ref-typography-size-lg);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -429,7 +429,9 @@ export const mrRefTypographyLineHeightSm: number;
|
|
|
429
429
|
export const mrRefTypographyLineHeightBase: number;
|
|
430
430
|
export const mrRefTypographyLineHeightLg: number;
|
|
431
431
|
export const mrRefTypographyLineHeightXl: number;
|
|
432
|
-
/**
|
|
432
|
+
/** 10px. The control caption step, below micro (11px) -- the small uppercase caption above a dropdown's value (the prototype's chip and chip trigger). Added so insights-studio can match the prototype, which draws these captions at 10px as a hard-coded text-[10px]. Only for captions on controls: badges and eyebrows stay on micro. Font size only, no line height, like micro, card-title and panel-title. */
|
|
433
|
+
export const mrRefTypographySizeControlCaption: number;
|
|
434
|
+
/** 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. Badges and eyebrows 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. The 10px caption above a dropdown value is control-caption, not micro. */
|
|
433
435
|
export const mrRefTypographySizeMicro: number;
|
|
434
436
|
export const mrRefTypographySizeXs: number;
|
|
435
437
|
/** 12.5px. The card title step, between xs (12px) and dense (13px) -- the title of every card, from dashboard cards (Card's title prop) to rail cards. Added because card titles were already set at 12.5px across the prototype and the style guide, but only as a hard-coded text-[12.5px] repeated per file, outside the scale, so the component catalog couldn't show it. */
|
|
@@ -437,6 +439,8 @@ export const mrRefTypographySizeCardTitle: number;
|
|
|
437
439
|
/** 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. */
|
|
438
440
|
export const mrRefTypographySizeDense: number;
|
|
439
441
|
export const mrRefTypographySizeSm: number;
|
|
442
|
+
/** 15px. The panel title step, between sm (14px) and base (16px) -- dialog, section and panel titles (the prototype's "Title 15"). Added because 15px titles were already common in both apps (42 uses in insights-studio) but only as a hard-coded text-[15px], outside the scale. Font size only, no line height, like micro, dense and card-title. Named panel-title, not title, so the class (text-panel-title) can't be mixed up with the text-text-title colour. */
|
|
443
|
+
export const mrRefTypographySizePanelTitle: number;
|
|
440
444
|
export const mrRefTypographySizeBase: number;
|
|
441
445
|
export const mrRefTypographySizeMd: number;
|
|
442
446
|
export const mrRefTypographySizeLg: number;
|
|
@@ -500,11 +504,13 @@ export const mrColorAiGradient: string;
|
|
|
500
504
|
export const mrColorScrim: string;
|
|
501
505
|
export const mrTypographyFamilySans: string;
|
|
502
506
|
export const mrTypographyFamilySerif: string;
|
|
507
|
+
export const mrTypographyFontSizeControlCaption: number;
|
|
503
508
|
export const mrTypographyFontSizeMicro: number;
|
|
504
509
|
export const mrTypographyFontSizeXs: number;
|
|
505
510
|
export const mrTypographyFontSizeCardTitle: number;
|
|
506
511
|
export const mrTypographyFontSizeDense: number;
|
|
507
512
|
export const mrTypographyFontSizeSm: number;
|
|
513
|
+
export const mrTypographyFontSizePanelTitle: number;
|
|
508
514
|
export const mrTypographyFontSizeBase: number;
|
|
509
515
|
export const mrTypographyFontSizeMd: number;
|
|
510
516
|
export const mrTypographyFontSizeLg: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -438,11 +438,13 @@ export const mrRefTypographyLineHeightSm = 1.3;
|
|
|
438
438
|
export const mrRefTypographyLineHeightBase = 1.5;
|
|
439
439
|
export const mrRefTypographyLineHeightLg = 1.6;
|
|
440
440
|
export const mrRefTypographyLineHeightXl = 1.8;
|
|
441
|
-
export const
|
|
441
|
+
export const mrRefTypographySizeControlCaption = 0.625; // 10px. The control caption step, below micro (11px) -- the small uppercase caption above a dropdown's value (the prototype's chip and chip trigger). Added so insights-studio can match the prototype, which draws these captions at 10px as a hard-coded text-[10px]. Only for captions on controls: badges and eyebrows stay on micro. Font size only, no line height, like micro, card-title and panel-title.
|
|
442
|
+
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. Badges and eyebrows 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. The 10px caption above a dropdown value is control-caption, not micro.
|
|
442
443
|
export const mrRefTypographySizeXs = 0.75;
|
|
443
444
|
export const mrRefTypographySizeCardTitle = 0.78125; // 12.5px. The card title step, between xs (12px) and dense (13px) -- the title of every card, from dashboard cards (Card's title prop) to rail cards. Added because card titles were already set at 12.5px across the prototype and the style guide, but only as a hard-coded text-[12.5px] repeated per file, outside the scale, so the component catalog couldn't show it.
|
|
444
445
|
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.
|
|
445
446
|
export const mrRefTypographySizeSm = 0.875;
|
|
447
|
+
export const mrRefTypographySizePanelTitle = 0.9375; // 15px. The panel title step, between sm (14px) and base (16px) -- dialog, section and panel titles (the prototype's "Title 15"). Added because 15px titles were already common in both apps (42 uses in insights-studio) but only as a hard-coded text-[15px], outside the scale. Font size only, no line height, like micro, dense and card-title. Named panel-title, not title, so the class (text-panel-title) can't be mixed up with the text-text-title colour.
|
|
446
448
|
export const mrRefTypographySizeBase = 1;
|
|
447
449
|
export const mrRefTypographySizeMd = 1.125;
|
|
448
450
|
export const mrRefTypographySizeLg = 1.25;
|
|
@@ -514,11 +516,13 @@ export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
|
|
|
514
516
|
export const mrTypographyFamilySans =
|
|
515
517
|
"'Instrument Sans', system-ui, sans-serif";
|
|
516
518
|
export const mrTypographyFamilySerif = "'Instrument Serif', Georgia, serif";
|
|
519
|
+
export const mrTypographyFontSizeControlCaption = 0.625;
|
|
517
520
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
518
521
|
export const mrTypographyFontSizeXs = 0.75;
|
|
519
522
|
export const mrTypographyFontSizeCardTitle = 0.78125;
|
|
520
523
|
export const mrTypographyFontSizeDense = 0.8125;
|
|
521
524
|
export const mrTypographyFontSizeSm = 0.875;
|
|
525
|
+
export const mrTypographyFontSizePanelTitle = 0.9375;
|
|
522
526
|
export const mrTypographyFontSizeBase = 1;
|
|
523
527
|
export const mrTypographyFontSizeMd = 1.125;
|
|
524
528
|
export const mrTypographyFontSizeLg = 1.25;
|
package/dist/tailwind/preset.cjs
CHANGED
|
@@ -188,11 +188,13 @@ const preset = {
|
|
|
188
188
|
"serif": "var(--mr-typography-family-serif)"
|
|
189
189
|
},
|
|
190
190
|
"fontSize": {
|
|
191
|
+
"control-caption": "var(--mr-typography-font-size-control-caption)",
|
|
191
192
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
192
193
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
193
194
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
|
194
195
|
"dense": "var(--mr-typography-font-size-dense)",
|
|
195
196
|
"sm": "var(--mr-typography-font-size-sm)",
|
|
197
|
+
"panel-title": "var(--mr-typography-font-size-panel-title)",
|
|
196
198
|
"base": "var(--mr-typography-font-size-base)",
|
|
197
199
|
"md": "var(--mr-typography-font-size-md)",
|
|
198
200
|
"lg": "var(--mr-typography-font-size-lg)",
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -188,11 +188,13 @@ const preset = {
|
|
|
188
188
|
"serif": "var(--mr-typography-family-serif)"
|
|
189
189
|
},
|
|
190
190
|
"fontSize": {
|
|
191
|
+
"control-caption": "var(--mr-typography-font-size-control-caption)",
|
|
191
192
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
192
193
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
193
194
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
|
194
195
|
"dense": "var(--mr-typography-font-size-dense)",
|
|
195
196
|
"sm": "var(--mr-typography-font-size-sm)",
|
|
197
|
+
"panel-title": "var(--mr-typography-font-size-panel-title)",
|
|
196
198
|
"base": "var(--mr-typography-font-size-base)",
|
|
197
199
|
"md": "var(--mr-typography-font-size-md)",
|
|
198
200
|
"lg": "var(--mr-typography-font-size-lg)",
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -47,11 +47,13 @@
|
|
|
47
47
|
--color-scrim: var(--mr-color-scrim);
|
|
48
48
|
--font-sans: var(--mr-typography-family-sans);
|
|
49
49
|
--font-serif: var(--mr-typography-family-serif);
|
|
50
|
+
--text-control-caption: var(--mr-typography-font-size-control-caption);
|
|
50
51
|
--text-micro: var(--mr-typography-font-size-micro);
|
|
51
52
|
--text-xs: var(--mr-typography-font-size-xs);
|
|
52
53
|
--text-card-title: var(--mr-typography-font-size-card-title);
|
|
53
54
|
--text-dense: var(--mr-typography-font-size-dense);
|
|
54
55
|
--text-sm: var(--mr-typography-font-size-sm);
|
|
56
|
+
--text-panel-title: var(--mr-typography-font-size-panel-title);
|
|
55
57
|
--text-base: var(--mr-typography-font-size-base);
|
|
56
58
|
--text-md: var(--mr-typography-font-size-md);
|
|
57
59
|
--text-lg: var(--mr-typography-font-size-lg);
|