@windstream/react-shared-components 0.0.80 → 0.0.81

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.
Files changed (134) hide show
  1. package/README.md +629 -629
  2. package/dist/core.d.ts +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/styles.css +1 -1
  6. package/package.json +175 -175
  7. package/src/components/accordion/Accordion.stories.tsx +230 -230
  8. package/src/components/accordion/types.ts +10 -10
  9. package/src/components/alert-card/AlertCard.stories.tsx +171 -171
  10. package/src/components/alert-card/index.tsx +32 -32
  11. package/src/components/alert-card/types.ts +9 -9
  12. package/src/components/brand-button/BrandButton.stories.tsx +223 -223
  13. package/src/components/brand-button/helpers.ts +35 -35
  14. package/src/components/brand-button/index.tsx +115 -115
  15. package/src/components/brand-button/types.ts +37 -37
  16. package/src/components/button/Button.stories.tsx +108 -108
  17. package/src/components/button/index.tsx +27 -27
  18. package/src/components/button/types.ts +14 -14
  19. package/src/components/call-button/CallButton.stories.tsx +324 -324
  20. package/src/components/call-button/index.tsx +86 -86
  21. package/src/components/call-button/types.ts +11 -11
  22. package/src/components/checkbox/Checkbox.stories.tsx +247 -247
  23. package/src/components/checkbox/index.tsx +197 -197
  24. package/src/components/checkbox/types.ts +27 -27
  25. package/src/components/checklist/Checklist.stories.tsx +150 -150
  26. package/src/components/collapse/Collapse.stories.tsx +255 -255
  27. package/src/components/collapse/index.tsx +46 -46
  28. package/src/components/collapse/types.ts +6 -6
  29. package/src/components/divider/Divider.stories.tsx +205 -205
  30. package/src/components/divider/index.tsx +22 -22
  31. package/src/components/divider/type.ts +3 -3
  32. package/src/components/image/Image.stories.tsx +113 -113
  33. package/src/components/image/index.tsx +25 -25
  34. package/src/components/image/types.ts +40 -40
  35. package/src/components/input/Input.stories.tsx +325 -325
  36. package/src/components/input/index.tsx +177 -177
  37. package/src/components/input/types.ts +37 -37
  38. package/src/components/link/Link.stories.tsx +163 -163
  39. package/src/components/link/types.ts +25 -25
  40. package/src/components/list/List.stories.tsx +272 -272
  41. package/src/components/list/index.tsx +88 -88
  42. package/src/components/list/list-item/index.tsx +38 -38
  43. package/src/components/list/list-item/types.ts +13 -13
  44. package/src/components/list/types.ts +29 -29
  45. package/src/components/material-icon/MaterialIcon.stories.tsx +330 -330
  46. package/src/components/material-icon/constants.ts +96 -96
  47. package/src/components/material-icon/index.tsx +44 -44
  48. package/src/components/material-icon/types.ts +31 -31
  49. package/src/components/modal/Modal.stories.tsx +171 -171
  50. package/src/components/modal/index.tsx +164 -164
  51. package/src/components/modal/types.ts +24 -24
  52. package/src/components/next-image/index.tsx +32 -32
  53. package/src/components/next-image/types.ts +1 -1
  54. package/src/components/radio-button/RadioButton.stories.tsx +307 -307
  55. package/src/components/radio-button/index.tsx +75 -75
  56. package/src/components/radio-button/types.ts +21 -21
  57. package/src/components/see-more/SeeMore.stories.tsx +181 -181
  58. package/src/components/see-more/index.tsx +44 -44
  59. package/src/components/see-more/types.ts +4 -4
  60. package/src/components/select/Select.stories.tsx +411 -411
  61. package/src/components/select/index.tsx +150 -150
  62. package/src/components/select/types.ts +35 -35
  63. package/src/components/select-plan-button/SelectPlanButton.stories.tsx +184 -184
  64. package/src/components/select-plan-button/index.tsx +31 -31
  65. package/src/components/select-plan-button/types.ts +5 -5
  66. package/src/components/skeleton/Skeleton.stories.tsx +179 -179
  67. package/src/components/skeleton/index.tsx +61 -61
  68. package/src/components/skeleton/types.ts +4 -4
  69. package/src/components/spinner/Spinner.stories.tsx +335 -335
  70. package/src/components/spinner/index.tsx +44 -44
  71. package/src/components/spinner/types.ts +5 -5
  72. package/src/components/text/Text.stories.tsx +321 -321
  73. package/src/components/text/index.tsx +25 -25
  74. package/src/components/text/types.ts +45 -45
  75. package/src/components/tooltip/Tooltip.stories.tsx +219 -219
  76. package/src/components/tooltip/index.tsx +74 -74
  77. package/src/components/tooltip/types.ts +7 -7
  78. package/src/components/view-cart-button/ViewCartButton.stories.tsx +252 -252
  79. package/src/components/view-cart-button/index.tsx +44 -44
  80. package/src/components/view-cart-button/types.ts +5 -5
  81. package/src/contentful/blocks/button/Button.stories.tsx +40 -40
  82. package/src/contentful/blocks/button/index.tsx +85 -85
  83. package/src/contentful/blocks/button/types.ts +26 -26
  84. package/src/contentful/blocks/callout/Callout.stories.tsx +23 -23
  85. package/src/contentful/blocks/callout/index.tsx +66 -66
  86. package/src/contentful/blocks/cards/Cards.stories.tsx +23 -23
  87. package/src/contentful/blocks/cards/index.tsx +13 -13
  88. package/src/contentful/blocks/cards/product-card/index.tsx +199 -199
  89. package/src/contentful/blocks/cards/product-card/types.ts +18 -18
  90. package/src/contentful/blocks/cards/simple-card/index.tsx +77 -77
  91. package/src/contentful/blocks/cards/simple-card/types.ts +31 -31
  92. package/src/contentful/blocks/cards/testimonial-card/index.tsx +88 -88
  93. package/src/contentful/blocks/cards/testimonial-card/types.tsx +12 -12
  94. package/src/contentful/blocks/cards/types.ts +1 -1
  95. package/src/contentful/blocks/carousel/Carousel.stories.tsx +23 -23
  96. package/src/contentful/blocks/carousel/helper.tsx +314 -314
  97. package/src/contentful/blocks/carousel/index.tsx +50 -50
  98. package/src/contentful/blocks/carousel/types.ts +126 -126
  99. package/src/contentful/blocks/cta-callout/CtaCallout.stories.tsx +46 -46
  100. package/src/contentful/blocks/cta-callout/index.tsx +54 -54
  101. package/src/contentful/blocks/cta-callout/types.ts +22 -22
  102. package/src/contentful/blocks/floating-banner/FloatingBanner.stories.tsx +34 -34
  103. package/src/contentful/blocks/floating-banner/types.ts +22 -22
  104. package/src/contentful/blocks/footer/Footer.stories.tsx +30 -30
  105. package/src/contentful/blocks/image-promo-bar/ImagePromoBar.stories.tsx +23 -23
  106. package/src/contentful/blocks/image-promo-bar/types.ts +27 -27
  107. package/src/contentful/blocks/modal/Modal.stories.tsx +23 -23
  108. package/src/contentful/blocks/modal/index.tsx +12 -12
  109. package/src/contentful/blocks/modal/types.ts +1 -1
  110. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +111 -111
  111. package/src/contentful/blocks/navigation/index.tsx +380 -380
  112. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +80 -80
  113. package/src/contentful/blocks/navigation/types.ts +41 -41
  114. package/src/contentful/blocks/primary-hero/PrimaryHero.stories.tsx +23 -23
  115. package/src/contentful/blocks/primary-hero/index.tsx +212 -212
  116. package/src/contentful/blocks/primary-hero/types.ts +30 -30
  117. package/src/contentful/blocks/shape-background-wrapper/ShapeBackgroundWrapper.stories.tsx +26 -26
  118. package/src/contentful/blocks/shape-background-wrapper/index.tsx +124 -124
  119. package/src/contentful/blocks/shape-background-wrapper/types.ts +36 -36
  120. package/src/contentful/blocks/text/Text.stories.tsx +23 -23
  121. package/src/contentful/blocks/text/index.tsx +12 -12
  122. package/src/contentful/blocks/text/types.ts +1 -1
  123. package/src/contentful/index.ts +57 -57
  124. package/src/hooks/use-body-scroll-lock.ts +34 -34
  125. package/src/hooks/use-outside-click.ts +17 -17
  126. package/src/index.ts +96 -96
  127. package/src/next/index.ts +5 -5
  128. package/src/setupTests.ts +46 -46
  129. package/src/stories/DocsTemplate.tsx +24 -24
  130. package/src/styles/globals.css +307 -307
  131. package/src/types/global.d.ts +9 -9
  132. package/src/types/micro-components.ts +80 -80
  133. package/src/utils/index.ts +49 -49
  134. package/tailwind.config.cjs +60 -64
@@ -1,80 +1,80 @@
1
- export interface Asset {
2
- url?: string | null;
3
- title?: string | null;
4
- description?: string | null;
5
- contentType?: string | null;
6
- width?: number | null;
7
- height?: number | null;
8
- }
9
- export interface Button {
10
- anchorId?: string | null;
11
- showButtonAs?: "solid" | "text" | null;
12
- buttonLabel: string; // required in your model
13
- buttonPrefix?: string | null;
14
- href?: string | null;
15
- target?: "_blank" | "_self" | null;
16
- badge?: string | null;
17
- preserveQueryParameters: boolean; // non-null in your model
18
- badgeIcon?: Asset | null;
19
- buttonVariant?: "primary_brand" | "primary_inverse" | "secondary" | null;
20
- buttonIcon?: Asset | null;
21
- buttonIconPosition?: boolean | null; // matches EntryFieldTypes.Boolean in your model
22
- clickToOpen?: "accordion" | "modal" | "tab" | null;
23
- tabmodalNameToOpen?: string | null;
24
- preDefinedFunctionExecution?: "check availability" | null;
25
- }
26
-
27
- export interface ButtonGroup {
28
- __typename: "ComponentButtonGroup";
29
- anchorId?: string | null;
30
- title?: string | null;
31
- itemsCollection?: {
32
- items: Button[];
33
- };
34
- }
35
- export interface Card {
36
- anchorId?: string;
37
- title?: string;
38
- body?: {
39
- json: any; // Contentful Rich Text
40
- };
41
- image?: Asset;
42
- imageLink?: string;
43
- imageAlignment?: "Left" | "Right" | "Center" | string;
44
- imageView?: "Full" | "Inset" | string;
45
- cta?: Button;
46
- ctaAlignment?: "Left" | "Right" | "Center" | string;
47
- textColor?: string;
48
- backgroundColor?: string;
49
- showBackgroundImage?: boolean;
50
- pinwheelColor?: "blue" | "green" | "navy" | "purple" | "white" | "yellow";
51
- iconToRichTextAlignment?: string;
52
- phoneNumber?: string;
53
- workingHours?: string;
54
- titleLocation?: "Top" | "Bottom" | string;
55
- ctaBottom?: Button;
56
- ctaAlignmentBottom?: "Left" | "Right" | "Center" | string;
57
- imageFloatingType?: boolean;
58
- }
59
-
60
- export interface VideoLink {
61
- image?: Asset;
62
- videoPopup?: boolean;
63
- link?: string;
64
- }
65
-
66
- export interface Checklist {
67
- list?: {
68
- items: {
69
- checkListTitle?: { json: any };
70
- icon?: Asset;
71
- anchorId?: string;
72
- }[];
73
- };
74
- }
75
-
76
- export interface RichTextItem {
77
- title?: string;
78
- isTargetBlank?: boolean;
79
- richText?: { json: any };
80
- }
1
+ export interface Asset {
2
+ url?: string | null;
3
+ title?: string | null;
4
+ description?: string | null;
5
+ contentType?: string | null;
6
+ width?: number | null;
7
+ height?: number | null;
8
+ }
9
+ export interface Button {
10
+ anchorId?: string | null;
11
+ showButtonAs?: "solid" | "text" | null;
12
+ buttonLabel: string; // required in your model
13
+ buttonPrefix?: string | null;
14
+ href?: string | null;
15
+ target?: "_blank" | "_self" | null;
16
+ badge?: string | null;
17
+ preserveQueryParameters: boolean; // non-null in your model
18
+ badgeIcon?: Asset | null;
19
+ buttonVariant?: "primary_brand" | "primary_inverse" | "secondary" | null;
20
+ buttonIcon?: Asset | null;
21
+ buttonIconPosition?: boolean | null; // matches EntryFieldTypes.Boolean in your model
22
+ clickToOpen?: "accordion" | "modal" | "tab" | null;
23
+ tabmodalNameToOpen?: string | null;
24
+ preDefinedFunctionExecution?: "check availability" | null;
25
+ }
26
+
27
+ export interface ButtonGroup {
28
+ __typename: "ComponentButtonGroup";
29
+ anchorId?: string | null;
30
+ title?: string | null;
31
+ itemsCollection?: {
32
+ items: Button[];
33
+ };
34
+ }
35
+ export interface Card {
36
+ anchorId?: string;
37
+ title?: string;
38
+ body?: {
39
+ json: any; // Contentful Rich Text
40
+ };
41
+ image?: Asset;
42
+ imageLink?: string;
43
+ imageAlignment?: "Left" | "Right" | "Center" | string;
44
+ imageView?: "Full" | "Inset" | string;
45
+ cta?: Button;
46
+ ctaAlignment?: "Left" | "Right" | "Center" | string;
47
+ textColor?: string;
48
+ backgroundColor?: string;
49
+ showBackgroundImage?: boolean;
50
+ pinwheelColor?: "blue" | "green" | "navy" | "purple" | "white" | "yellow";
51
+ iconToRichTextAlignment?: string;
52
+ phoneNumber?: string;
53
+ workingHours?: string;
54
+ titleLocation?: "Top" | "Bottom" | string;
55
+ ctaBottom?: Button;
56
+ ctaAlignmentBottom?: "Left" | "Right" | "Center" | string;
57
+ imageFloatingType?: boolean;
58
+ }
59
+
60
+ export interface VideoLink {
61
+ image?: Asset;
62
+ videoPopup?: boolean;
63
+ link?: string;
64
+ }
65
+
66
+ export interface Checklist {
67
+ list?: {
68
+ items: {
69
+ checkListTitle?: { json: any };
70
+ icon?: Asset;
71
+ anchorId?: string;
72
+ }[];
73
+ };
74
+ }
75
+
76
+ export interface RichTextItem {
77
+ title?: string;
78
+ isTargetBlank?: boolean;
79
+ richText?: { json: any };
80
+ }
@@ -1,49 +1,49 @@
1
- import { clsx, type ClassValue } from "clsx";
2
- import { extendTailwindMerge } from "tailwind-merge";
3
-
4
- const twMerge = extendTailwindMerge({
5
- // Define class groups so twMerge knows which classes override each other
6
- extend: {
7
- classGroups: {
8
- ["font-variants" as any]: [
9
- "heading1",
10
- "heading2",
11
- "heading3",
12
- "heading4",
13
- "heading5",
14
- "heading6",
15
- "subheading1",
16
- "subheading2",
17
- "subheading3",
18
- "subheading4",
19
- "subheading5",
20
- "subheading6",
21
- "body1",
22
- "body2",
23
- "body3",
24
- "footnote",
25
- "micro",
26
- "label1",
27
- "label2",
28
- "label3",
29
- "label4",
30
- ],
31
- ["button-sizes" as any]: [
32
- "btn-small",
33
- "btn-medium",
34
- "btn-large",
35
- "btn-x-large",
36
- ],
37
- },
38
- },
39
- });
40
-
41
- /**
42
- * Utility function to combine class names using clsx
43
- * @param inputs - Class values to combine
44
- * @returns Combined class string
45
- */
46
- export const cx = (...val: ClassValue[]) => twMerge(clsx(...val));
47
-
48
- export { clsx };
49
- export type { ClassValue };
1
+ import { clsx, type ClassValue } from "clsx";
2
+ import { extendTailwindMerge } from "tailwind-merge";
3
+
4
+ const twMerge = extendTailwindMerge({
5
+ // Define class groups so twMerge knows which classes override each other
6
+ extend: {
7
+ classGroups: {
8
+ ["font-variants" as any]: [
9
+ "heading1",
10
+ "heading2",
11
+ "heading3",
12
+ "heading4",
13
+ "heading5",
14
+ "heading6",
15
+ "subheading1",
16
+ "subheading2",
17
+ "subheading3",
18
+ "subheading4",
19
+ "subheading5",
20
+ "subheading6",
21
+ "body1",
22
+ "body2",
23
+ "body3",
24
+ "footnote",
25
+ "micro",
26
+ "label1",
27
+ "label2",
28
+ "label3",
29
+ "label4",
30
+ ],
31
+ ["button-sizes" as any]: [
32
+ "btn-small",
33
+ "btn-medium",
34
+ "btn-large",
35
+ "btn-x-large",
36
+ ],
37
+ },
38
+ },
39
+ });
40
+
41
+ /**
42
+ * Utility function to combine class names using clsx
43
+ * @param inputs - Class values to combine
44
+ * @returns Combined class string
45
+ */
46
+ export const cx = (...val: ClassValue[]) => twMerge(clsx(...val));
47
+
48
+ export { clsx };
49
+ export type { ClassValue };
@@ -381,152 +381,148 @@ module.exports = {
381
381
  // Headings
382
382
  ".heading1": {
383
383
  "font-family": theme("fontFamily.spirit"),
384
- "font-size": theme("fontSize.heading1"),
385
- "line-height": theme("lineHeight.15"),
386
- "font-weight": "700",
384
+ "font-size": theme("fontSize.heading1"), // 3rem/48px
385
+ "line-height": theme("lineHeight.12"), // 3rem/48px
386
+ "font-weight": "900",
387
387
  },
388
388
  ".heading2": {
389
389
  "font-family": theme("fontFamily.spirit"),
390
- "font-size": theme("fontSize.heading2"),
391
- "line-height": theme("lineHeight.12"),
392
- "font-weight": "700",
390
+ "font-size": theme("fontSize.heading2"), // 2.25rem/36px
391
+ "line-height": theme("lineHeight.10"), // 2.5rem/40px
392
+ "font-weight": "900",
393
393
  },
394
394
  ".heading3": {
395
395
  "font-family": theme("fontFamily.spirit"),
396
- "font-size": theme("fontSize.heading3"),
397
- "line-height": theme("lineHeight[9.2]"),
398
- "font-weight": "700",
396
+ "font-size": theme("fontSize.heading3"), // 1.875rem/30px
397
+ "line-height": theme("lineHeight.9"), // 2.25rem/36px
398
+ "font-weight": "900",
399
399
  },
400
400
  ".heading4": {
401
401
  "font-family": theme("fontFamily.spirit"),
402
- "font-size": theme("fontSize.heading4"),
403
- "line-height": theme("lineHeight.8"),
404
- "font-weight": "700",
402
+ "font-size": theme("fontSize.heading4"), // 1.5rem/24px
403
+ "line-height": theme("lineHeight.8"), // 2rem/32px
404
+ "font-weight": "900",
405
405
  },
406
406
  ".heading5": {
407
407
  "font-family": theme("fontFamily.sans"),
408
- "font-size": theme("fontSize.heading5"),
409
- "line-height": theme("lineHeight.9"),
410
- "font-weight": "600",
408
+ "font-size": theme("fontSize.heading5"), // 1.875rem/30px
409
+ "line-height": theme("lineHeight.9"), // 2.25rem/36px
410
+ "font-weight": "900",
411
411
  },
412
412
  ".heading6": {
413
413
  "font-family": theme("fontFamily.sans"),
414
- "font-size": theme("fontSize.heading6"),
415
- "line-height": theme("lineHeight.8"),
416
- "font-weight": "600",
414
+ "font-size": theme("fontSize.heading6"), // 1.5rem/24px
415
+ "line-height": theme("lineHeight.8"), // 2rem/32px
416
+ "font-weight": "900",
417
417
  },
418
418
 
419
419
  // Subheadings
420
420
  ".subheading1": {
421
421
  "font-family": theme("fontFamily.sans"),
422
- "font-size": theme("fontSize.subheading1"),
423
- "line-height": theme("lineHeight.8"),
424
- "font-weight": "400",
422
+ "font-size": theme("fontSize.subheading1"), // 1.5rem/24px
423
+ "line-height": theme("lineHeight.8"), // 2rem/32px
424
+ "font-weight": "700",
425
425
  },
426
426
  ".subheading2": {
427
427
  "font-family": theme("fontFamily.sans"),
428
- "font-size": theme("fontSize.subheading2"),
429
- "line-height": theme("lineHeight.8"),
430
- "font-weight": "700",
431
- "letter-spacing": "1.44px",
432
- "text-transform": "uppercase"
428
+ "font-size": theme("fontSize.subheading2"), // 1.5rem/24px
429
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
430
+ "font-weight": "900",
433
431
  },
434
432
  ".subheading3": {
435
433
  "font-family": theme("fontFamily.sans"),
436
- "font-size": theme("fontSize.subheading3"),
437
- "line-height": theme("lineHeight.7"),
438
- "font-weight": "400",
434
+ "font-size": theme("fontSize.subheading3"), // 1.125rem/18px
435
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
436
+ "font-weight": "700",
439
437
  },
440
438
  ".subheading4": {
441
439
  "font-family": theme("fontFamily.sans"),
442
- "font-size": theme("fontSize.subheading4"),
443
- "line-height": theme("lineHeight.7"),
444
- "font-weight": "700",
445
- "letter-spacing": "1.08px",
446
- "text-transform": "uppercase"
440
+ "font-size": theme("fontSize.subheading4"), // 1.125rem/18px
441
+ "line-height": theme("lineHeight.6"), // 1.5rem/24px
442
+ "font-weight": "900",
447
443
  },
448
444
  ".subheading5": {
449
445
  "font-family": theme("fontFamily.sans"),
450
- "font-size": theme("fontSize.subheading5"),
451
- "line-height": theme("lineHeight.18"),
452
- "font-weight": "600",
446
+ "font-size": theme("fontSize.subheading5"), // 3.75rem/60px
447
+ "line-height": theme("lineHeight.15"), // 3.75rem/60px
448
+ "font-weight": "500",
453
449
  },
454
450
  ".subheading6": {
455
451
  "font-family": theme("fontFamily.sans"),
456
- "font-size": theme("fontSize.subheading6"),
457
- "line-height": theme("lineHeight.15"),
458
- "font-weight": "600",
452
+ "font-size": theme("fontSize.subheading6"), // 3rem/48px
453
+ "line-height": theme("lineHeight.12"), // 3rem/48px
454
+ "font-weight": "500",
459
455
  },
460
456
 
461
457
  // Body text
462
458
  ".body1": {
463
459
  "font-family": theme("fontFamily.sans"),
464
- "font-size": theme("fontSize.body1"),
465
- "line-height": theme("lineHeight.8"),
460
+ "font-size": theme("fontSize.body1"), // 1.25rem/20px
461
+ "line-height": theme("lineHeight.8"), // 2rem/32px
466
462
  "font-weight": "400",
467
463
  },
468
464
  ".body2": {
469
465
  "font-family": theme("fontFamily.sans"),
470
- "font-size": theme("fontSize.body2"),
471
- "line-height": theme("lineHeight.7"),
466
+ "font-size": theme("fontSize.body2"), // 1.125rem/18px
467
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
472
468
  "font-weight": "400",
473
469
  },
474
470
  ".body3": {
475
471
  "font-family": theme("fontFamily.sans"),
476
- "font-size": theme("fontSize.body3"),
477
- "line-height": theme("lineHeight.6"),
472
+ "font-size": theme("fontSize.body3"), // 1rem/16px
473
+ "line-height": theme("lineHeight.6"), // 1.5rem/24px
478
474
  "font-weight": "400",
479
475
  },
480
476
 
481
477
  // Footnote & Micro
482
478
  ".footnote": {
483
479
  "font-family": theme("fontFamily.sans"),
484
- "font-size": theme("fontSize.footnote"),
485
- "line-height": theme("lineHeight.5"),
486
- "font-weight": "400",
480
+ "font-size": theme("fontSize.footnote"), // 0.875rem/14px
481
+ "line-height": theme("lineHeight.5"), // 1.25rem/20px
482
+ "font-weight": "500",
487
483
  },
488
484
  ".micro": {
489
485
  "font-family": theme("fontFamily.sans"),
490
- "font-size": theme("fontSize.micro"),
491
- "line-height": theme("lineHeight.4"),
492
- "font-weight": "400",
486
+ "font-size": theme("fontSize.micro"), // 0.75rem/12px
487
+ "line-height": theme("lineHeight.4"), // 1rem/16px
488
+ "font-weight": "500",
493
489
  },
494
490
 
495
491
  // Labels
496
492
  ".label1": {
497
493
  "font-family": theme("fontFamily.sans"),
498
- "font-size": theme("fontSize.label1"),
499
- "line-height": theme("lineHeight.7"),
494
+ "font-size": theme("fontSize.label1"), // 1.25rem/20px
495
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
500
496
  "font-weight": "600",
501
497
  },
502
498
  ".label2": {
503
499
  "font-family": theme("fontFamily.sans"),
504
- "font-size": theme("fontSize.label2"),
505
- "line-height": theme("lineHeight.7"),
500
+ "font-size": theme("fontSize.label2"), // 1.125rem/18px
501
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
506
502
  "font-weight": "600",
507
503
  },
508
504
  ".label3": {
509
505
  "font-family": theme("fontFamily.sans"),
510
- "font-size": theme("fontSize.label3"),
511
- "line-height": theme("lineHeight.6"),
506
+ "font-size": theme("fontSize.label3"), // 1rem/16px
507
+ "line-height": theme("lineHeight.6"), // 1.5rem/24px
512
508
  "font-weight": "600",
513
509
  },
514
510
  ".label4": {
515
511
  "font-family": theme("fontFamily.sans"),
516
- "font-size": theme("fontSize.label4"),
517
- "line-height": theme("lineHeight.5"),
512
+ "font-size": theme("fontSize.label4"), // 0.875rem/14px
513
+ "line-height": theme("lineHeight.5"), // 1.25rem/20px
518
514
  "font-weight": "600",
519
515
  },
520
516
  ".label5": {
521
517
  "font-family": theme("fontFamily.spirit"),
522
- "font-size": theme("fontSize.label5"),
523
- "line-height": theme("lineHeight.7"),
518
+ "font-size": theme("fontSize.label5"), // 1.25rem/20px
519
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
524
520
  "font-weight": "700",
525
521
  },
526
522
  ".label6": {
527
523
  "font-family": theme("fontFamily.spirit"),
528
- "font-size": theme("fontSize.label6"),
529
- "line-height": theme("lineHeight.7"),
524
+ "font-size": theme("fontSize.label6"), // 1.125rem/18px
525
+ "line-height": theme("lineHeight.7"), // 1.75rem/28px
530
526
  "font-weight": "700",
531
527
  },
532
528
  }