@mediaradar/design-tokens 3.4.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 +1 -0
- package/dist/css/ref.css +1 -0
- package/dist/css/sys.css +1 -0
- package/dist/js/tokens.d.ts +4 -1
- package/dist/js/tokens.js +3 -1
- package/dist/tailwind/preset.cjs +1 -0
- package/dist/tailwind/preset.js +1 -0
- package/dist/tailwind/theme.css +1 -0
- package/package.json +1 -1
package/dist/DESIGN.md
CHANGED
|
@@ -212,6 +212,7 @@ Key is the suffix for any Tailwind color utility: `bg-{key}`, `text-{key}`, `bor
|
|
|
212
212
|
| Key | Value |
|
|
213
213
|
| --- | --- |
|
|
214
214
|
| control-caption | 0.625rem |
|
|
215
|
+
| badge | 0.625rem |
|
|
215
216
|
| micro | 0.6875rem |
|
|
216
217
|
| xs | 0.75rem |
|
|
217
218
|
| card-title | 0.7813rem |
|
package/dist/css/ref.css
CHANGED
|
@@ -344,6 +344,7 @@
|
|
|
344
344
|
--mr-ref-typography-line-height-lg: 1.6;
|
|
345
345
|
--mr-ref-typography-line-height-xl: 1.8;
|
|
346
346
|
--mr-ref-typography-size-control-caption: 0.625rem;
|
|
347
|
+
--mr-ref-typography-size-badge: 0.625rem;
|
|
347
348
|
--mr-ref-typography-size-micro: 0.6875rem;
|
|
348
349
|
--mr-ref-typography-size-xs: 0.75rem;
|
|
349
350
|
--mr-ref-typography-size-card-title: 0.78125rem;
|
package/dist/css/sys.css
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
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
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);
|
|
40
41
|
--mr-typography-font-size-micro: var(--mr-ref-typography-size-micro);
|
|
41
42
|
--mr-typography-font-size-xs: var(--mr-ref-typography-size-xs);
|
|
42
43
|
--mr-typography-font-size-card-title: var(--mr-ref-typography-size-card-title);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -431,7 +431,9 @@ 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
433
|
export const mrRefTypographySizeControlCaption: number;
|
|
434
|
-
/**
|
|
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. */
|
|
435
437
|
export const mrRefTypographySizeMicro: number;
|
|
436
438
|
export const mrRefTypographySizeXs: number;
|
|
437
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. */
|
|
@@ -505,6 +507,7 @@ export const mrColorScrim: string;
|
|
|
505
507
|
export const mrTypographyFamilySans: string;
|
|
506
508
|
export const mrTypographyFamilySerif: string;
|
|
507
509
|
export const mrTypographyFontSizeControlCaption: number;
|
|
510
|
+
export const mrTypographyFontSizeBadge: number;
|
|
508
511
|
export const mrTypographyFontSizeMicro: number;
|
|
509
512
|
export const mrTypographyFontSizeXs: number;
|
|
510
513
|
export const mrTypographyFontSizeCardTitle: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -439,7 +439,8 @@ export const mrRefTypographyLineHeightBase = 1.5;
|
|
|
439
439
|
export const mrRefTypographyLineHeightLg = 1.6;
|
|
440
440
|
export const mrRefTypographyLineHeightXl = 1.8;
|
|
441
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
|
|
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.
|
|
443
444
|
export const mrRefTypographySizeXs = 0.75;
|
|
444
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.
|
|
445
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.
|
|
@@ -517,6 +518,7 @@ export const mrTypographyFamilySans =
|
|
|
517
518
|
"'Instrument Sans', system-ui, sans-serif";
|
|
518
519
|
export const mrTypographyFamilySerif = "'Instrument Serif', Georgia, serif";
|
|
519
520
|
export const mrTypographyFontSizeControlCaption = 0.625;
|
|
521
|
+
export const mrTypographyFontSizeBadge = 0.625;
|
|
520
522
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
521
523
|
export const mrTypographyFontSizeXs = 0.75;
|
|
522
524
|
export const mrTypographyFontSizeCardTitle = 0.78125;
|
package/dist/tailwind/preset.cjs
CHANGED
|
@@ -189,6 +189,7 @@ const preset = {
|
|
|
189
189
|
},
|
|
190
190
|
"fontSize": {
|
|
191
191
|
"control-caption": "var(--mr-typography-font-size-control-caption)",
|
|
192
|
+
"badge": "var(--mr-typography-font-size-badge)",
|
|
192
193
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
193
194
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
194
195
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -189,6 +189,7 @@ const preset = {
|
|
|
189
189
|
},
|
|
190
190
|
"fontSize": {
|
|
191
191
|
"control-caption": "var(--mr-typography-font-size-control-caption)",
|
|
192
|
+
"badge": "var(--mr-typography-font-size-badge)",
|
|
192
193
|
"micro": "var(--mr-typography-font-size-micro)",
|
|
193
194
|
"xs": "var(--mr-typography-font-size-xs)",
|
|
194
195
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
--font-sans: var(--mr-typography-family-sans);
|
|
49
49
|
--font-serif: var(--mr-typography-family-serif);
|
|
50
50
|
--text-control-caption: var(--mr-typography-font-size-control-caption);
|
|
51
|
+
--text-badge: var(--mr-typography-font-size-badge);
|
|
51
52
|
--text-micro: var(--mr-typography-font-size-micro);
|
|
52
53
|
--text-xs: var(--mr-typography-font-size-xs);
|
|
53
54
|
--text-card-title: var(--mr-typography-font-size-card-title);
|