@openedx/paragon 23.0.0-alpha.3 → 23.0.0-alpha.4

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 (209) hide show
  1. package/bin/paragon-scripts.js +10 -0
  2. package/dist/Annotation/index.scss +16 -0
  3. package/dist/Card/CardDeck.js +0 -2
  4. package/dist/Card/CardDeck.js.map +1 -1
  5. package/dist/Card/index.scss +6 -6
  6. package/dist/Carousel/index.scss +24 -1
  7. package/dist/Chip/ChipIcon.d.ts +1 -1
  8. package/dist/CloseButton/index.scss +8 -0
  9. package/dist/ColorPicker/index.scss +1 -1
  10. package/dist/DataTable/index.scss +12 -0
  11. package/dist/Dropdown/dropdown-bootstrap.scss +6 -0
  12. package/dist/Dropzone/index.scss +34 -0
  13. package/dist/Form/_FormText.scss +1 -1
  14. package/dist/Form/_bootstrap-custom-forms.scss +40 -0
  15. package/dist/Form/_index.scss +9 -0
  16. package/dist/Form/_mixins.scss +22 -0
  17. package/dist/IconButton/index.d.ts +1 -1
  18. package/dist/IconButton/index.scss +146 -0
  19. package/dist/Menu/index.scss +8 -0
  20. package/dist/Modal/ModalDialog.js +8 -4
  21. package/dist/Modal/ModalDialog.js.map +1 -1
  22. package/dist/Modal/_ModalDialog.scss +22 -2
  23. package/dist/Nav/index.scss +8 -0
  24. package/dist/Overlay/index.d.ts +2 -2
  25. package/dist/PageBanner/index.scss +2 -2
  26. package/dist/Pagination/pagination-bootstrap.scss +9 -0
  27. package/dist/Popover/index.scss +1 -1
  28. package/dist/ProductTour/Checkpoint.scss +1 -1
  29. package/dist/ProgressBar/bootstrap-progress.scss +20 -5
  30. package/dist/ProgressBar/index.scss +3 -3
  31. package/dist/Stepper/index.scss +1 -1
  32. package/dist/Sticky/index.scss +12 -0
  33. package/dist/Toast/index.scss +13 -1
  34. package/dist/Tooltip/index.scss +16 -0
  35. package/dist/core.css +911 -470
  36. package/dist/core.css.map +1 -1
  37. package/dist/core.min.css +1 -1
  38. package/dist/light.css +2035 -1315
  39. package/dist/light.css.map +1 -1
  40. package/dist/light.min.css +1 -1
  41. package/lib/build-tokens.js +67 -31
  42. package/package.json +7 -4
  43. package/src/Annotation/index.scss +16 -0
  44. package/src/Card/CardDeck.jsx +0 -3
  45. package/src/Card/README.md +0 -31
  46. package/src/Card/index.scss +6 -6
  47. package/src/Carousel/index.scss +24 -1
  48. package/src/CloseButton/index.scss +8 -0
  49. package/src/ColorPicker/index.scss +1 -1
  50. package/src/DataTable/index.scss +12 -0
  51. package/src/Dropdown/dropdown-bootstrap.scss +6 -0
  52. package/src/Dropzone/index.scss +34 -0
  53. package/src/Form/_FormText.scss +1 -1
  54. package/src/Form/_bootstrap-custom-forms.scss +40 -0
  55. package/src/Form/_index.scss +9 -0
  56. package/src/Form/_mixins.scss +22 -0
  57. package/src/IconButton/index.scss +146 -0
  58. package/src/Menu/index.scss +8 -0
  59. package/src/Modal/ModalDialog.jsx +7 -3
  60. package/src/Modal/_ModalDialog.scss +22 -2
  61. package/src/Modal/modal-dialog.mdx +95 -6
  62. package/src/Modal/tests/ModalDialog.test.jsx +2 -0
  63. package/src/Nav/index.scss +8 -0
  64. package/src/PageBanner/index.scss +2 -2
  65. package/src/Pagination/pagination-bootstrap.scss +9 -0
  66. package/src/Popover/index.scss +1 -1
  67. package/src/ProductTour/Checkpoint.scss +1 -1
  68. package/src/ProgressBar/bootstrap-progress.scss +20 -5
  69. package/src/ProgressBar/index.scss +3 -3
  70. package/src/Stepper/index.scss +1 -1
  71. package/src/Sticky/index.scss +12 -0
  72. package/src/Toast/index.scss +13 -1
  73. package/src/Tooltip/index.scss +16 -0
  74. package/styles/css/core/abstraction-variables.css +44 -0
  75. package/styles/css/core/custom-media-breakpoints.css +3 -4
  76. package/styles/css/core/index.css +2 -1
  77. package/styles/css/core/variables.css +494 -430
  78. package/styles/css/themes/light/abstraction-variables.css +304 -0
  79. package/styles/css/themes/light/index.css +1 -0
  80. package/styles/css/themes/light/utility-classes.css +2 -3
  81. package/styles/css/themes/light/variables.css +1753 -1334
  82. package/styles/scss/core/_typography.scss +16 -4
  83. package/styles/scss/core/_utilities.scss +7 -3
  84. package/styles/scss/core/_variables.scss +43 -30
  85. package/styles/scss/core/core.scss +1 -0
  86. package/tokens/src/core/alias/size.json +6 -5
  87. package/tokens/src/core/components/ActionRow.json +3 -2
  88. package/tokens/src/core/components/Alert.json +12 -10
  89. package/tokens/src/core/components/Annotation.json +9 -7
  90. package/tokens/src/core/components/Avatar.json +9 -9
  91. package/tokens/src/core/components/AvatarButton.json +4 -3
  92. package/tokens/src/core/components/Badge.json +12 -9
  93. package/tokens/src/core/components/Breadcrumb.json +7 -5
  94. package/tokens/src/core/components/Bubble.json +4 -3
  95. package/tokens/src/core/components/Button/core.json +35 -59
  96. package/tokens/src/core/components/Card.json +33 -44
  97. package/tokens/src/core/components/Carousel.json +39 -13
  98. package/tokens/src/core/components/Chip.json +13 -21
  99. package/tokens/src/core/components/ChipCarousel.json +4 -5
  100. package/tokens/src/core/components/CloseButton.json +2 -6
  101. package/tokens/src/core/components/Code.json +9 -8
  102. package/tokens/src/core/components/Collapsible.json +10 -13
  103. package/tokens/src/core/components/ColorPicker.json +3 -2
  104. package/tokens/src/core/components/Container.json +6 -5
  105. package/tokens/src/core/components/DataTable.json +17 -9
  106. package/tokens/src/core/components/Dropdown.json +24 -29
  107. package/tokens/src/core/components/Dropzone.json +5 -7
  108. package/tokens/src/core/components/Form/other.json +5 -4
  109. package/tokens/src/core/components/Form/size.json +72 -119
  110. package/tokens/src/core/components/Form/spacing.json +39 -83
  111. package/tokens/src/core/components/Form/transition.json +43 -7
  112. package/tokens/src/core/components/Form/typography.json +24 -88
  113. package/tokens/src/core/components/Icon.json +6 -5
  114. package/tokens/src/core/components/IconButton.json +4 -7
  115. package/tokens/src/core/components/Image.json +7 -6
  116. package/tokens/src/core/components/Menu.json +14 -12
  117. package/tokens/src/core/components/Modal.json +26 -21
  118. package/tokens/src/core/components/Nav.json +14 -16
  119. package/tokens/src/core/components/Navbar.json +15 -30
  120. package/tokens/src/core/components/Pagination.json +23 -24
  121. package/tokens/src/core/components/Popover.json +18 -14
  122. package/tokens/src/core/components/ProductTour.json +8 -14
  123. package/tokens/src/core/components/ProgressBar.json +29 -14
  124. package/tokens/src/core/components/SearchField.json +7 -9
  125. package/tokens/src/core/components/SelectableBox.json +4 -3
  126. package/tokens/src/core/components/Sheet.json +3 -2
  127. package/tokens/src/core/components/Spinner.json +9 -7
  128. package/tokens/src/core/components/Stack.json +2 -1
  129. package/tokens/src/core/components/Stepper.json +12 -14
  130. package/tokens/src/core/components/Sticky.json +2 -1
  131. package/tokens/src/core/components/Tab.json +8 -7
  132. package/tokens/src/core/components/Tabs.json +5 -5
  133. package/tokens/src/core/components/Toast.json +11 -8
  134. package/tokens/src/core/components/Tooltip.json +13 -11
  135. package/tokens/src/core/components/general/caret.json +5 -3
  136. package/tokens/src/core/components/general/headings.json +5 -4
  137. package/tokens/src/core/components/general/hr.json +3 -2
  138. package/tokens/src/core/components/general/input.json +19 -19
  139. package/tokens/src/core/components/general/link.json +13 -12
  140. package/tokens/src/core/components/general/list.json +9 -6
  141. package/tokens/src/core/components/general/text.json +6 -12
  142. package/tokens/src/core/global/breakpoints.json +25 -6
  143. package/tokens/src/core/global/elevation.json +55 -13
  144. package/tokens/src/core/global/other.json +5 -1
  145. package/tokens/src/core/global/spacing.json +70 -17
  146. package/tokens/src/core/global/transition.json +41 -4
  147. package/tokens/src/core/global/typography.json +248 -53
  148. package/tokens/src/core/utilities/color.json +35 -4
  149. package/tokens/src/themes/light/alias/color.json +276 -75
  150. package/tokens/src/themes/light/components/Alert.json +15 -26
  151. package/tokens/src/themes/light/components/Annotation.json +27 -13
  152. package/tokens/src/themes/light/components/Avatar.json +2 -1
  153. package/tokens/src/themes/light/components/Badge.json +57 -122
  154. package/tokens/src/themes/light/components/Breadcrumb.json +6 -5
  155. package/tokens/src/themes/light/components/Bubble.json +9 -8
  156. package/tokens/src/themes/light/components/Button/brand.json +171 -119
  157. package/tokens/src/themes/light/components/Button/core.json +8 -9
  158. package/tokens/src/themes/light/components/Button/danger.json +171 -112
  159. package/tokens/src/themes/light/components/Button/dark.json +188 -106
  160. package/tokens/src/themes/light/components/Button/info.json +186 -112
  161. package/tokens/src/themes/light/components/Button/light.json +186 -110
  162. package/tokens/src/themes/light/components/Button/primary.json +178 -116
  163. package/tokens/src/themes/light/components/Button/secondary.json +166 -132
  164. package/tokens/src/themes/light/components/Button/success.json +176 -117
  165. package/tokens/src/themes/light/components/Button/tertiary.json +34 -60
  166. package/tokens/src/themes/light/components/Button/warning.json +164 -128
  167. package/tokens/src/themes/light/components/Card.json +10 -21
  168. package/tokens/src/themes/light/components/Carousel.json +12 -11
  169. package/tokens/src/themes/light/components/Chip.json +14 -26
  170. package/tokens/src/themes/light/components/CloseButton.json +12 -2
  171. package/tokens/src/themes/light/components/Code.json +7 -9
  172. package/tokens/src/themes/light/components/DataTable.json +7 -11
  173. package/tokens/src/themes/light/components/Dropdown.json +17 -20
  174. package/tokens/src/themes/light/components/Dropzone.json +49 -11
  175. package/tokens/src/themes/light/components/Form/color.json +101 -155
  176. package/tokens/src/themes/light/components/Form/elevation.json +38 -42
  177. package/tokens/src/themes/light/components/Form/other.json +44 -41
  178. package/tokens/src/themes/light/components/IconButton.json +408 -256
  179. package/tokens/src/themes/light/components/Image.json +7 -4
  180. package/tokens/src/themes/light/components/Menu.json +12 -10
  181. package/tokens/src/themes/light/components/Modal.json +22 -12
  182. package/tokens/src/themes/light/components/Nav.json +82 -94
  183. package/tokens/src/themes/light/components/Navbar.json +32 -76
  184. package/tokens/src/themes/light/components/OverflowScroll.json +3 -1
  185. package/tokens/src/themes/light/components/PageBanner.json +11 -10
  186. package/tokens/src/themes/light/components/Pagination.json +19 -23
  187. package/tokens/src/themes/light/components/Popover.json +22 -27
  188. package/tokens/src/themes/light/components/ProductTour.json +9 -20
  189. package/tokens/src/themes/light/components/ProgressBar.json +12 -10
  190. package/tokens/src/themes/light/components/Scrollable.json +3 -3
  191. package/tokens/src/themes/light/components/SearchField.json +9 -9
  192. package/tokens/src/themes/light/components/Sheet.json +6 -7
  193. package/tokens/src/themes/light/components/Stepper.json +12 -17
  194. package/tokens/src/themes/light/components/Sticky.json +31 -6
  195. package/tokens/src/themes/light/components/Tab.json +47 -24
  196. package/tokens/src/themes/light/components/Toast.json +26 -14
  197. package/tokens/src/themes/light/components/Tooltip.json +25 -10
  198. package/tokens/src/themes/light/components/general/body.json +3 -2
  199. package/tokens/src/themes/light/components/general/headings.json +2 -1
  200. package/tokens/src/themes/light/components/general/hr.json +3 -6
  201. package/tokens/src/themes/light/components/general/input.json +11 -4
  202. package/tokens/src/themes/light/components/general/link.json +34 -43
  203. package/tokens/src/themes/light/components/general/list.json +15 -19
  204. package/tokens/src/themes/light/components/general/text.json +5 -6
  205. package/tokens/src/themes/light/global/color.json +1592 -867
  206. package/tokens/src/themes/light/global/elevation.json +481 -93
  207. package/tokens/style-dictionary.js +342 -144
  208. package/tokens/utils.js +176 -6
  209. package/tokens/src/core/global/display.json +0 -22
@@ -1,11 +1,23 @@
1
1
  @import "~bootstrap/scss/type";
2
2
 
3
3
  @mixin mobile-type {
4
- .display-1,
5
- .display-2,
6
- .display-3,
4
+ .display-1 {
5
+ font-size: $display1-mobile-size;
6
+ line-height: $display-mobile-line-height;
7
+ }
8
+
9
+ .display-2 {
10
+ font-size: $display2-mobile-size;
11
+ line-height: $display-mobile-line-height;
12
+ }
13
+
14
+ .display-3 {
15
+ font-size: $display3-mobile-size;
16
+ line-height: $display-mobile-line-height;
17
+ }
18
+
7
19
  .display-4 {
8
- font-size: $display-mobile-size;
20
+ font-size: $display4-mobile-size;
9
21
  line-height: $display-mobile-line-height;
10
22
  }
11
23
 
@@ -21,13 +21,17 @@
21
21
  $color-levels: 100, 200, 300, 400, 500, 600, 700, 800, 900;
22
22
 
23
23
  .x-small {
24
- font-size: $x-small-font-size;
24
+ font-size: $x-small-font-size !important;
25
25
  }
26
26
 
27
27
  .micro {
28
- font-size: $micro-font-size;
28
+ font-size: $micro-font-size !important;
29
29
  font-weight: normal;
30
- line-height: $micro-line-height;
30
+ line-height: $micro-line-height !important;
31
+ }
32
+
33
+ .font-size-normal {
34
+ font-size: $font-size-base !important;
31
35
  }
32
36
 
33
37
  .mw-xs {
@@ -652,7 +652,10 @@ $box-shadow-sides: (
652
652
  ) !default;
653
653
 
654
654
  $box-shadow-sm: var(--pgn-elevation-box-shadow-sm) !default;
655
- $box-shadow: var(--pgn-elevation-box-shadow-base) !default;
655
+ $box-shadow: var(--pgn-elevation-box-shadow-base-offset-x)
656
+ var(--pgn-elevation-box-shadow-base-offset-y)
657
+ var(--pgn-elevation-box-shadow-base-blur)
658
+ var(--pgn-elevation-box-shadow-base-color) !default;
656
659
  $box-shadow-lg: var(--pgn-elevation-box-shadow-lg) !default;
657
660
 
658
661
  $component-active-color: var(--pgn-color-active) !default;
@@ -703,19 +706,19 @@ $font-weight-bolder: var(--pgn-typography-font-weight-bolder) !default;
703
706
  $font-weight-base: var(--pgn-typography-font-weight-base) !default;
704
707
  $line-height-base: var(--pgn-typography-line-height-base) !default;
705
708
 
706
- $h1-font-size: var(--pgn-typography-font-size-h1) !default;
707
- $h2-font-size: var(--pgn-typography-font-size-h2) !default;
708
- $h3-font-size: var(--pgn-typography-font-size-h3) !default;
709
- $h4-font-size: var(--pgn-typography-font-size-h4) !default;
710
- $h5-font-size: var(--pgn-typography-font-size-h5) !default;
711
- $h6-font-size: var(--pgn-typography-font-size-h6) !default;
709
+ $h1-font-size: var(--pgn-typography-font-size-h1-base) !default;
710
+ $h2-font-size: var(--pgn-typography-font-size-h2-base) !default;
711
+ $h3-font-size: var(--pgn-typography-font-size-h3-base) !default;
712
+ $h4-font-size: var(--pgn-typography-font-size-h4-base) !default;
713
+ $h5-font-size: var(--pgn-typography-font-size-h5-base) !default;
714
+ $h6-font-size: var(--pgn-typography-font-size-h6-base) !default;
712
715
 
713
- $h1-mobile-font-size: var(--pgn-typography-font-size-mobile-h1) !default;
714
- $h2-mobile-font-size: var(--pgn-typography-font-size-mobile-h2) !default;
715
- $h3-mobile-font-size: var(--pgn-typography-font-size-mobile-h3) !default;
716
- $h4-mobile-font-size: var(--pgn-typography-font-size-mobile-h4) !default;
717
- $h5-mobile-font-size: var(--pgn-typography-font-size-mobile-h5) !default;
718
- $h6-mobile-font-size: var(--pgn-typography-font-size-mobile-h6) !default;
716
+ $h1-mobile-font-size: var(--pgn-typography-font-size-h1-mobile) !default;
717
+ $h2-mobile-font-size: var(--pgn-typography-font-size-h2-mobile) !default;
718
+ $h3-mobile-font-size: var(--pgn-typography-font-size-h3-mobile) !default;
719
+ $h4-mobile-font-size: var(--pgn-typography-font-size-h4-mobile) !default;
720
+ $h5-mobile-font-size: var(--pgn-typography-font-size-h5-mobile) !default;
721
+ $h6-mobile-font-size: var(--pgn-typography-font-size-h6-mobile) !default;
719
722
 
720
723
  $headings-margin-bottom: var(--pgn-spacing-headings-margin-bottom) !default;
721
724
  $headings-font-family: var(--pgn-typography-headings-font-family) !default;
@@ -723,29 +726,35 @@ $headings-font-weight: var(--pgn-typography-headings-font-weight) !default;
723
726
  $headings-line-height: var(--pgn-typography-headings-line-height) !default;
724
727
  $headings-color: var(--pgn-color-headings-base) !default;
725
728
 
726
- $display1-size: var(--pgn-typography-display-1) !default;
727
- $display2-size: var(--pgn-typography-display-2) !default;
728
- $display3-size: var(--pgn-typography-display-3) !default;
729
- $display4-size: var(--pgn-typography-display-4) !default;
729
+ $display1-size: var(--pgn-typography-font-size-display-1) !default;
730
+ $display2-size: var(--pgn-typography-font-size-display-2) !default;
731
+ $display3-size: var(--pgn-typography-font-size-display-3) !default;
732
+ $display4-size: var(--pgn-typography-font-size-display-4) !default;
730
733
 
731
- $display-mobile-size: var(--pgn-typography-display-mobile) !default;
734
+ // deprecated in favor of $display1-mobile-size
735
+ $display-mobile-size: var(--pgn-typography-font-size-display-mobile-1) !default;
736
+ $display1-mobile-size: var(--pgn-typography-font-size-display-mobile-1) !default;
737
+ $display2-mobile-size: var(--pgn-typography-font-size-display-mobile-2) !default;
738
+ $display3-mobile-size: var(--pgn-typography-font-size-display-mobile-3) !default;
739
+ $display4-mobile-size: var(--pgn-typography-font-size-display-mobile-4) !default;
732
740
 
733
- $display1-weight: var(--pgn-typography-display-weight-1) !default;
734
- $display2-weight: var(--pgn-typography-display-weight-2) !default;
735
- $display3-weight: var(--pgn-typography-display-weight-3) !default;
736
- $display4-weight: var(--pgn-typography-display-weight-4) !default;
737
741
 
738
- $display-line-height: var(--pgn-typography-display-line-height-base) !default;
739
- $display-mobile-line-height: var(--pgn-typography-display-line-height-mobile) !default;
742
+ $display1-weight: var(--pgn-typography-font-weight-display-1) !default;
743
+ $display2-weight: var(--pgn-typography-font-weight-display-2) !default;
744
+ $display3-weight: var(--pgn-typography-font-weight-display-3) !default;
745
+ $display4-weight: var(--pgn-typography-font-weight-display-4) !default;
740
746
 
741
- $lead-font-size: var(--pgn-typography-font-size-lead) !default;
747
+ $display-line-height: var(--pgn-typography-line-height-display-base) !default;
748
+ $display-mobile-line-height: var(--pgn-typography-line-height-display-mobile) !default;
749
+
750
+ $lead-font-size: var(--pgn-typography-font-size-lg) !default;
742
751
  $lead-font-weight: var(--pgn-typography-font-weight-lead) !default;
743
752
 
744
- $small-font-size: var(--pgn-typography-font-size-small-base) !default;
745
- $x-small-font-size: var(--pgn-typography-font-size-small-x) !default;
753
+ $small-font-size: var(--pgn-typography-font-size-sm) !default;
754
+ $x-small-font-size: var(--pgn-typography-font-size-xs) !default;
746
755
 
747
- $micro-font-size: var(--pgn-typography-font-size-micro);
748
- $micro-line-height: var(--pgn-typography-line-height-micro);
756
+ $micro-font-size: var(--pgn-typography-font-size-micro) !default;
757
+ $micro-line-height: var(--pgn-typography-line-height-micro) !default;
749
758
 
750
759
  $text-muted: var(--pgn-color-text-muted) !default;
751
760
 
@@ -801,7 +810,11 @@ $input-btn-line-height: var(--pgn-typography-input-btn-line-height-base) !defaul
801
810
 
802
811
  $input-btn-focus-width: var(--pgn-size-input-btn-focus-width) !default;
803
812
  $input-btn-focus-color: var(--pgn-color-input-btn-focus) !default;
804
- $input-btn-focus-box-shadow: var(--pgn-elevation-input-btn-focus-box-shadow) !default;
813
+ $input-btn-focus-box-shadow: var(--pgn-elevation-input-btn-focus-box-shadow-offset-x)
814
+ var(--pgn-elevation-input-btn-focus-box-shadow-offset-y)
815
+ var(--pgn-elevation-input-btn-focus-box-shadow-spread)
816
+ var(--pgn-elevation-input-btn-focus-box-shadow-color)
817
+ var(--pgn-elevation-input-btn-focus-box-shadow-blur) !default;
805
818
 
806
819
  $input-btn-padding-y-sm: var(--pgn-spacing-input-btn-padding-sm-y) !default;
807
820
  $input-btn-padding-x-sm: var(--pgn-spacing-input-btn-padding-sm-x) !default;
@@ -15,6 +15,7 @@
15
15
 
16
16
  // Paragon core CSS
17
17
  @import "../../css/core/variables";
18
+ @import "../../css/core/abstraction-variables";
18
19
  @import "../../css/core/custom-media-breakpoints";
19
20
 
20
21
  // Paragon components
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "border": {
4
- "width": { "value": "1px", "type": "dimension", "source": "$border-width", "description": "Default border width." },
5
+ "width": { "source": "$border-width", "$value": "1px", "$description": "Default border width." },
5
6
  "radius": {
6
- "base": { "value": ".375rem", "type": "dimension", "source": "$border-radius", "description": "Default border radius." },
7
- "lg": { "value": ".425rem", "type": "dimension", "source": "$border-radius-lg", "description": "Large border radius." },
8
- "sm": { "value": ".25rem", "type": "dimension", "source": "$border-radius-sm", "description": "Small border radius." }
7
+ "base": { "source": "$border-radius", "$value": ".375rem", "$description": "Default border radius." },
8
+ "lg": { "source": "$border-radius-lg", "$value": ".425rem", "$description": "Large border radius." },
9
+ "sm": { "source": "$border-radius-sm", "$value": ".25rem", "$description": "Small border radius." }
9
10
  }
10
11
  },
11
12
  "rounded": {
12
- "pill": { "value": "50rem", "type": "dimension", "source": "$rounded-pill", "description": "Pill border radius." }
13
+ "pill": { "source": "$rounded-pill", "$value": "50rem", "$description": "Pill border radius." }
13
14
  }
14
15
  }
15
16
  }
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "action-row": {
4
5
  "gap": {
5
- "x": { "value": ".5rem", "type": "dimension", "source": "$action-row-gap-x" },
6
- "y": { "value": ".5rem", "type": "dimension", "source": "$action-row-gap-y" }
6
+ "x": { "source": "$action-row-gap-x", "$value": ".5rem" },
7
+ "y": { "source": "$action-row-gap-y", "$value": ".5rem" }
7
8
  }
8
9
  }
9
10
  }
@@ -1,29 +1,31 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "alert": {
4
5
  "padding": {
5
- "y": { "value": "1.5rem", "type": "dimension", "source": "$alert-padding-y" },
6
- "x": { "value": "1.5rem", "type": "dimension", "source": "$alert-padding-x" }
6
+ "y": { "source": "$alert-padding-y", "$value": "1.5rem" },
7
+ "x": { "source": "$alert-padding-x", "$value": "1.5rem" }
7
8
  },
8
- "margin-bottom": { "value": "1rem", "type": "dimension", "source": "$alert-margin-bottom" },
9
- "actions-gap": { "value": "{spacing.spacer.3}", "type": "dimension", "source": "$alert-actions-gap" },
10
- "icon-space": { "value": ".8rem", "type": "dimension", "source": "$alert-icon-space" }
9
+ "margin-bottom": { "source": "$alert-margin-bottom", "$value": "1rem" },
10
+ "actions-gap": { "source": "$alert-actions-gap", "$value": "{spacing.spacer.3}" },
11
+ "icon-space": { "source": "$alert-icon-space", "$value": ".8rem" }
11
12
  }
12
13
  },
13
14
  "typography": {
14
15
  "alert": {
15
16
  "font": {
16
- "weight-link": { "value": "{typography.font.weight.normal}", "type": "fontWeight", "source": "$alert-link-font-weight" },
17
- "size": { "value": ".875rem", "type": "dimension", "source": "$alert-font-size" }
17
+ "weight-link": { "source": "$alert-link-font-weight", "$value": "{typography.font.weight.normal}", "$type": "fontWeight" },
18
+ "size": { "source": "$alert-font-size", "$value": ".875rem", "$type": "dimension" }
18
19
  },
19
- "line-height": { "value": "1.5rem", "type": "dimension", "source": "$alert-line-height" }
20
+ "line-height": { "source": "$alert-line-height", "$value": "1.5rem", "$type": "number" }
20
21
  }
21
22
  },
22
23
  "size": {
24
+ "$type": "dimension",
23
25
  "alert": {
24
26
  "border": {
25
- "radius": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$alert-border-radius" },
26
- "width": { "value": "0", "type": "dimension", "source": "$alert-border-width" }
27
+ "radius": { "source": "$alert-border-radius", "$value": "{size.border.radius.base}" },
28
+ "width": { "source": "$alert-border-width", "$value": "0" }
27
29
  }
28
30
  }
29
31
  }
@@ -1,25 +1,27 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "annotation": {
4
- "padding": { "value": ".5rem", "type": "dimension", "source": "$annotation-padding" },
5
+ "padding": { "source": "$annotation-padding", "$value": ".5rem" },
5
6
  "arrow-side": {
6
- "margin": { "value": ".25rem", "type": "dimension", "source": "$annotation-arrow-side-margin" }
7
+ "margin": { "source": "$annotation-arrow-side-margin", "$value": ".25rem" }
7
8
  }
8
9
  }
9
10
  },
10
11
  "typography": {
11
12
  "annotation": {
12
- "font-size": { "value": "{typography.font.size.sm}", "type": "dimension", "source": "$annotation-font-size" },
13
- "line-height": { "value": "{typography.line-height.sm}", "type": "dimension", "source": "$annotation-line-height" }
13
+ "font-size": { "source": "$annotation-font-size", "$value": "{typography.font.size.sm}", "$type": "dimension" },
14
+ "line-height": { "source": "$annotation-line-height", "$value": "{typography.line-height.sm}", "$type": "number" }
14
15
  }
15
16
  },
16
17
  "size": {
18
+ "$type": "dimension",
17
19
  "annotation": {
18
20
  "arrow-border": {
19
- "width": { "value": ".5rem", "type": "dimension", "source": "$annotation-arrow-border-width" }
21
+ "width": { "source": "$annotation-arrow-border-width", "$value": ".5rem" }
20
22
  },
21
- "max-width": { "value": "18.75rem", "type": "dimension", "source": "$annotation-max-width" },
22
- "border-radius": { "value": ".25rem", "type": "dimension", "source": "$annotation-border-radius" }
23
+ "max-width": { "source": "$annotation-max-width", "$value": "18.75rem" },
24
+ "border-radius": { "source": "$annotation-border-radius", "$value": ".25rem" }
23
25
  }
24
26
  }
25
27
  }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "size": {
3
3
  "avatar": {
4
- "base": { "value": "3rem", "type": "dimension", "source": "$avatar-size" },
5
- "xs": { "value": "1.5rem", "type": "dimension", "source": "$avatar-size-xs" },
6
- "sm": { "value": "2.25rem", "type": "dimension", "source": "$avatar-size-sm" },
7
- "lg": { "value": "4rem", "type": "dimension", "source": "$avatar-size-lg" },
8
- "xl": { "value": "6rem", "type": "dimension", "source": "$avatar-size-xl" },
9
- "xxl": { "value": "11.5rem", "type": "dimension", "source": "$avatar-size-xxl" },
10
- "huge": { "value": "18.75rem", "type": "dimension", "source": "$avatar-size-huge" },
4
+ "base": { "source": "$avatar-size", "$value": "3rem", "$type": "dimension" },
5
+ "xs": { "source": "$avatar-size-xs", "$value": "1.5rem", "$type": "dimension" },
6
+ "sm": { "source": "$avatar-size-sm", "$value": "2.25rem", "$type": "dimension" },
7
+ "lg": { "source": "$avatar-size-lg", "$value": "4rem", "$type": "dimension" },
8
+ "xl": { "source": "$avatar-size-xl", "$value": "6rem", "$type": "dimension" },
9
+ "xxl": { "source": "$avatar-size-xxl", "$value": "11.5rem", "$type": "dimension" },
10
+ "huge": { "source": "$avatar-size-huge", "$value": "18.75rem", "$type": "dimension" },
11
11
  "border": {
12
- "base": { "value": "1px", "type": "dimension", "source": "$avatar-border" },
13
- "radius": { "value": "100%", "type": "percentage", "source": "$avatar-border-radius" }
12
+ "base": { "source": "$avatar-border", "$value": "1px", "$type": "dimension" },
13
+ "radius": { "source": "$avatar-border-radius", "$value": "100%", "$type": "percentage" }
14
14
  }
15
15
  }
16
16
  }
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "avatar-button": {
4
5
  "padding-left": {
5
- "base": { "value": ".25em", "type": "dimension", "source": "$avatar-button-padding-left" },
6
- "sm": { "value": ".25em", "type": "dimension", "source": "$avatar-button-padding-left-sm" },
7
- "lg": { "value": ".25em", "type": "dimension", "source": "$avatar-button-padding-left-lg" }
6
+ "base": { "source": "$avatar-button-padding-left", "$value": ".25em" },
7
+ "sm": { "source": "$avatar-button-padding-left-sm", "$value": ".25em" },
8
+ "lg": { "source": "$avatar-button-padding-left-lg", "$value": ".25em" }
8
9
  }
9
10
  }
10
11
  }
@@ -1,33 +1,36 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "badge": {
4
5
  "padding": {
5
6
  "x": {
6
- "base": { "value": ".5rem", "type": "dimension", "source": "$badge-padding-x" },
7
- "pill": { "value": ".6em", "type": "dimension", "source": "$badge-pill-padding-x" }
7
+ "base": { "source": "$badge-padding-x", "$value": ".5rem" },
8
+ "pill": { "source": "$badge-pill-padding-x", "$value": ".6em" }
8
9
  },
9
- "y": { "value": ".125rem", "type": "dimension", "source": "$badge-padding-y" }
10
+ "y": { "source": "$badge-padding-y", "$value": ".125rem" }
10
11
  }
11
12
  }
12
13
  },
13
14
  "typography": {
14
15
  "badge": {
15
16
  "font": {
16
- "size": { "value": "75%", "type": "percentage", "source": "$badge-font-size" },
17
- "weight": { "value": "{typography.font.weight.bold}", "type": "fontWeight", "source": "$badge-font-weight" }
17
+ "size": { "source": "$badge-font-size", "$value": "75%", "$type": "percentage" },
18
+ "weight": { "source": "$badge-font-weight", "$value": "{typography.font.weight.bold}", "$type": "fontWeight" }
18
19
  }
19
20
  }
20
21
  },
21
22
  "size": {
23
+ "$type": "dimension",
22
24
  "badge": {
23
25
  "border-radius": {
24
- "base": { "value": ".25rem", "type": "dimension", "source": "$badge-border-radius" },
25
- "pill": { "value": "10rem", "type": "dimension", "source": "$badge-pill-border-radius" }
26
+ "base": { "source": "$badge-border-radius", "$value": ".25rem" },
27
+ "pill": { "source": "$badge-pill-border-radius", "$value": "10rem" }
26
28
  },
27
- "focus-width": { "value": "{size.input.btn.focus-width}", "type": "dimension", "source": "$badge-focus-width" }
29
+ "focus-width": { "source": "$badge-focus-width", "$value": "{size.input.btn.focus-width}" }
28
30
  }
29
31
  },
30
32
  "transition": {
31
- "badge": { "value": "none", "type": "transition", "source": "$badge-transition" }
33
+ "$type": "transition",
34
+ "badge": { "source": "$badge-transition", "$value": "none" }
32
35
  }
33
36
  }
@@ -1,22 +1,24 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "breadcrumb": {
4
5
  "margin": {
5
- "left": { "value": ".5rem", "type": "dimension", "source": "$breadcrumb-margin-left" }
6
+ "left": { "source": "$breadcrumb-margin-left", "$value": ".5rem" }
6
7
  }
7
8
  }
8
9
  },
9
10
  "size": {
11
+ "$type": "dimension",
10
12
  "breadcrumb": {
11
13
  "border": {
12
14
  "radius": {
13
- "focus": { "value": ".125rem", "type": "dimension", "source": "$breadcrumb-focus-border-radius" }
15
+ "focus": { "source": "$breadcrumb-focus-border-radius", "$value": ".125rem" }
14
16
  },
15
17
  "axis": {
16
- "x-focus": { "value": ".25rem", "type": "dimension", "source": "$breadcrumb-border-focus-axis-x" },
17
- "y-focus": { "value": ".5rem", "type": "dimension", "source": "$breadcrumb-border-focus-axis-y" }
18
+ "x-focus": { "source": "$breadcrumb-border-focus-axis-x", "$value": ".25rem" },
19
+ "y-focus": { "source": "$breadcrumb-border-focus-axis-y", "$value": ".5rem" }
18
20
  },
19
- "width-focus": { "value": ".0625rem", "type": "dimension", "source": "$breadcrumb-border-focus-width" }
21
+ "width-focus": { "source": "$breadcrumb-border-focus-width", "$value": ".0625rem" }
20
22
  }
21
23
  }
22
24
  }
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "bubble": {
4
5
  "expandable-padding": {
5
- "y": { "value": "0", "type": "transition", "source": "$bubble-expandable-padding-y" },
6
- "x": { "value": ".25rem", "type": "transition", "source": "$bubble-expandable-padding-x" }
6
+ "y": { "source": "$bubble-expandable-padding-y", "$value": "0" },
7
+ "x": { "source": "$bubble-expandable-padding-x", "$value": ".25rem" }
7
8
  }
8
- }
9
+ }
9
10
  }
10
11
  }
@@ -1,42 +1,31 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "btn": {
4
5
  "padding": {
5
6
  "y": {
6
- "base": {
7
- "value": "{spacing.input.btn.padding.y}", "type": "dimension", "source": "$btn-padding-y"
8
- },
9
- "lg": {
10
- "value": "{spacing.input.btn.padding.lg.y}", "type": "dimension", "source": "$btn-padding-y-lg"
11
- },
12
- "sm": {
13
- "value": "{spacing.input.btn.padding.sm.y}", "type": "dimension", "source": "$btn-padding-y-sm"
14
- }
7
+ "base": { "source": "$btn-padding-y", "$value": "{spacing.input.btn.padding.y}" },
8
+ "lg": { "source": "$btn-padding-y-lg", "$value": "{spacing.input.btn.padding.lg.y}" },
9
+ "sm": { "source": "$btn-padding-y-sm", "$value": "{spacing.input.btn.padding.sm.y}" }
15
10
  },
16
11
  "x": {
17
- "base": { "value": "{spacing.input.btn.padding.x}", "type": "dimension", "source": "$btn-padding-x" },
18
- "lg": {
19
- "value": "{spacing.input.btn.padding.lg.x}", "type": "dimension", "source": "$btn-padding-x-lg"
20
- },
21
- "sm": {
22
- "value": "{spacing.input.btn.padding.sm.x}", "type": "dimension", "source": "$btn-padding-x-sm"
23
- }
12
+ "base": { "source": "$btn-padding-x", "$value": "{spacing.input.btn.padding.x}" },
13
+ "lg": { "source": "$btn-padding-x-lg", "$value": "{spacing.input.btn.padding.lg.x}" },
14
+ "sm": { "source": "$btn-padding-x-sm", "$value": "{spacing.input.btn.padding.sm.x}" }
24
15
  }
25
16
  },
26
17
  "block": {
27
- "spacing-y": { "value": ".5rem", "type": "dimension", "source": "$btn-block-spacing-y" }
18
+ "spacing-y": { "source": "$btn-block-spacing-y", "$value": ".5rem" }
28
19
  },
29
20
  "focus": {
30
- "gap": { "value": "{size.btn.focus.width}", "type": "dimension", "source": "$btn-focus-gap" },
21
+ "gap": { "source": "$btn-focus-gap", "$value": "{size.btn.focus.width}" },
31
22
  "border-gap": {
32
- "value": "calc({size.btn.focus.width} + {spacing.btn.focus.gap})",
33
- "type": "dimension",
34
- "source": "$btn-focus-border-gap"
23
+ "source": "$btn-focus-border-gap",
24
+ "$value": "calc({size.btn.focus.width} + {spacing.btn.focus.gap})"
35
25
  },
36
26
  "distance-to-border": {
37
- "value": "calc({spacing.btn.focus.border-gap} + {size.btn.border.width})",
38
- "type": "dimension",
39
- "source": "$btn-focus-distance-to-border"
27
+ "source": "$btn-focus-distance-to-border",
28
+ "$value": "calc({spacing.btn.focus.border-gap} + {size.btn.border.width})"
40
29
  }
41
30
  }
42
31
  }
@@ -44,62 +33,49 @@
44
33
  "typography": {
45
34
  "btn": {
46
35
  "font": {
47
- "family": {
48
- "value": "{typography.input.btn.font.family}", "type": "fontFamily", "source": "$btn-font-family"
49
- },
36
+ "family": { "source": "$btn-font-family", "$value": "{typography.input.btn.font.family}", "$type": "fontFamily" },
50
37
  "size": {
51
- "base": {
52
- "value": "{typography.input.btn.font.size.base}", "type": "dimension", "source": "$btn-font-size"
53
- },
54
- "sm": {
55
- "value": "{typography.input.btn.font.size.sm}", "type": "dimension", "source": "$btn-font-size-sm"
56
- },
57
- "lg": {
58
- "value": "{typography.input.btn.font.size.lg}", "type": "dimension", "source": "$btn-font-size-lg"
59
- }
38
+ "$type": "dimension",
39
+ "base": { "source": "$btn-font-size", "$value": "{typography.input.btn.font.size.base}" },
40
+ "sm": { "source": "$btn-font-size-sm", "$value": "{typography.input.btn.font.size.sm}" },
41
+ "lg": { "source": "$btn-font-size-lg", "$value": "{typography.input.btn.font.size.lg}" }
60
42
  },
61
- "weight": {
62
- "value": "{typography.font.weight.normal}", "type": "fontWeight", "source": "$btn-font-weight"
63
- }
43
+ "weight": { "source": "$btn-font-weight", "$value": "{typography.font.weight.normal}", "$type": "fontWeight" }
64
44
  },
65
45
  "line-height": {
66
- "base": {
67
- "value": "{typography.input.btn.line-height.base}", "type": "dimension", "source": "$btn-line-height"
68
- },
69
- "sm": {
70
- "value": "{typography.input.btn.line-height.sm}", "type": "dimension", "source": "$btn-line-height-sm"
71
- },
72
- "lg": {
73
- "value": "{typography.input.btn.line-height.lg}", "type": "dimension", "source": "$btn-line-height-lg"
74
- }
46
+ "$type": "number",
47
+ "base": { "source": "$btn-line-height", "$value": "{typography.input.btn.line-height.base}" },
48
+ "sm": { "source": "$btn-line-height-sm", "$value": "{typography.input.btn.line-height.sm}" },
49
+ "lg": { "source": "$btn-line-height-lg", "$value": "{typography.input.btn.line-height.lg}" }
75
50
  }
76
51
  }
77
52
  },
78
53
  "size": {
54
+ "$type": "dimension",
79
55
  "btn": {
80
56
  "border": {
81
- "width": { "value": "{size.input.btn.border-width}", "type": "dimension", "source": "$btn-border-width" },
57
+ "width": { "source": "$btn-border-width", "$value": "{size.input.btn.border-width}" },
82
58
  "radius": {
83
- "base": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$btn-border-radius" },
84
- "lg": { "value": "{size.border.radius.lg}", "type": "dimension", "source": "$btn-border-radius-lg" },
85
- "sm": { "value": "{size.border.radius.sm}", "type": "dimension", "source": "$btn-border-radius-sm" }
59
+ "base": { "source": "$btn-border-radius", "$value": "{size.border.radius.base}" },
60
+ "lg": { "source": "$btn-border-radius-lg", "$value": "{size.border.radius.lg}" },
61
+ "sm": { "source": "$btn-border-radius-sm", "$value": "{size.border.radius.sm}" }
86
62
  }
87
63
  },
88
64
  "focus": {
89
- "width": { "value": "2px", "type": "dimension", "source": "$btn-focus-width" },
65
+ "width": { "source": "$btn-focus-width", "$value": "2px" },
90
66
  "border-radius": {
91
67
  "base": {
92
- "value": "calc({size.btn.border.radius.base} + {spacing.btn.focus.border-gap})",
93
- "type": "dimension",
94
- "source": "$btn-focus-border-radius"
68
+ "source": "$btn-focus-border-radius",
69
+ "$value": "calc({size.btn.border.radius.base} + {spacing.btn.focus.border-gap})"
95
70
  },
96
- "lg": { "value": "{size.btn.focus.border-radius.base}", "type": "dimension", "source": "$btn-focus-border-radius-lg" },
97
- "sm": { "value": "{size.btn.border.radius.base}", "type": "dimension", "source": "$btn-focus-border-radius-sm" }
71
+ "lg": { "source": "$btn-focus-border-radius-lg", "$value": "{size.btn.focus.border-radius.base}" },
72
+ "sm": { "source": "$btn-focus-border-radius-sm", "$value": "{size.btn.border.radius.base}" }
98
73
  }
99
74
  }
100
75
  }
101
76
  },
102
77
  "transition": {
103
- "btn": { "value": "none", "type": "transition", "source": "$btn-transition" }
78
+ "$type": "transition",
79
+ "btn": { "source": "$btn-transition", "$value": "none" }
104
80
  }
105
81
  }