@mediaradar/design-tokens 3.3.0 → 3.5.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,6 +211,8 @@ 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 |
|
|
215
|
+
| badge | 0.625rem |
|
|
214
216
|
| micro | 0.6875rem |
|
|
215
217
|
| xs | 0.75rem |
|
|
216
218
|
| card-title | 0.7813rem |
|
package/dist/css/ref.css
CHANGED
|
@@ -343,6 +343,8 @@
|
|
|
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;
|
|
347
|
+
--mr-ref-typography-size-badge: 0.625rem;
|
|
346
348
|
--mr-ref-typography-size-micro: 0.6875rem;
|
|
347
349
|
--mr-ref-typography-size-xs: 0.75rem;
|
|
348
350
|
--mr-ref-typography-size-card-title: 0.78125rem;
|
package/dist/css/sys.css
CHANGED
|
@@ -36,6 +36,8 @@
|
|
|
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);
|
|
40
|
+
--mr-typography-font-size-badge: var(--mr-ref-typography-size-badge);
|
|
39
41
|
--mr-typography-font-size-micro: var(--mr-ref-typography-size-micro);
|
|
40
42
|
--mr-typography-font-size-xs: var(--mr-ref-typography-size-xs);
|
|
41
43
|
--mr-typography-font-size-card-title: var(--mr-ref-typography-size-card-title);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -429,7 +429,11 @@ 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
|
+
/** 10px. The badge step -- the text in badges, pills and tags (count pills, NEW, media-type tags). Badges are 10px in the prototype, and insights-studio matches it (decided 2026-11-06), so they don't round up to micro. Same size as control-caption but a separate role, so either can change without the other. Font size only, no line height, like micro and control-caption. */
|
|
435
|
+
export const mrRefTypographySizeBadge: number;
|
|
436
|
+
/** 11px. The annotation step, below xs (12px) -- eyebrow labels and other type that marks up content rather than being content. Badges are 10px (badge), matching the prototype, and the 10px caption above a dropdown value is control-caption. */
|
|
433
437
|
export const mrRefTypographySizeMicro: number;
|
|
434
438
|
export const mrRefTypographySizeXs: number;
|
|
435
439
|
/** 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. */
|
|
@@ -502,6 +506,8 @@ export const mrColorAiGradient: string;
|
|
|
502
506
|
export const mrColorScrim: string;
|
|
503
507
|
export const mrTypographyFamilySans: string;
|
|
504
508
|
export const mrTypographyFamilySerif: string;
|
|
509
|
+
export const mrTypographyFontSizeControlCaption: number;
|
|
510
|
+
export const mrTypographyFontSizeBadge: number;
|
|
505
511
|
export const mrTypographyFontSizeMicro: number;
|
|
506
512
|
export const mrTypographyFontSizeXs: number;
|
|
507
513
|
export const mrTypographyFontSizeCardTitle: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -438,7 +438,9 @@ 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 mrRefTypographySizeBadge = 0.625; // 10px. The badge step -- the text in badges, pills and tags (count pills, NEW, media-type tags). Badges are 10px in the prototype, and insights-studio matches it (decided 2026-11-06), so they don't round up to micro. Same size as control-caption but a separate role, so either can change without the other. Font size only, no line height, like micro and control-caption.
|
|
443
|
+
export const mrRefTypographySizeMicro = 0.6875; // 11px. The annotation step, below xs (12px) -- eyebrow labels and other type that marks up content rather than being content. Badges are 10px (badge), matching the prototype, and the 10px caption above a dropdown value is control-caption.
|
|
442
444
|
export const mrRefTypographySizeXs = 0.75;
|
|
443
445
|
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
446
|
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.
|
|
@@ -515,6 +517,8 @@ export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
|
|
|
515
517
|
export const mrTypographyFamilySans =
|
|
516
518
|
"'Instrument Sans', system-ui, sans-serif";
|
|
517
519
|
export const mrTypographyFamilySerif = "'Instrument Serif', Georgia, serif";
|
|
520
|
+
export const mrTypographyFontSizeControlCaption = 0.625;
|
|
521
|
+
export const mrTypographyFontSizeBadge = 0.625;
|
|
518
522
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
519
523
|
export const mrTypographyFontSizeXs = 0.75;
|
|
520
524
|
export const mrTypographyFontSizeCardTitle = 0.78125;
|
package/dist/tailwind/preset.cjs
CHANGED
|
@@ -188,6 +188,8 @@ 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)",
|
|
192
|
+
"badge": "var(--mr-typography-font-size-badge)",
|
|
191
193
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
192
194
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
193
195
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -188,6 +188,8 @@ 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)",
|
|
192
|
+
"badge": "var(--mr-typography-font-size-badge)",
|
|
191
193
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
192
194
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
193
195
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -47,6 +47,8 @@
|
|
|
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);
|
|
51
|
+
--text-badge: var(--mr-typography-font-size-badge);
|
|
50
52
|
--text-micro: var(--mr-typography-font-size-micro);
|
|
51
53
|
--text-xs: var(--mr-typography-font-size-xs);
|
|
52
54
|
--text-card-title: var(--mr-typography-font-size-card-title);
|