@conductor-by-89soone/tokens 0.4.0 → 0.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/cli.js CHANGED
@@ -484,6 +484,10 @@ var HEADING_MAX_PX = FONT_SIZE_PX.xl * 1.6;
484
484
  var H2_PX = Math.round(FONT_SIZE_PX.xl * 1.3);
485
485
  var H3_PX = Math.round(FONT_SIZE_PX.xl * 1.1);
486
486
  var HEADING_LINE_HEIGHT_RATIO = 1.3;
487
+ var DISPLAY_MIN_PX = Math.round(FONT_SIZE_PX.xl * 1.8);
488
+ var DISPLAY_MAX_PX = Math.round(FONT_SIZE_PX.xl * 3.2);
489
+ var LEAD_PX = Math.round(FONT_SIZE_PX.xl * 0.9);
490
+ var LEAD_LINE_HEIGHT_RATIO = 1.5;
487
491
  var page = [
488
492
  component(
489
493
  "page.headingSize",
@@ -515,6 +519,26 @@ var page = [
515
519
  value(`${roundHalfUp(H3_PX * HEADING_LINE_HEIGHT_RATIO)}px`),
516
520
  "Line height paired with `page.subHeadingSize`, at the 1.30 heading ratio."
517
521
  ),
522
+ component(
523
+ "page.displaySize",
524
+ value(`clamp(${DISPLAY_MIN_PX}px, 5.5vw, ${DISPLAY_MAX_PX}px)`),
525
+ "Display heading for a landing hero, derived from `font.size.xl` (\xD7 1.8 and \xD7 3.2). One step above `page.headingSize`; never a body size (CR-042)."
526
+ ),
527
+ component(
528
+ "page.displayLineHeight",
529
+ value("1.04"),
530
+ "Unitless like `page.headingLineHeight`: `clamp()` makes a px value impossible here."
531
+ ),
532
+ component(
533
+ "page.leadSize",
534
+ value(`${LEAD_PX}px`),
535
+ "Lead paragraph under a page or hero heading. `font.size.xl` \xD7 0.9; sits between `font.size.lg` and `font.size.xl` (CR-042)."
536
+ ),
537
+ component(
538
+ "page.leadLineHeight",
539
+ value(`${roundHalfUp(LEAD_PX * LEAD_LINE_HEIGHT_RATIO)}px`),
540
+ "Line height paired with `page.leadSize`, at the 1.50 body ratio."
541
+ ),
518
542
  component("page.stackGap", ref("space.6"), "Gap between page sections."),
519
543
  component("page.stackGapCompact", ref("space.5"), "Section gap below `breakpoint.sm`."),
520
544
  component("page.contentStackGap", ref("space.5"), "Gap inside a content stack."),
@@ -705,6 +705,10 @@ var HEADING_MAX_PX = FONT_SIZE_PX.xl * 1.6;
705
705
  var H2_PX = Math.round(FONT_SIZE_PX.xl * 1.3);
706
706
  var H3_PX = Math.round(FONT_SIZE_PX.xl * 1.1);
707
707
  var HEADING_LINE_HEIGHT_RATIO = 1.3;
708
+ var DISPLAY_MIN_PX = Math.round(FONT_SIZE_PX.xl * 1.8);
709
+ var DISPLAY_MAX_PX = Math.round(FONT_SIZE_PX.xl * 3.2);
710
+ var LEAD_PX = Math.round(FONT_SIZE_PX.xl * 0.9);
711
+ var LEAD_LINE_HEIGHT_RATIO = 1.5;
708
712
  var page = [
709
713
  component(
710
714
  "page.headingSize",
@@ -736,6 +740,26 @@ var page = [
736
740
  value(`${roundHalfUp(H3_PX * HEADING_LINE_HEIGHT_RATIO)}px`),
737
741
  "Line height paired with `page.subHeadingSize`, at the 1.30 heading ratio."
738
742
  ),
743
+ component(
744
+ "page.displaySize",
745
+ value(`clamp(${DISPLAY_MIN_PX}px, 5.5vw, ${DISPLAY_MAX_PX}px)`),
746
+ "Display heading for a landing hero, derived from `font.size.xl` (\xD7 1.8 and \xD7 3.2). One step above `page.headingSize`; never a body size (CR-042)."
747
+ ),
748
+ component(
749
+ "page.displayLineHeight",
750
+ value("1.04"),
751
+ "Unitless like `page.headingLineHeight`: `clamp()` makes a px value impossible here."
752
+ ),
753
+ component(
754
+ "page.leadSize",
755
+ value(`${LEAD_PX}px`),
756
+ "Lead paragraph under a page or hero heading. `font.size.xl` \xD7 0.9; sits between `font.size.lg` and `font.size.xl` (CR-042)."
757
+ ),
758
+ component(
759
+ "page.leadLineHeight",
760
+ value(`${roundHalfUp(LEAD_PX * LEAD_LINE_HEIGHT_RATIO)}px`),
761
+ "Line height paired with `page.leadSize`, at the 1.50 body ratio."
762
+ ),
739
763
  component("page.stackGap", ref("space.6"), "Gap between page sections."),
740
764
  component("page.stackGapCompact", ref("space.5"), "Section gap below `breakpoint.sm`."),
741
765
  component("page.contentStackGap", ref("space.5"), "Gap inside a content stack."),
@@ -14,7 +14,7 @@
14
14
  "checks": 232,
15
15
  "passed": 232,
16
16
  "failed": 0,
17
- "excludedTokens": 232,
17
+ "excludedTokens": 236,
18
18
  "forbiddenPairs": 2
19
19
  },
20
20
  "results": [
@@ -4031,6 +4031,26 @@
4031
4031
  "usage": "decorative",
4032
4032
  "reason": "Line height paired with `page.subHeadingSize`, at the 1.30 heading ratio."
4033
4033
  },
4034
+ {
4035
+ "key": "page.displaySize",
4036
+ "usage": "decorative",
4037
+ "reason": "Display heading for a landing hero, derived from `font.size.xl` (× 1.8 and × 3.2). One step above `page.headingSize`; never a body size (CR-042)."
4038
+ },
4039
+ {
4040
+ "key": "page.displayLineHeight",
4041
+ "usage": "decorative",
4042
+ "reason": "Unitless like `page.headingLineHeight`: `clamp()` makes a px value impossible here."
4043
+ },
4044
+ {
4045
+ "key": "page.leadSize",
4046
+ "usage": "decorative",
4047
+ "reason": "Lead paragraph under a page or hero heading. `font.size.xl` × 0.9; sits between `font.size.lg` and `font.size.xl` (CR-042)."
4048
+ },
4049
+ {
4050
+ "key": "page.leadLineHeight",
4051
+ "usage": "decorative",
4052
+ "reason": "Line height paired with `page.leadSize`, at the 1.50 body ratio."
4053
+ },
4034
4054
  {
4035
4055
  "key": "page.stackGap",
4036
4056
  "usage": "decorative",
package/dist/index.js CHANGED
@@ -380,6 +380,10 @@ var tokens = {
380
380
  sectionHeadingLineHeight: "var(--cdt-page-section-heading-line-height)",
381
381
  subHeadingSize: "var(--cdt-page-sub-heading-size)",
382
382
  subHeadingLineHeight: "var(--cdt-page-sub-heading-line-height)",
383
+ displaySize: "var(--cdt-page-display-size)",
384
+ displayLineHeight: "var(--cdt-page-display-line-height)",
385
+ leadSize: "var(--cdt-page-lead-size)",
386
+ leadLineHeight: "var(--cdt-page-lead-line-height)",
383
387
  stackGap: "var(--cdt-page-stack-gap)",
384
388
  stackGapCompact: "var(--cdt-page-stack-gap-compact)",
385
389
  contentStackGap: "var(--cdt-page-content-stack-gap)",
package/dist/tokens.css CHANGED
@@ -310,6 +310,10 @@
310
310
  --cdt-page-section-heading-line-height: 34px;
311
311
  --cdt-page-sub-heading-size: 22px;
312
312
  --cdt-page-sub-heading-line-height: 29px;
313
+ --cdt-page-display-size: clamp(36px, 5.5vw, 64px);
314
+ --cdt-page-display-line-height: 1.04;
315
+ --cdt-page-lead-size: 18px;
316
+ --cdt-page-lead-line-height: 27px;
313
317
  --cdt-page-stack-gap: 32px;
314
318
  --cdt-page-stack-gap-compact: 24px;
315
319
  --cdt-page-content-stack-gap: 24px;
@@ -659,6 +663,10 @@
659
663
  --cdt-page-section-heading-line-height: 34px;
660
664
  --cdt-page-sub-heading-size: 22px;
661
665
  --cdt-page-sub-heading-line-height: 29px;
666
+ --cdt-page-display-size: clamp(36px, 5.5vw, 64px);
667
+ --cdt-page-display-line-height: 1.04;
668
+ --cdt-page-lead-size: 18px;
669
+ --cdt-page-lead-line-height: 27px;
662
670
  --cdt-page-stack-gap: 32px;
663
671
  --cdt-page-stack-gap-compact: 24px;
664
672
  --cdt-page-content-stack-gap: 24px;
@@ -1009,6 +1017,10 @@
1009
1017
  --cdt-page-section-heading-line-height: 34px;
1010
1018
  --cdt-page-sub-heading-size: 22px;
1011
1019
  --cdt-page-sub-heading-line-height: 29px;
1020
+ --cdt-page-display-size: clamp(36px, 5.5vw, 64px);
1021
+ --cdt-page-display-line-height: 1.04;
1022
+ --cdt-page-lead-size: 18px;
1023
+ --cdt-page-lead-line-height: 27px;
1012
1024
  --cdt-page-stack-gap: 32px;
1013
1025
  --cdt-page-stack-gap-compact: 24px;
1014
1026
  --cdt-page-content-stack-gap: 24px;
package/dist/tokens.d.ts CHANGED
@@ -382,6 +382,10 @@ declare const tokens: {
382
382
  readonly sectionHeadingLineHeight: "var(--cdt-page-section-heading-line-height)";
383
383
  readonly subHeadingSize: "var(--cdt-page-sub-heading-size)";
384
384
  readonly subHeadingLineHeight: "var(--cdt-page-sub-heading-line-height)";
385
+ readonly displaySize: "var(--cdt-page-display-size)";
386
+ readonly displayLineHeight: "var(--cdt-page-display-line-height)";
387
+ readonly leadSize: "var(--cdt-page-lead-size)";
388
+ readonly leadLineHeight: "var(--cdt-page-lead-line-height)";
385
389
  readonly stackGap: "var(--cdt-page-stack-gap)";
386
390
  readonly stackGapCompact: "var(--cdt-page-stack-gap-compact)";
387
391
  readonly contentStackGap: "var(--cdt-page-content-stack-gap)";
package/dist/tokens.js CHANGED
@@ -376,6 +376,10 @@ var tokens = {
376
376
  sectionHeadingLineHeight: "var(--cdt-page-section-heading-line-height)",
377
377
  subHeadingSize: "var(--cdt-page-sub-heading-size)",
378
378
  subHeadingLineHeight: "var(--cdt-page-sub-heading-line-height)",
379
+ displaySize: "var(--cdt-page-display-size)",
380
+ displayLineHeight: "var(--cdt-page-display-line-height)",
381
+ leadSize: "var(--cdt-page-lead-size)",
382
+ leadLineHeight: "var(--cdt-page-lead-line-height)",
379
383
  stackGap: "var(--cdt-page-stack-gap)",
380
384
  stackGapCompact: "var(--cdt-page-stack-gap-compact)",
381
385
  contentStackGap: "var(--cdt-page-content-stack-gap)",
package/dist/tokens.json CHANGED
@@ -3125,6 +3125,50 @@
3125
3125
  "light": "29px"
3126
3126
  }
3127
3127
  },
3128
+ {
3129
+ "key": "page.displaySize",
3130
+ "cssName": "--cdt-page-display-size",
3131
+ "tier": "component",
3132
+ "usage": "decorative",
3133
+ "description": "Display heading for a landing hero, derived from `font.size.xl` (× 1.8 and × 3.2). One step above `page.headingSize`; never a body size (CR-042).",
3134
+ "values": {
3135
+ "dark": "clamp(36px, 5.5vw, 64px)",
3136
+ "light": "clamp(36px, 5.5vw, 64px)"
3137
+ }
3138
+ },
3139
+ {
3140
+ "key": "page.displayLineHeight",
3141
+ "cssName": "--cdt-page-display-line-height",
3142
+ "tier": "component",
3143
+ "usage": "decorative",
3144
+ "description": "Unitless like `page.headingLineHeight`: `clamp()` makes a px value impossible here.",
3145
+ "values": {
3146
+ "dark": "1.04",
3147
+ "light": "1.04"
3148
+ }
3149
+ },
3150
+ {
3151
+ "key": "page.leadSize",
3152
+ "cssName": "--cdt-page-lead-size",
3153
+ "tier": "component",
3154
+ "usage": "decorative",
3155
+ "description": "Lead paragraph under a page or hero heading. `font.size.xl` × 0.9; sits between `font.size.lg` and `font.size.xl` (CR-042).",
3156
+ "values": {
3157
+ "dark": "18px",
3158
+ "light": "18px"
3159
+ }
3160
+ },
3161
+ {
3162
+ "key": "page.leadLineHeight",
3163
+ "cssName": "--cdt-page-lead-line-height",
3164
+ "tier": "component",
3165
+ "usage": "decorative",
3166
+ "description": "Line height paired with `page.leadSize`, at the 1.50 body ratio.",
3167
+ "values": {
3168
+ "dark": "27px",
3169
+ "light": "27px"
3170
+ }
3171
+ },
3128
3172
  {
3129
3173
  "key": "page.stackGap",
3130
3174
  "cssName": "--cdt-page-stack-gap",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conductor-by-89soone/tokens",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Theme-aware design tokens and validation CLIs for Conductor.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://89sooner.github.io/design-system/",