@mediaradar/design-tokens 3.3.0 → 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 +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
package/dist/css/ref.css
CHANGED
|
@@ -343,6 +343,7 @@
|
|
|
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;
|
package/dist/css/sys.css
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
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);
|
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. */
|
|
@@ -502,6 +504,7 @@ export const mrColorAiGradient: string;
|
|
|
502
504
|
export const mrColorScrim: string;
|
|
503
505
|
export const mrTypographyFamilySans: string;
|
|
504
506
|
export const mrTypographyFamilySerif: string;
|
|
507
|
+
export const mrTypographyFontSizeControlCaption: number;
|
|
505
508
|
export const mrTypographyFontSizeMicro: number;
|
|
506
509
|
export const mrTypographyFontSizeXs: number;
|
|
507
510
|
export const mrTypographyFontSizeCardTitle: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -438,7 +438,8 @@ 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.
|
|
@@ -515,6 +516,7 @@ export const mrColorScrim = "rgba(20, 17, 13, 0.55)";
|
|
|
515
516
|
export const mrTypographyFamilySans =
|
|
516
517
|
"'Instrument Sans', system-ui, sans-serif";
|
|
517
518
|
export const mrTypographyFamilySerif = "'Instrument Serif', Georgia, serif";
|
|
519
|
+
export const mrTypographyFontSizeControlCaption = 0.625;
|
|
518
520
|
export const mrTypographyFontSizeMicro = 0.6875;
|
|
519
521
|
export const mrTypographyFontSizeXs = 0.75;
|
|
520
522
|
export const mrTypographyFontSizeCardTitle = 0.78125;
|
package/dist/tailwind/preset.cjs
CHANGED
|
@@ -188,6 +188,7 @@ 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)",
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -188,6 +188,7 @@ 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)",
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
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);
|