@mediaradar/design-tokens 3.2.1 → 3.3.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 +3 -0
- package/dist/js/tokens.js +2 -0
- 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
|
@@ -216,6 +216,7 @@ Key is the suffix for any Tailwind color utility: `bg-{key}`, `text-{key}`, `bor
|
|
|
216
216
|
| card-title | 0.7813rem |
|
|
217
217
|
| dense | 0.8125rem |
|
|
218
218
|
| sm | 0.875rem |
|
|
219
|
+
| panel-title | 0.9375rem |
|
|
219
220
|
| base | 1rem |
|
|
220
221
|
| md | 1.125rem |
|
|
221
222
|
| lg | 1.25rem |
|
package/dist/css/ref.css
CHANGED
|
@@ -348,6 +348,7 @@
|
|
|
348
348
|
--mr-ref-typography-size-card-title: 0.78125rem;
|
|
349
349
|
--mr-ref-typography-size-dense: 0.8125rem;
|
|
350
350
|
--mr-ref-typography-size-sm: 0.875rem;
|
|
351
|
+
--mr-ref-typography-size-panel-title: 0.9375rem;
|
|
351
352
|
--mr-ref-typography-size-base: 1rem;
|
|
352
353
|
--mr-ref-typography-size-md: 1.125rem;
|
|
353
354
|
--mr-ref-typography-size-lg: 1.25rem;
|
package/dist/css/sys.css
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
--mr-typography-font-size-card-title: var(--mr-ref-typography-size-card-title);
|
|
42
42
|
--mr-typography-font-size-dense: var(--mr-ref-typography-size-dense);
|
|
43
43
|
--mr-typography-font-size-sm: var(--mr-ref-typography-size-sm);
|
|
44
|
+
--mr-typography-font-size-panel-title: var(--mr-ref-typography-size-panel-title);
|
|
44
45
|
--mr-typography-font-size-base: var(--mr-ref-typography-size-base);
|
|
45
46
|
--mr-typography-font-size-md: var(--mr-ref-typography-size-md);
|
|
46
47
|
--mr-typography-font-size-lg: var(--mr-ref-typography-size-lg);
|
package/dist/js/tokens.d.ts
CHANGED
|
@@ -437,6 +437,8 @@ export const mrRefTypographySizeCardTitle: number;
|
|
|
437
437
|
/** 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
438
|
export const mrRefTypographySizeDense: number;
|
|
439
439
|
export const mrRefTypographySizeSm: number;
|
|
440
|
+
/** 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. */
|
|
441
|
+
export const mrRefTypographySizePanelTitle: number;
|
|
440
442
|
export const mrRefTypographySizeBase: number;
|
|
441
443
|
export const mrRefTypographySizeMd: number;
|
|
442
444
|
export const mrRefTypographySizeLg: number;
|
|
@@ -505,6 +507,7 @@ export const mrTypographyFontSizeXs: number;
|
|
|
505
507
|
export const mrTypographyFontSizeCardTitle: number;
|
|
506
508
|
export const mrTypographyFontSizeDense: number;
|
|
507
509
|
export const mrTypographyFontSizeSm: number;
|
|
510
|
+
export const mrTypographyFontSizePanelTitle: number;
|
|
508
511
|
export const mrTypographyFontSizeBase: number;
|
|
509
512
|
export const mrTypographyFontSizeMd: number;
|
|
510
513
|
export const mrTypographyFontSizeLg: number;
|
package/dist/js/tokens.js
CHANGED
|
@@ -443,6 +443,7 @@ export const mrRefTypographySizeXs = 0.75;
|
|
|
443
443
|
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
444
|
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
445
|
export const mrRefTypographySizeSm = 0.875;
|
|
446
|
+
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
447
|
export const mrRefTypographySizeBase = 1;
|
|
447
448
|
export const mrRefTypographySizeMd = 1.125;
|
|
448
449
|
export const mrRefTypographySizeLg = 1.25;
|
|
@@ -519,6 +520,7 @@ export const mrTypographyFontSizeXs = 0.75;
|
|
|
519
520
|
export const mrTypographyFontSizeCardTitle = 0.78125;
|
|
520
521
|
export const mrTypographyFontSizeDense = 0.8125;
|
|
521
522
|
export const mrTypographyFontSizeSm = 0.875;
|
|
523
|
+
export const mrTypographyFontSizePanelTitle = 0.9375;
|
|
522
524
|
export const mrTypographyFontSizeBase = 1;
|
|
523
525
|
export const mrTypographyFontSizeMd = 1.125;
|
|
524
526
|
export const mrTypographyFontSizeLg = 1.25;
|
package/dist/tailwind/preset.cjs
CHANGED
|
@@ -193,6 +193,7 @@ const preset = {
|
|
|
193
193
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
|
194
194
|
"dense": "var(--mr-typography-font-size-dense)",
|
|
195
195
|
"sm": "var(--mr-typography-font-size-sm)",
|
|
196
|
+
"panel-title": "var(--mr-typography-font-size-panel-title)",
|
|
196
197
|
"base": "var(--mr-typography-font-size-base)",
|
|
197
198
|
"md": "var(--mr-typography-font-size-md)",
|
|
198
199
|
"lg": "var(--mr-typography-font-size-lg)",
|
package/dist/tailwind/preset.js
CHANGED
|
@@ -193,6 +193,7 @@ const preset = {
|
|
|
193
193
|
"card-title": "var(--mr-typography-font-size-card-title)",
|
|
194
194
|
"dense": "var(--mr-typography-font-size-dense)",
|
|
195
195
|
"sm": "var(--mr-typography-font-size-sm)",
|
|
196
|
+
"panel-title": "var(--mr-typography-font-size-panel-title)",
|
|
196
197
|
"base": "var(--mr-typography-font-size-base)",
|
|
197
198
|
"md": "var(--mr-typography-font-size-md)",
|
|
198
199
|
"lg": "var(--mr-typography-font-size-lg)",
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
--text-card-title: var(--mr-typography-font-size-card-title);
|
|
53
53
|
--text-dense: var(--mr-typography-font-size-dense);
|
|
54
54
|
--text-sm: var(--mr-typography-font-size-sm);
|
|
55
|
+
--text-panel-title: var(--mr-typography-font-size-panel-title);
|
|
55
56
|
--text-base: var(--mr-typography-font-size-base);
|
|
56
57
|
--text-md: var(--mr-typography-font-size-md);
|
|
57
58
|
--text-lg: var(--mr-typography-font-size-lg);
|