@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,251 +1,310 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "btn": {
4
5
  "text": {
5
6
  "success": {
6
- "value": "{color.btn.bg.success}",
7
- "type": "color",
8
7
  "source": "$btn-success-color",
9
- "modify": [{ "type": "color-yiq" }]
8
+ "modify": [{ "type": "color-yiq" }],
9
+ "$value": "{color.btn.bg.success}"
10
10
  },
11
11
  "outline-success": {
12
- "value": "{color.success.base}", "type": "color", "source": "$btn-success-outline-color"
12
+ "source": "$btn-success-outline-color",
13
+ "$value": "{color.success.base}"
13
14
  },
14
15
  "inverse-success": {
15
- "value": "{color.success.base}", "type": "color", "source": "$btn-success-inverse-color"
16
+ "source": "$btn-success-inverse-color",
17
+ "$value": "{color.success.base}"
16
18
  },
17
19
  "inverse-outline-success": {
18
- "value": "{color.white}", "type": "color", "source": "$btn-success-inverse-outline-color"
20
+ "source": "$btn-success-inverse-outline-color",
21
+ "$value": "{color.white}"
19
22
  }
20
23
  },
21
24
  "bg": {
22
- "success": { "value": "{color.success.base}", "type": "color", "source": "$btn-success-bg" },
23
- "outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-outline-bg" },
25
+ "success": {
26
+ "source": "$btn-success-bg",
27
+ "$value": "{color.success.base}"
28
+ },
29
+ "outline-success": {
30
+ "source": "$btn-success-outline-bg",
31
+ "$value": "inherit"
32
+ },
24
33
  "inverse-success": {
25
- "value": "{color.btn.text.inverse-success}",
26
- "type": "color",
27
34
  "source": "$btn-success-inverse-bg",
28
- "modify": [{ "type": "color-yiq" }]
35
+ "modify": [{ "type": "color-yiq" }],
36
+ "$value": "{color.btn.text.inverse-success}"
29
37
  },
30
- "inverse-outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-inverse-outline-bg" }
38
+ "inverse-outline-success": {
39
+ "source": "$btn-success-inverse-outline-bg",
40
+ "$value": "inherit"
41
+ }
31
42
  },
32
43
  "border": {
33
- "success": { "value": "{color.btn.bg.success}", "type": "color", "source": "$btn-success-border-color" },
44
+ "success": {
45
+ "source": "$btn-success-border-color",
46
+ "$value": "{color.btn.bg.success}"
47
+ },
34
48
  "outline-success": {
35
- "value": "{color.success.base}", "type": "color", "source": "$btn-success-outline-border-color"
49
+ "source": "$btn-success-outline-border-color",
50
+ "$value": "{color.success.base}"
51
+ },
52
+ "inverse-success": {
53
+ "source": "$btn-success-inverse-border-color",
54
+ "$value": "transparent"
36
55
  },
37
- "inverse-success": { "value": "transparent", "type": "color", "source": "$btn-success-inverse-border-color" },
38
56
  "inverse-outline-success": {
39
- "value": "{color.white}", "type": "color", "source": "$btn-success-inverse-outline-border-color"
57
+ "source": "$btn-success-inverse-outline-border-color",
58
+ "$value": "{color.white}"
40
59
  }
41
60
  },
42
61
  "hover": {
43
62
  "text": {
44
63
  "success": {
45
- "value": "{color.btn.hover.bg.success}",
46
- "type": "color",
47
64
  "source": "$btn-success-hover-color",
48
- "modify": [{ "type": "color-yiq" }]
65
+ "modify": [{ "type": "color-yiq" }],
66
+ "$value": "{color.btn.hover.bg.success}"
49
67
  },
50
68
  "outline-success": {
51
- "value": "{color.theme.hover.success}", "type": "color", "source": "$btn-success-outline-hover-color"
69
+ "source": "$btn-success-outline-hover-color",
70
+ "$value": "{color.theme.hover.success}"
52
71
  },
53
72
  "inverse-success": {
54
- "value": "{color.btn.text.inverse-success}",
55
- "type": "color",
56
73
  "source": "$btn-success-inverse-hover-color",
57
- "modify": [{ "type": "darken", "amount": 0.075 }]
74
+ "modify": [{ "type": "darken", "amount": 0.075 }],
75
+ "$value": "{color.btn.text.inverse-success}"
58
76
  },
59
77
  "inverse-outline-success": {
60
- "value": "{color.theme.hover.success}",
61
- "type": "color",
62
- "source": "$btn-success-inverse-outline-hover-color"
78
+ "source": "$btn-success-inverse-outline-hover-color",
79
+ "$value": "{color.theme.hover.success}"
63
80
  }
64
81
  },
65
82
  "bg": {
66
83
  "success": {
67
- "value": "{color.theme.hover.success}", "type": "color", "source": "$btn-success-hover-bg"
84
+ "source": "$btn-success-hover-bg",
85
+ "$value": "{color.theme.hover.success}"
68
86
  },
69
87
  "outline-success": {
70
- "value": "{color.success.100}", "type": "color", "source": "$btn-success-outline-hover-bg"
88
+ "source": "$btn-success-outline-hover-bg",
89
+ "$value": "{color.success.100}"
71
90
  },
72
91
  "inverse-success": {
73
- "value": "{color.btn.bg.inverse-success}",
74
- "type": "color",
75
92
  "source": "$btn-success-inverse-hover-bg",
76
- "modify": [{ "type": "darken", "amount": 0.075 }]
93
+ "modify": [{ "type": "darken", "amount": 0.075 }],
94
+ "$value": "{color.btn.bg.inverse-success}"
77
95
  },
78
96
  "inverse-outline-success": {
79
- "value": "{color.success.100}", "type": "color", "source": "$btn-success-inverse-outline-hover-bg"
97
+ "source": "$btn-success-inverse-outline-hover-bg",
98
+ "$value": "{color.success.100}"
80
99
  }
81
100
  },
82
101
  "border": {
83
102
  "success": {
84
- "value": "{color.theme.hover.success}", "type": "color", "source": "$btn-success-hover-border-color"
103
+ "source": "$btn-success-hover-border-color",
104
+ "$value": "{color.theme.hover.success}"
85
105
  },
86
106
  "outline-success": {
87
- "value": "{color.success.900}", "type": "color", "source": "$btn-success-outline-hover-border-color"
107
+ "source": "$btn-success-outline-hover-border-color",
108
+ "$value": "{color.success.900}"
109
+ },
110
+ "inverse-success": {
111
+ "source": "$btn-success-inverse-hover-border-color",
112
+ "$value": "transparent"
88
113
  },
89
- "inverse-success": { "value": "transparent", "type": "color", "source": "$btn-success-inverse-hover-border-color" },
90
114
  "inverse-outline-success": {
91
- "value": "transparent", "type": "color", "source": "$btn-success-inverse-outline-hover-border-color"
115
+ "source": "$btn-success-inverse-outline-hover-border-color",
116
+ "$value": "transparent"
92
117
  }
93
118
  }
94
119
  },
95
120
  "active": {
96
121
  "text": {
97
122
  "success": {
98
- "value": "{color.btn.active.bg.success}",
99
- "type": "color",
100
123
  "source": "$btn-success-active-color",
101
- "modify": [{ "type": "color-yiq" }]
124
+ "modify": [{ "type": "color-yiq" }],
125
+ "$value": "{color.btn.active.bg.success}"
102
126
  },
103
127
  "outline-success": {
104
- "value": "{color.btn.active.bg.outline-success}",
105
- "type": "color",
106
128
  "source": "$btn-success-outline-active-color",
107
- "modify": [{ "type": "color-yiq" }]
129
+ "modify": [{ "type": "color-yiq" }],
130
+ "$value": "{color.btn.active.bg.outline-success}"
108
131
  },
109
132
  "inverse-success": {
110
- "value": "{color.btn.text.inverse-success}",
111
- "type": "color",
112
133
  "source": "$btn-success-inverse-active-color",
113
- "modify": [{ "type": "darken", "amount": 0.1 }]
134
+ "modify": [{ "type": "darken", "amount": 0.1 }],
135
+ "$value": "{color.btn.text.inverse-success}"
114
136
  },
115
137
  "inverse-outline-success": {
116
- "value": "{color.btn.active.bg.inverse-outline-success}",
117
- "type": "color",
118
138
  "source": "$btn-success-inverse-outline-active-color",
119
- "modify": [{ "type": "color-yiq" }] }
139
+ "modify": [{ "type": "color-yiq" }],
140
+ "$value": "{color.btn.active.bg.inverse-outline-success}"
141
+ }
120
142
  },
121
143
  "bg": {
122
144
  "success": {
123
- "value": "{color.theme.active.success}", "type": "color", "source": "$btn-success-active-bg"
145
+ "source": "$btn-success-active-bg",
146
+ "$value": "{color.theme.active.success}"
124
147
  },
125
148
  "outline-success": {
126
- "value": "{color.theme.bg.success}", "type": "color", "source": "$btn-success-outline-active-bg"
149
+ "source": "$btn-success-outline-active-bg",
150
+ "$value": "{color.theme.bg.success}"
151
+ },
152
+ "inverse-success": {
153
+ "source": "$btn-success-inverse-active-bg",
154
+ "$value": "{color.gray.100}"
127
155
  },
128
- "inverse-success": { "value": "{color.gray.100}", "type": "color", "source": "$btn-success-inverse-active-bg" },
129
156
  "inverse-outline-success": {
130
- "value": "{color.theme.bg.success}",
131
- "type": "color",
132
- "source": "$btn-success-inverse-outline-active-bg"
157
+ "source": "$btn-success-inverse-outline-active-bg",
158
+ "$value": "{color.theme.bg.success}"
133
159
  }
134
160
  },
135
161
  "border": {
136
162
  "success": {
137
- "value": "{color.theme.active.success}",
138
- "type": "color",
139
- "source": "$btn-success-active-border-color"
163
+ "source": "$btn-success-active-border-color",
164
+ "$value": "{color.theme.active.success}"
140
165
  },
141
166
  "outline-success": {
142
- "value": "{color.theme.active.success}",
143
- "type": "color",
144
- "source": "$btn-success-outline-active-border-color"
167
+ "source": "$btn-success-outline-active-border-color",
168
+ "$value": "{color.theme.active.success}"
145
169
  },
146
170
  "inverse-success": {
147
- "value": "inherit",
148
- "source": "$btn-success-inverse-active-border-color"
171
+ "source": "$btn-success-inverse-active-border-color",
172
+ "$value": "inherit"
149
173
  },
150
174
  "inverse-outline-success": {
151
- "value": "transparent",
152
- "type": "color",
153
- "source": "$btn-success-inverse-outline-active-border-color"
175
+ "source": "$btn-success-inverse-outline-active-border-color",
176
+ "$value": "transparent"
154
177
  }
155
178
  }
156
179
  },
157
180
  "focus": {
158
181
  "text": {
159
- "success": { "value": "{color.btn.text.success}", "type": "color", "source": "$btn-success-focus-color" },
182
+ "success": {
183
+ "source": "$btn-success-focus-color",
184
+ "$value": "{color.btn.text.success}"
185
+ },
160
186
  "outline-success": {
161
- "value": "{color.btn.text.outline-success}",
162
- "type": "color",
163
- "source": "$btn-success-outline-focus-color"
187
+ "source": "$btn-success-outline-focus-color",
188
+ "$value": "{color.btn.text.outline-success}"
164
189
  },
165
190
  "inverse-success": {
166
- "value": "{color.btn.text.inverse-success}",
167
- "type": "color",
168
- "source": "$btn-success-inverse-focus-color"
191
+ "source": "$btn-success-inverse-focus-color",
192
+ "$value": "{color.btn.text.inverse-success}"
169
193
  },
170
194
  "inverse-outline-success": {
171
- "value": "{color.btn.text.inverse-outline-success}",
172
- "type": "color",
173
- "source": "$btn-success-inverse-outline-focus-color"
195
+ "source": "$btn-success-inverse-outline-focus-color",
196
+ "$value": "{color.btn.text.inverse-outline-success}"
174
197
  }
175
198
  },
176
199
  "border": {
177
- "success": { "value": "{color.btn.border.success}", "type": "color", "source": "$btn-success-focus-border-color" },
200
+ "success": {
201
+ "source": "$btn-success-focus-border-color",
202
+ "$value": "{color.btn.border.success}"
203
+ },
178
204
  "outline-success": {
179
- "value": "{color.btn.border.outline-success}",
180
- "type": "color",
181
- "source": "$btn-success-outline-focus-border-color"
205
+ "source": "$btn-success-outline-focus-border-color",
206
+ "$value": "{color.btn.border.outline-success}"
182
207
  },
183
208
  "inverse-success": {
184
- "value": "{color.white}",
185
- "type": "color",
186
- "source": "$btn-success-inverse-focus-border-color"
209
+ "source": "$btn-success-inverse-focus-border-color",
210
+ "$value": "{color.white}"
187
211
  },
188
212
  "inverse-outline-success": {
189
- "value": "{color.btn.border.inverse-outline-success}",
190
- "type": "color",
191
- "source": "$btn-success-inverse-outline-focus-border-color"
213
+ "source": "$btn-success-inverse-outline-focus-border-color",
214
+ "$value": "{color.btn.border.inverse-outline-success}"
192
215
  }
193
216
  },
194
217
  "bg": {
195
- "success": { "value": "{color.btn.bg.success}", "type": "color", "source": "$btn-success-focus-bg" },
196
- "outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-outline-focus-bg" },
197
- "inverse-success": { "value": "{color.btn.bg.inverse-success}", "type": "color", "source": "$btn-success-inverse-focus-bg" },
198
- "inverse-outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-inverse-outline-focus-bg" }
218
+ "success": {
219
+ "source": "$btn-success-focus-bg",
220
+ "$value": "{color.btn.bg.success}"
221
+ },
222
+ "outline-success": {
223
+ "source": "$btn-success-outline-focus-bg",
224
+ "$value": "inherit"
225
+ },
226
+ "inverse-success": {
227
+ "source": "$btn-success-inverse-focus-bg",
228
+ "$value": "{color.btn.bg.inverse-success}"
229
+ },
230
+ "inverse-outline-success": {
231
+ "source": "$btn-success-inverse-outline-focus-bg",
232
+ "$value": "inherit"
233
+ }
199
234
  },
200
235
  "outline": {
201
- "success": { "value": "{color.theme.focus.success}", "type": "color", "source": "$btn-success-focus-outline-color" },
236
+ "success": {
237
+ "source": "$btn-success-focus-outline-color",
238
+ "$value": "{color.theme.focus.success}"
239
+ },
202
240
  "outline-success": {
203
- "value": "{color.theme.focus.success}",
204
- "type": "color",
205
- "source": "$btn-success-outline-focus-outline-color"
241
+ "source": "$btn-success-outline-focus-outline-color",
242
+ "$value": "{color.theme.focus.success}"
206
243
  },
207
244
  "inverse-success": {
208
- "value": "{color.btn.focus.border.inverse-success}",
209
- "type": "color",
210
- "source": "$btn-success-inverse-focus-outline-color"
245
+ "source": "$btn-success-inverse-focus-outline-color",
246
+ "$value": "{color.btn.focus.border.inverse-success}"
211
247
  },
212
248
  "inverse-outline-success": {
213
- "value": "{color.btn.focus.border.inverse-outline-success}",
214
- "type": "color",
215
- "source": "$btn-success-inverse-outline-focus-outline-color"
249
+ "source": "$btn-success-inverse-outline-focus-outline-color",
250
+ "$value": "{color.btn.focus.border.inverse-outline-success}"
216
251
  }
217
252
  }
218
253
  },
219
254
  "disabled": {
220
255
  "text": {
221
- "success": { "value": "{color.btn.text.success}", "type": "color", "source": "$btn-success-disabled-color" },
256
+ "success": {
257
+ "source": "$btn-success-disabled-color",
258
+ "$value": "{color.btn.text.success}"
259
+ },
222
260
  "outline-success": {
223
- "value": "{color.btn.text.outline-success}",
224
- "type": "color",
225
- "source": "$btn-success-outline-disabled-color"
261
+ "source": "$btn-success-outline-disabled-color",
262
+ "$value": "{color.btn.text.outline-success}"
263
+ },
264
+ "inverse-success": {
265
+ "source": "$btn-success-inverse-disabled-color",
266
+ "$value": "{color.success.base}"
226
267
  },
227
- "inverse-success": { "value": "{color.success.base}", "type": "color", "source": "$btn-success-inverse-disabled-color" },
228
268
  "inverse-outline-success": {
229
- "value": "{color.btn.text.inverse-outline-success}",
230
- "type": "color",
231
- "source": "$btn-success-inverse-outline-disabled-color"
269
+ "source": "$btn-success-inverse-outline-disabled-color",
270
+ "$value": "{color.btn.text.inverse-outline-success}"
232
271
  }
233
272
  },
234
273
  "bg": {
235
- "success": { "value": "{color.btn.bg.success}", "type": "color", "source": "$btn-success-disabled-bg" },
236
- "outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-outline-disabled-bg" },
237
- "inverse-success": { "value": "inherit", "type": "color", "source": "$btn-success-inverse-disabled-bg" },
238
- "inverse-outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-inverse-outline-disabled-bg" }
274
+ "success": {
275
+ "source": "$btn-success-disabled-bg",
276
+ "$value": "{color.btn.bg.success}"
277
+ },
278
+ "outline-success": {
279
+ "source": "$btn-success-outline-disabled-bg",
280
+ "$value": "inherit"
281
+ },
282
+ "inverse-success": {
283
+ "source": "$btn-success-inverse-disabled-bg",
284
+ "$value": "inherit"
285
+ },
286
+ "inverse-outline-success": {
287
+ "source": "$btn-success-inverse-outline-disabled-bg",
288
+ "$value": "inherit"
289
+ }
239
290
  },
240
291
  "border": {
241
- "success": { "value": "{color.btn.border.success}", "type": "color", "source": "$btn-success-disabled-border-color" },
292
+ "success": {
293
+ "source": "$btn-success-disabled-border-color",
294
+ "$value": "{color.btn.border.success}"
295
+ },
242
296
  "outline-success": {
243
- "value": "{color.btn.border.outline-success}",
244
- "type": "color",
245
- "source": "$btn-success-outline-disabled-border-color"
297
+ "source": "$btn-success-outline-disabled-border-color",
298
+ "$value": "{color.btn.border.outline-success}"
299
+ },
300
+ "inverse-success": {
301
+ "source": "$btn-success-inverse-disabled-border-color",
302
+ "$value": "transparent"
246
303
  },
247
- "inverse-success": { "value": "transparent", "type": "color", "source": "$btn-success-inverse-disabled-border-color" },
248
- "inverse-outline-success": { "value": "inherit", "type": "color", "source": "$btn-success-inverse-outline-disabled-border-color" }
304
+ "inverse-outline-success": {
305
+ "source": "$btn-success-inverse-outline-disabled-border-color",
306
+ "$value": "inherit"
307
+ }
249
308
  }
250
309
  }
251
310
  }
@@ -1,107 +1,81 @@
1
1
  {
2
2
  "color": {
3
+ "$type": "color",
3
4
  "btn": {
4
5
  "text": {
5
- "tertiary": { "value": "{color.gray.700}", "type": "color", "source": "$btn-tertiary-color" },
6
- "inverse-tertiary": {
7
- "value": "{color.white}", "type": "color", "source": "$btn-inverse-tertiary-color"
8
- }
6
+ "tertiary": { "source": "$btn-tertiary-color", "$value": "{color.gray.700}" },
7
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-color", "$value": "{color.white}" }
9
8
  },
10
9
  "bg": {
11
- "tertiary": { "value": "transparent", "type": "color", "source": "$btn-tertiary-bg" },
12
- "inverse-tertiary": { "value": "transparent", "type": "color", "source": "$btn-inverse-tertiary-bg" }
10
+ "tertiary": { "source": "$btn-tertiary-bg", "$value": "transparent" },
11
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-bg", "$value": "transparent" }
13
12
  },
14
13
  "border": {
15
- "tertiary": { "value": "transparent", "type": "color", "source": "$btn-tertiary-border-color" },
16
- "inverse-tertiary": { "value": "transparent", "type": "color", "source": "$btn-inverse-tertiary-border-color" }
14
+ "tertiary": { "source": "$btn-tertiary-border-color", "$value": "transparent" },
15
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-border-color", "$value": "transparent" }
17
16
  },
18
17
  "hover": {
19
18
  "text": {
20
- "tertiary": { "value": "{color.gray.700}", "type": "color", "source": "$btn-tertiary-hover-color" },
21
- "inverse-tertiary": {
22
- "value": "{color.white}", "type": "color", "source": "$btn-inverse-tertiary-hover-color"
23
- }
19
+ "tertiary": { "source": "$btn-tertiary-hover-color", "$value": "{color.gray.700}" },
20
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-hover-color", "$value": "{color.white}" }
24
21
  },
25
22
  "bg": {
26
- "tertiary": { "value": "{color.light.500}", "type": "color", "source": "$btn-tertiary-hover-bg" },
23
+ "tertiary": { "source": "$btn-tertiary-hover-bg", "$value": "{color.light.500}" },
27
24
  "inverse-tertiary": {
28
- "value": "{color.white}",
29
- "type": "color",
30
25
  "source": "$btn-inverse-tertiary-hover-bg",
31
- "modify": [{ "type": "alpha", "amount": 0.1 }]
26
+ "modify": [{ "type": "alpha", "amount": 0.1 }],
27
+ "$value": "{color.white}"
32
28
  }
33
29
  },
34
30
  "border": {
35
- "tertiary": { "value": "transparent", "type": "color", "source": "$btn-tertiary-hover-border-color" },
36
- "inverse-tertiary": {
37
- "value": "transparent", "type": "color", "source": "$btn-inverse-tertiary-hover-border-color"
38
- }
31
+ "tertiary": { "source": "$btn-tertiary-hover-border-color", "$value": "transparent" },
32
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-hover-border-color", "$value": "transparent" }
39
33
  }
40
34
  },
41
35
  "active": {
42
36
  "text": {
43
- "tertiary": {
44
- "value": "{color.gray.700}", "type": "color", "source": "$btn-tertiary-active-color"
45
- },
46
- "inverse-tertiary": {
47
- "value": "{color.white}", "type": "color", "source": "$btn-inverse-tertiary-active-color"
48
- }
37
+ "tertiary": { "source": "$btn-tertiary-active-color", "$value": "{color.gray.700}" },
38
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-active-color", "$value": "{color.white}" }
49
39
  },
50
40
  "bg": {
51
- "tertiary": { "value": "{color.light.500}", "type": "color", "source": "$btn-tertiary-active-bg" },
52
- "inverse-tertiary": {
53
- "value": "{color.btn.hover.bg.inverse-tertiary}",
54
- "type": "color",
55
- "source": "$btn-inverse-tertiary-active-bg"
56
- }
41
+ "tertiary": { "source": "$btn-tertiary-active-bg", "$value": "{color.light.500}" },
42
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-active-bg", "$value": "{color.btn.hover.bg.inverse-tertiary}" }
57
43
  },
58
44
  "border": {
59
- "tertiary": { "value": "transparent", "type": "color", "source": "$btn-tertiary-active-border-color" },
60
- "inverse-tertiary": {
61
- "value": "transparent", "type": "color", "source": "$btn-inverse-tertiary-active-border-color"
62
- }
45
+ "tertiary": { "source": "$btn-tertiary-active-border-color", "$value": "transparent" },
46
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-active-border-color", "$value": "transparent" }
63
47
  }
64
48
  },
65
49
  "focus": {
66
50
  "text": {
67
- "tertiary": { "value": "{color.btn.text.tertiary}", "type": "color", "source": "$btn-tertiary-focus-color" },
68
- "inverse-tertiary": {
69
- "value": "{color.btn.text.inverse-tertiary}",
70
- "type": "color",
71
- "source": "$btn-inverse-tertiary-focus-color"
72
- }
51
+ "tertiary": { "source": "$btn-tertiary-focus-color", "$value": "{color.btn.text.tertiary}" },
52
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-focus-color", "$value": "{color.btn.text.inverse-tertiary}" }
73
53
  },
74
54
  "border": {
75
- "tertiary": { "value": "{color.btn.border.tertiary}", "type": "color", "source": "$btn-tertiary-focus-border-color" },
76
- "inverse-tertiary": { "value": "transparent", "type": "color", "source": "$btn-inverse-tertiary-focus-border-color" }
55
+ "tertiary": { "source": "$btn-tertiary-focus-border-color", "$value": "{color.btn.border.tertiary}" },
56
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-focus-border-color", "$value": "transparent" }
77
57
  },
78
58
  "bg": {
79
- "tertiary": { "value": "inherit", "type": "color", "source": "$btn-tertiary-focus-bg" },
80
- "inverse-tertiary": { "value": "inherit", "type": "color", "source": "$btn-inverse-tertiary-focus-bg" }
59
+ "tertiary": { "source": "$btn-tertiary-focus-bg", "$value": "inherit" },
60
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-focus-bg", "$value": "inherit" }
81
61
  },
82
62
  "outline": {
83
- "tertiary": { "value": "{color.theme.focus.primary}", "type": "color", "source": "$btn-tertiary-focus-outline-color" },
84
- "inverse-tertiary": { "value": "{color.white}", "type": "color", "source": "$btn-inverse-tertiary-focus-outline-color" }
63
+ "tertiary": { "source": "$btn-tertiary-focus-outline-color", "$value": "{color.theme.focus.primary}" },
64
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-focus-outline-color", "$value": "{color.white}" }
85
65
  }
86
66
  },
87
67
  "disabled": {
88
68
  "text": {
89
- "tertiary": { "value": "{color.btn.text.tertiary}", "type": "color", "source": "$btn-tertiary-disabled-color" },
90
- "inverse-tertiary": {
91
- "value": "{color.btn.text.inverse-tertiary}",
92
- "type": "color",
93
- "source": "$btn-inverse-tertiary-disabled-color"
94
- }
69
+ "tertiary": { "source": "$btn-tertiary-disabled-color", "$value": "{color.btn.text.tertiary}" },
70
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-disabled-color", "$value": "{color.btn.text.inverse-tertiary}" }
95
71
  },
96
72
  "bg": {
97
- "tertiary": { "value": "inherit", "type": "color", "source": "$btn-tertiary-disabled-bg" },
98
- "inverse-tertiary": { "value": "inherit", "type": "color", "source": "$btn-inverse-tertiary-disabled-bg" }
73
+ "tertiary": { "source": "$btn-tertiary-disabled-bg", "$value": "inherit" },
74
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-disabled-bg", "$value": "inherit" }
99
75
  },
100
76
  "border": {
101
- "tertiary": { "value": "{color.btn.border.tertiary}", "type": "color", "source": "$btn-tertiary-disabled-border-color" },
102
- "inverse-tertiary": {
103
- "value": "{color.btn.border.inverse-tertiary}", "type": "color", "source": "$btn-inverse-tertiary-disabled-border-color"
104
- }
77
+ "tertiary": { "source": "$btn-tertiary-disabled-border-color", "$value": "{color.btn.border.tertiary}" },
78
+ "inverse-tertiary": { "source": "$btn-inverse-tertiary-disabled-border-color", "$value": "{color.btn.border.inverse-tertiary}" }
105
79
  }
106
80
  }
107
81
  }