@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
@@ -3,118 +3,54 @@
3
3
  "form": {
4
4
  "input": {
5
5
  "font": {
6
- "family": {
7
- "value": "{typography.input.btn.font.family}", "type": "fontFamily", "source": "$input-font-family"
8
- },
6
+ "family": { "source": "$input-font-family", "$value": "{typography.input.btn.font.family}", "$type": "fontFamily" },
9
7
  "size": {
10
- "base": {
11
- "value": "{typography.input.btn.font.size.base}", "type": "dimension", "source": "$input-font-size"
12
- },
13
- "sm": {
14
- "value": "{typography.input.btn.font.size.sm}", "type": "dimension", "source": "$input-font-size-sm"
15
- },
16
- "lg": {
17
- "value": "{typography.input.btn.font.size.lg}", "type": "dimension", "source": "$input-font-size-lg"
18
- }
8
+ "$type": "dimension",
9
+ "base": { "source": "$input-font-size", "$value": "{typography.input.btn.font.size.base}" },
10
+ "sm": { "source": "$input-font-size-sm", "$value": "{typography.input.btn.font.size.sm}" },
11
+ "lg": { "source": "$input-font-size-lg", "$value": "{typography.input.btn.font.size.lg}" }
19
12
  },
20
- "weight": {
21
- "value": "{typography.font.weight.base}", "type": "fontWeight", "source": "$input-font-weight"
22
- }
13
+ "weight": { "source": "$input-font-weight", "$value": "{typography.font.weight.base}", "$type": "fontWeight" }
23
14
  },
24
15
  "line-height": {
25
- "base": {
26
- "value": "{typography.input.btn.line-height.base}",
27
- "type": "dimension",
28
- "source": "$input-line-height"
29
- },
30
- "sm": {
31
- "value": "{typography.input.btn.line-height.sm}",
32
- "type": "dimension",
33
- "source": "$input-line-height-sm"
34
- },
35
- "lg": {
36
- "value": "{typography.input.btn.line-height.lg}",
37
- "type": "dimension",
38
- "source": "$input-line-height-lg"
39
- }
16
+ "$type": "number",
17
+ "base": { "source": "$input-line-height", "$value": "{typography.input.btn.line-height.base}" },
18
+ "sm": { "source": "$input-line-height-sm", "$value": "{typography.input.btn.line-height.sm}" },
19
+ "lg": { "source": "$input-line-height-lg", "$value": "{typography.input.btn.line-height.lg}" }
40
20
  }
41
21
  },
42
22
  "control": {
43
23
  "select": {
44
24
  "font": {
45
- "family": {
46
- "value": "{typography.form.input.font.family}",
47
- "type": "fontFamily",
48
- "source": "$custom-select-font-family"
49
- },
25
+ "family": { "source": "$custom-select-font-family", "$value": "{typography.form.input.font.family}", "$type": "fontFamily" },
50
26
  "size": {
51
- "base": {
52
- "value": "{typography.form.input.font.size.base}",
53
- "type": "dimension",
54
- "source": "$custom-select-font-size"
55
- },
56
- "sm": {
57
- "value": "{typography.form.input.font.size.sm}",
58
- "type": "dimension",
59
- "source": "$custom-select-font-size-sm"
60
- },
61
- "lg": {
62
- "value": "{typography.form.input.font.size.lg}",
63
- "type": "dimension",
64
- "source": "$custom-select-font-size-lg"
65
- }
27
+ "$type": "dimension",
28
+ "base": { "source": "$custom-select-font-size", "$value": "{typography.form.input.font.size.base}" },
29
+ "sm": { "source": "$custom-select-font-size-sm", "$value": "{typography.form.input.font.size.sm}" },
30
+ "lg": { "source": "$custom-select-font-size-lg", "$value": "{typography.form.input.font.size.lg}" }
66
31
  },
67
- "weight": {
68
- "value": "{typography.form.input.font.weight}",
69
- "type": "fontWeight",
70
- "source": "$custom-select-font-weight"
71
- }
32
+ "weight": { "source": "$custom-select-font-weight", "$value": "{typography.form.input.font.weight}", "$type": "fontWeight" }
72
33
  },
73
- "line-height": {
74
- "value": "{typography.form.input.line-height.base}",
75
- "type": "dimension",
76
- "source": "$custom-select-line-height"
77
- }
34
+ "line-height": { "source": "$custom-select-line-height", "$value": "{typography.form.input.line-height.base}", "$type": "number" }
78
35
  },
79
36
  "file": {
80
- "line-height": {
81
- "value": "{typography.form.input.line-height.base}",
82
- "type": "dimension",
83
- "source": "$custom-file-line-height"
84
- },
37
+ "line-height": { "source": "$custom-file-line-height", "$value": "{typography.form.input.line-height.base}", "$type": "number" },
85
38
  "font": {
86
- "family": { "value": "{typography.form.input.font.family}",
87
- "type": "fontFamily",
88
- "source": "$custom-file-font-family" },
89
- "weight": {
90
- "value": "{typography.form.input.font.weight}",
91
- "type": "fontWeight",
92
- "source": "$custom-file-font-weight"
93
- }
39
+ "family": { "source": "$custom-file-font-family", "$value": "{typography.form.input.font.family}", "$type": "fontFamily" },
40
+ "weight": { "source": "$custom-file-font-weight", "$value": "{typography.form.input.font.weight}", "$type": "fontWeight" }
94
41
  }
95
42
  }
96
43
  },
97
44
  "feedback": {
45
+ "$type": "dimension",
98
46
  "font": {
99
- "size": {
100
- "value": "{typography.font.size.small.base}",
101
- "type": "dimension",
102
- "source": "$form-feedback-font-size"
103
- }
47
+ "size": { "source": "$form-feedback-font-size", "$value": "{typography.font.size.sm}" }
104
48
  },
105
49
  "tooltip": {
106
50
  "font": {
107
- "size": {
108
- "value": "{typography.font.size.sm}",
109
- "type": "dimension",
110
- "source": "$form-feedback-tooltip-font-size"
111
- }
51
+ "size": { "source": "$form-feedback-tooltip-font-size", "$value": "{typography.font.size.sm}" }
112
52
  },
113
- "line-height": {
114
- "value": "{typography.line-height.base}",
115
- "type": "dimension",
116
- "source": "$form-feedback-tooltip-line-height"
117
- }
53
+ "line-height": { "source": "$form-feedback-tooltip-line-height", "$value": "{typography.line-height.base}", "$type": "number" }
118
54
  }
119
55
  }
120
56
  }
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "icon": {
4
- "inline": { "value": ".8em", "type": "dimension", "source": "$icon-inline" },
5
- "xs": { "value": "1rem", "type": "dimension", "source": "$icon-xs" },
6
- "sm": { "value": "1.25rem", "type": "dimension", "source": "$icon-sm" },
7
- "md": { "value": "1.5rem", "type": "dimension", "source": "$icon-md" },
8
- "lg": { "value": "1.75rem", "type": "dimension", "source": "$icon-lg" }
5
+ "inline": { "source": "$icon-inline", "$value": ".8em" },
6
+ "xs": { "source": "$icon-xs", "$value": "1rem" },
7
+ "sm": { "source": "$icon-sm", "$value": "1.25rem" },
8
+ "md": { "source": "$icon-md", "$value": "1.5rem" },
9
+ "lg": { "source": "$icon-lg", "$value": "1.75rem" }
9
10
  }
10
11
  }
11
12
  }
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "size": {
3
+ "$type": "dimension",
3
4
  "icon-button": {
4
5
  "diameter": {
5
- "md": { "value": "2.75rem", "type": "dimension", "source": "$btn-icon-diameter-md" },
6
- "sm": { "value": "2.25rem", "type": "dimension", "source": "$btn-icon-diameter-sm" },
7
- "inline": {
8
- "value": "calc({typography.line-height.base} * 1em + .1em)",
9
- "type": "dimension",
10
- "source": "$btn-icon-diameter-inline"
11
- }
6
+ "md": { "source": "$btn-icon-diameter-md", "$value": "2.75rem" },
7
+ "sm": { "source": "$btn-icon-diameter-sm", "$value": "2.25rem" },
8
+ "inline": { "source": "$btn-icon-diameter-inline", "$value": "calc({typography.line-height.base} * 1em + .1em)" }
12
9
  }
13
10
  }
14
11
  }
@@ -1,27 +1,28 @@
1
1
  {
2
2
  "typography": {
3
+ "$type": "percentage",
3
4
  "image": {
4
5
  "figure-caption": {
5
- "font-size": { "value": "90%", "type": "percentage", "source": "$figure-caption-font-size" }
6
+ "font-size": { "source": "$figure-caption-font-size", "$value": "90%" }
6
7
  }
7
8
  }
8
9
  },
9
10
  "size": {
11
+ "$type": "dimension",
10
12
  "image": {
11
13
  "thumbnail": {
12
14
  "border": {
13
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$thumbnail-border-width" },
14
- "radius": {
15
- "value": "{size.border.radius.base}", "type": "dimension", "source": "$thumbnail-border-radius"
16
- }
15
+ "width": { "source": "$thumbnail-border-width", "$value": "{size.border.width}" },
16
+ "radius": { "source": "$thumbnail-border-radius", "$value": "{size.border.radius.base}" }
17
17
  }
18
18
  }
19
19
  }
20
20
  },
21
21
  "spacing": {
22
+ "$type": "dimension",
22
23
  "image": {
23
24
  "thumbnail": {
24
- "padding": { "value": ".25rem", "type": "dimension", "source": "$thumbnail-padding" }
25
+ "padding": { "source": "$thumbnail-padding", "$value": ".25rem" }
25
26
  }
26
27
  }
27
28
  }
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "menu": {
4
5
  "item": {
5
6
  "padding": {
6
- "x": { "value": "{spacing.btn.padding.x.base}", "type": "dimension", "source": "$menu-item-padding-x" },
7
- "y": { "value": "{spacing.btn.padding.y.base}", "type": "dimension", "source": "$menu-item-padding-y" }
7
+ "x": { "source": "$menu-item-padding-x", "$value": "{spacing.btn.padding.x.base}" },
8
+ "y": { "source": "$menu-item-padding-y", "$value": "{spacing.btn.padding.y.base}" }
8
9
  },
9
10
  "icon": {
10
11
  "margin": {
11
- "left": { "value": ".25em", "type": "dimension", "source": "$menu-item-icon-margin-left" },
12
- "right": { "value": "{spacing.menu.item.icon.margin.left}", "type": "dimension", "source": "$menu-item-icon-margin-right" }
12
+ "left": { "source": "$menu-item-icon-margin-left", "$value": ".25em" },
13
+ "right": { "source": "$menu-item-icon-margin-right", "$value": "{spacing.menu.item.icon.margin.left}" }
13
14
  }
14
15
  }
15
16
  }
@@ -20,27 +21,28 @@
20
21
  "select": {
21
22
  "btn-link": {
22
23
  "text-decoration": {
23
- "line": { "value": "underline", "type": "textDecoration", "source": "$menu-select-btn-link-text-decoration-line" },
24
- "thickness": { "value": ".125rem", "type": "dimension", "source": "$menu-select-btn-link-text-decoration-thickness" }
24
+ "line": { "source": "$menu-select-btn-link-text-decoration-line", "$value": "underline", "$type": "textDecoration" },
25
+ "thickness": { "source": "$menu-select-btn-link-text-decoration-thickness", "$value": ".125rem", "$type": "dimension" }
25
26
  }
26
27
  }
27
28
  }
28
29
  }
29
30
  },
30
31
  "size": {
32
+ "$type": "dimension",
31
33
  "menu": {
32
34
  "base": {
33
- "border-radius": { "value": ".25em", "type": "dimension", "source": "$menu-border-radius" },
34
- "max-height": { "value": "16.813rem", "type": "dimension", "source": "$menu-max-height" }
35
+ "border-radius": { "source": "$menu-border-radius", "$value": ".25em" },
36
+ "max-height": { "source": "$menu-max-height", "$value": "16.813rem" }
35
37
  },
36
38
  "item": {
37
- "height": { "value": "3rem", "type": "dimension", "source": "$menu-item-height" },
39
+ "height": { "source": "$menu-item-height", "$value": "3rem" },
38
40
  "width": {
39
- "base": { "value": "19rem", "type": "dimension", "source": "$menu-item-width" },
40
- "xs": { "value": "13.438rem", "type": "dimension", "source": "$menu-item-width-xs" }
41
+ "base": { "source": "$menu-item-width", "$value": "19rem" },
42
+ "xs": { "source": "$menu-item-width-xs", "$value": "13.438rem" }
41
43
  },
42
44
  "border": {
43
- "width": { "value": "{size.btn.border.width}", "type": "dimension", "source": "$menu-item-border-width" }
45
+ "width": { "source": "$menu-item-border-width", "$value": "{size.btn.border.width}" }
44
46
  }
45
47
  }
46
48
  }
@@ -1,47 +1,52 @@
1
1
  {
2
2
  "elevation": {
3
+ "$type": "number",
3
4
  "modal": {
4
- "backdrop-zindex": { "value": "1040", "type": "ratio", "source": "$zindex-modal-backdrop" },
5
- "zindex": { "value": "1050", "type": "ratio", "source": "$zindex-modal" }
5
+ "backdrop-zindex": { "source": "$zindex-modal-backdrop", "$value": "1040" },
6
+ "zindex": { "source": "$zindex-modal", "$value": "1050" }
6
7
  }
7
8
  },
8
9
  "size": {
10
+ "$type": "dimension",
9
11
  "modal": {
10
- "xl": { "value": "1140px", "type": "dimension", "source": "$modal-xl" },
11
- "lg": { "value": "800px", "type": "dimension", "source": "$modal-lg" },
12
- "md": { "value": "500px", "type": "dimension", "source": "$modal-md" },
13
- "sm": { "value": "400px", "type": "dimension", "source": "$modal-sm" },
12
+ "xl": { "source": "$modal-xl", "$value": "1140px" },
13
+ "lg": { "source": "$modal-lg", "$value": "800px" },
14
+ "md": { "source": "$modal-md", "$value": "500px" },
15
+ "sm": { "source": "$modal-sm", "$value": "400px" },
14
16
  "content-border": {
15
- "width": { "value": "0px", "type": "dimension", "source": "$modal-content-border-width" },
16
- "radius": {
17
- "value": "{size.border.radius.lg}", "type": "dimension", "source": "$modal-content-border-radius"
18
- }
17
+ "width": { "source": "$modal-content-border-width", "$value": "0px" },
18
+ "radius": { "source": "$modal-content-border-radius", "$value": "{size.border.radius.lg}" }
19
19
  }
20
20
  }
21
21
  },
22
22
  "spacing": {
23
+ "$type": "dimension",
23
24
  "modal": {
24
25
  "inner-padding": {
25
- "base": { "value": "1.5rem", "type": "dimension", "source": "$modal-inner-padding" },
26
- "bottom": { "value": ".7rem", "type": "dimension", "source": "$modal-inner-padding-bottom" }
26
+ "base": { "source": "$modal-inner-padding", "$value": "1.5rem" },
27
+ "bottom": { "source": "$modal-inner-padding-bottom", "$value": ".7rem" }
27
28
  },
28
29
  "footer-padding": {
29
30
  "base": {
30
- "value": "{spacing.modal.footer-padding.y} 1.5rem",
31
- "type": "dimension",
32
- "source": "$modal-footer-padding"
31
+ "source": "$modal-footer-padding",
32
+ "$value": {
33
+ "x": "1.5rem",
34
+ "y": "{spacing.modal.footer-padding.y}"
35
+ }
33
36
  },
34
- "y": { "value": "1rem", "type": "dimension", "source": "$modal-footer-padding-y" }
37
+ "y": { "source": "$modal-footer-padding-y", "$value": "1rem" }
35
38
  },
36
39
  "header-padding": {
37
40
  "base": {
38
- "value": "{spacing.modal.header-padding.y} 1.5rem",
39
- "type": "dimension",
40
- "source": "$modal-header-padding"
41
+ "source": "$modal-header-padding",
42
+ "$value": {
43
+ "x": "1.5rem",
44
+ "y": "{spacing.modal.header-padding.y}"
45
+ }
41
46
  },
42
- "y": { "value": "1rem", "type": "dimension", "source": "$modal-header-padding-y" }
47
+ "y": { "source": "$modal-header-padding-y", "$value": "1rem" }
43
48
  },
44
- "dialog-margin": { "value": "1.5rem", "type": "dimension", "source": "$modal-dialog-margin" }
49
+ "dialog-margin": { "source": "$modal-dialog-margin", "$value": "1.5rem" }
45
50
  }
46
51
  }
47
52
  }
@@ -2,50 +2,48 @@
2
2
  "typography": {
3
3
  "nav": {
4
4
  "link": {
5
- "font-weight": { "value": "500", "type": "fontWeight", "source": "$nav-link-font-weight" },
6
- "text-decoration": { "value": "none", "type": "textDecoration" }
5
+ "font-weight": { "source": "$nav-link-font-weight", "$value": "500", "$type": "fontWeight" },
6
+ "text-decoration": { "$value": "none", "$type": "textDecoration" }
7
7
  }
8
8
  }
9
9
  },
10
10
  "size": {
11
+ "$type": "dimension",
11
12
  "nav": {
12
13
  "pills": {
13
- "border-radius": { "value": "{size.border.radius.base}", "type": "dimension", "source": "$nav-pills-border-radius" },
14
+ "border-radius": { "source": "$nav-pills-border-radius", "$value": "{size.border.radius.base}" },
14
15
  "link": {
15
- "border-width": { "value": "1px", "type": "dimension", "source": "$nav-pills-link-border-width" }
16
+ "border-width": { "source": "$nav-pills-link-border-width", "$value": "1px" }
16
17
  },
17
18
  "inverse-link": {
18
- "border-width": { "value": "{size.nav.pills.link.border-width}", "type": "dimension", "source": "$nav-inverse-pills-link-border-width" }
19
+ "border-width": { "source": "$nav-inverse-pills-link-border-width", "$value": "{size.nav.pills.link.border-width}" }
19
20
  }
20
21
  },
21
22
  "tabs": {
22
23
  "link": {
23
24
  "border-bottom": {
24
- "width": { "value": ".188rem", "type": "dimension", "source": "$nav-tabs-link-border-bottom-width" }
25
+ "width": { "source": "$nav-tabs-link-border-bottom-width", "$value": ".188rem" }
25
26
  }
26
27
  },
27
28
  "inverse-link": {
28
- "active-border-bottom-width": {
29
- "value": "{size.nav.tabs.link.border-bottom.width}",
30
- "type": "dimension",
31
- "source": "$nav-inverse-tabs-link-active-border-bottom-width"
32
- }
29
+ "active-border-bottom-width": { "source": "$nav-inverse-tabs-link-active-border-bottom-width", "$value": "{size.nav.tabs.link.border-bottom.width}" }
33
30
  },
34
31
  "border": {
35
- "width": { "value": "2px", "type": "dimension", "source": "$nav-tabs-border-width" },
36
- "radius": { "value": "0", "type": "dimension", "source": "$nav-tabs-border-radius" }
32
+ "width": { "source": "$nav-tabs-border-width", "$value": "2px" },
33
+ "radius": { "source": "$nav-tabs-border-radius", "$value": "0" }
37
34
  }
38
35
  }
39
36
  }
40
37
  },
41
38
  "spacing": {
39
+ "$type": "dimension",
42
40
  "nav": {
43
41
  "link": {
44
42
  "padding": {
45
- "y": { "value": ".5rem", "type": "dimension", "source": "$nav-link-padding-y" },
46
- "x": { "value": "1rem", "type": "dimension", "source": "$nav-link-padding-x" }
43
+ "y": { "source": "$nav-link-padding-y", "$value": ".5rem" },
44
+ "x": { "source": "$nav-link-padding-x", "$value": "1rem" }
47
45
  },
48
- "distance-to-border": { "value": "4px", "type": "dimension", "source": "$nav-tabs-link-distance-to-border" }
46
+ "distance-to-border": { "source": "$nav-tabs-link-distance-to-border", "$value": "4px" }
49
47
  }
50
48
  }
51
49
  }
@@ -1,69 +1,54 @@
1
1
  {
2
2
  "spacing": {
3
+ "$type": "dimension",
3
4
  "navbar": {
4
5
  "padding": {
5
- "y": { "value": "calc({spacing.spacer.base} / 2)", "type": "dimension", "source": "$navbar-padding-y" },
6
+ "y": { "source": "$navbar-padding-y", "$value": "calc({spacing.spacer.base} / 2)" },
6
7
  "x": {
7
- "base": { "value": "{spacing.spacer.base}", "type": "dimension", "source": "$navbar-padding-x" },
8
- "nav-link": { "value": ".5rem", "type": "dimension", "source": "$navbar-nav-link-padding-x" }
8
+ "base": { "source": "$navbar-padding-x", "$value": "{spacing.spacer.base}" },
9
+ "nav-link": { "source": "$navbar-nav-link-padding-x", "$value": ".5rem" }
9
10
  }
10
11
  },
11
12
  "brand": {
12
13
  "padding": {
13
- "y": {
14
- "value": "calc(({typography.navbar.nav-link.height} - {size.navbar.brand.height}) / 2)",
15
- "type": "dimension",
16
- "source": "$navbar-brand-padding-y"
17
- }
14
+ "y": { "source": "$navbar-brand-padding-y", "$value": "calc(({typography.navbar.nav-link.height} - {size.navbar.brand.height}) / 2)" }
18
15
  }
19
16
  },
20
17
  "toggler": {
21
18
  "padding": {
22
- "y": { "value": ".25rem", "type": "dimension", "source": "$navbar-toggler-padding-y" },
23
- "x": { "value": ".75rem", "type": "dimension", "source": "$navbar-toggler-padding-x" }
19
+ "y": { "source": "$navbar-toggler-padding-y", "$value": ".25rem" },
20
+ "x": { "source": "$navbar-toggler-padding-x", "$value": ".75rem" }
24
21
  }
25
22
  }
26
23
  }
27
24
  },
28
25
  "typography": {
26
+ "$type": "dimension",
29
27
  "navbar": {
30
28
  "brand": {
31
- "font-size": {
32
- "value": "{typography.font.size.lg}", "type": "dimension", "source": "$navbar-brand-font-size"
33
- }
29
+ "font-size": { "source": "$navbar-brand-font-size", "$value": "{typography.font.size.lg}" }
34
30
  },
35
31
  "nav-link": {
36
- "height": {
37
- "value": "calc({typography.font.size.base} * {typography.line-height.base} + .5rem * 2)",
38
- "type": "dimension",
39
- "source": "$nav-link-height"
40
- }
32
+ "height": { "source": "$nav-link-height", "$value": "calc({typography.font.size.base} * {typography.line-height.base} + .5rem * 2)" }
41
33
  },
42
34
  "toggler": {
43
- "font-size": {
44
- "value": "{typography.font.size.lg}", "type": "dimension", "source": "$navbar-toggler-font-size"
45
- }
35
+ "font-size": { "source": "$navbar-toggler-font-size", "$value": "{typography.font.size.lg}" }
46
36
  }
47
37
  }
48
38
  },
49
39
  "size": {
40
+ "$type": "dimension",
50
41
  "navbar": {
51
42
  "nav": {
52
43
  "scroll": {
53
- "max-height": { "value": "75vh", "type": "dimension", "source": "$navbar-nav-scroll-max-height" }
44
+ "max-height": { "source": "$navbar-nav-scroll-max-height", "$value": "75vh" }
54
45
  }
55
46
  },
56
47
  "brand": {
57
- "height": {
58
- "value": "calc({typography.navbar.brand.font-size} * {typography.line-height.base})",
59
- "type": "dimension",
60
- "source": "$navbar-brand-height"
61
- }
48
+ "height": { "source": "$navbar-brand-height", "$value": "calc({typography.navbar.brand.font-size} * {typography.line-height.base})" }
62
49
  },
63
50
  "toggler": {
64
- "border-radius": {
65
- "value": "{size.btn.border.radius.base}", "type": "dimension", "source": "$navbar-toggler-border-radius"
66
- }
51
+ "border-radius": { "source": "$navbar-toggler-border-radius", "$value": "{size.btn.border.radius.base}" }
67
52
  }
68
53
  }
69
54
  }
@@ -2,64 +2,63 @@
2
2
  "typography": {
3
3
  "pagination": {
4
4
  "font-size": {
5
- "sm": { "value": ".875rem", "type": "dimension", "source": "$pagination-font-size-sm" }
5
+ "$type": "dimension",
6
+ "sm": { "source": "$pagination-font-size-sm", "$value": ".875rem" }
6
7
  },
7
- "line-height": { "value": "1.5rem", "type": "dimension", "source": "$pagination-line-height" }
8
+ "line-height": { "source": "$pagination-line-height", "$value": "1.5rem", "$type": "number" }
8
9
  }
9
10
  },
10
11
  "spacing": {
12
+ "$type": "dimension",
11
13
  "pagination": {
12
14
  "padding": {
13
15
  "y": {
14
- "base": { "value": ".625rem", "type": "dimension", "source": "$pagination-padding-y" },
15
- "sm": { "value": ".8rem", "type": "dimension", "source": "$pagination-padding-y-sm" },
16
- "lg": { "value": ".75rem", "type": "dimension", "source": "$pagination-padding-y-lg" }
16
+ "base": { "source": "$pagination-padding-y", "$value": ".625rem" },
17
+ "sm": { "source": "$pagination-padding-y-sm", "$value": ".8rem" },
18
+ "lg": { "source": "$pagination-padding-y-lg", "$value": ".75rem" }
17
19
  },
18
20
  "x": {
19
- "base": { "value": "1rem", "type": "dimension", "source": "$pagination-padding-x" },
20
- "sm": { "value": ".6rem", "type": "dimension", "source": "$pagination-padding-x-sm" },
21
- "lg": { "value": "1.5rem", "type": "dimension", "source": "$pagination-padding-x-lg" }
21
+ "base": { "source": "$pagination-padding-x", "$value": "1rem" },
22
+ "sm": { "source": "$pagination-padding-x-sm", "$value": ".6rem" },
23
+ "lg": { "source": "$pagination-padding-x-lg", "$value": "1.5rem" }
22
24
  }
23
25
  }
24
26
  }
25
27
  },
26
28
  "size": {
29
+ "$type": "dimension",
27
30
  "pagination": {
28
31
  "icon": {
29
- "width": { "value": "2.25rem", "type": "dimension", "source": "$pagination-icon-width" },
30
- "height": { "value": "2.25rem", "type": "dimension", "source": "$pagination-icon-height" }
32
+ "width": { "source": "$pagination-icon-width", "$value": "2.25rem" },
33
+ "height": { "source": "$pagination-icon-height", "$value": "2.25rem" }
31
34
  },
32
35
  "secondary": {
33
36
  "height": {
34
- "base": { "value": "2.75rem", "type": "dimension", "source": "$pagination-secondary-height" },
35
- "sm": { "value": "2.25rem", "type": "dimension", "source": "$pagination-secondary-height-sm" }
37
+ "base": { "source": "$pagination-secondary-height", "$value": "2.75rem" },
38
+ "sm": { "source": "$pagination-secondary-height-sm", "$value": "2.25rem" }
36
39
  }
37
40
  },
38
41
  "border": {
39
- "width": { "value": "{size.border.width}", "type": "dimension", "source": "$pagination-border-width" },
42
+ "width": { "source": "$pagination-border-width", "$value": "{size.border.width}" },
40
43
  "radius": {
41
- "sm": {
42
- "value": "{size.border.radius.sm}", "type": "dimension", "source": "$pagination-border-radius-sm"
43
- },
44
- "lg": {
45
- "value": "{size.border.radius.lg}", "type": "dimension", "source": "$pagination-border-radius-lg"
46
- }
44
+ "sm": { "source": "$pagination-border-radius-sm", "$value": "{size.border.radius.sm}" },
45
+ "lg": { "source": "$pagination-border-radius-lg", "$value": "{size.border.radius.lg}" }
47
46
  }
48
47
  },
49
48
  "reduced": {
50
49
  "dropdown": {
51
- "max-height": { "value": "60vh", "type": "dimension", "source": "$pagination-reduced-dropdown-max-height" },
52
- "min-width": { "value": "6rem", "type": "dimension", "source": "$pagination-reduced-dropdown-min-width" }
50
+ "max-height": { "source": "$pagination-reduced-dropdown-max-height", "$value": "60vh" },
51
+ "min-width": { "source": "$pagination-reduced-dropdown-min-width", "$value": "6rem" }
53
52
  }
54
53
  },
55
54
  "toggle": {
56
55
  "border": {
57
- "base": { "value": ".3125rem", "type": "dimension", "source": "$pagination-toggle-border" },
58
- "sm": { "value": ".25rem", "type": "dimension", "source": "$pagination-toggle-border-sm" }
56
+ "base": { "source": "$pagination-toggle-border", "$value": ".3125rem" },
57
+ "sm": { "source": "$pagination-toggle-border-sm", "$value": ".25rem" }
59
58
  }
60
59
  },
61
60
  "focus": {
62
- "outline": { "value": "0", "type": "dimension", "source": "$pagination-focus-outline" }
61
+ "outline": { "source": "$pagination-focus-outline", "$value": "0" }
63
62
  }
64
63
  }
65
64
  }