@automattic/vip-design-system 1.2.3 → 1.3.1

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 (232) hide show
  1. package/.eslintignore +2 -1
  2. package/.prettierignore +1 -0
  3. package/.storybook/decorators/withBoundingBox.tsx +30 -4
  4. package/.storybook/decorators/withColorMode.tsx +5 -5
  5. package/CONTRIBUTING.md +1 -1
  6. package/build/system/Accordion/Accordion.js +6 -6
  7. package/build/system/Accordion/Accordion.stories.js +1 -1
  8. package/build/system/Accordion/Accordion.test.js +7 -5
  9. package/build/system/Avatar/Avatar.js +3 -2
  10. package/build/system/Badge/Badge.js +1 -0
  11. package/build/system/Button/Button.d.ts +11 -0
  12. package/build/system/Button/Button.js +12 -1
  13. package/build/system/Button/Button.stories.d.ts +2 -1
  14. package/build/system/Button/Button.stories.js +1 -2
  15. package/build/system/Button/Button.test.js +72 -45
  16. package/build/system/Button/ButtonSubmit.d.ts +17 -1
  17. package/build/system/Button/ButtonSubmit.js +58 -65
  18. package/build/system/Button/ButtonSubmit.stories.d.ts +17 -37
  19. package/build/system/Button/ButtonSubmit.stories.js +52 -0
  20. package/build/system/Button/ButtonSubmit.test.js +55 -35
  21. package/build/system/Button/index.d.ts +7 -3
  22. package/build/system/Button/index.js +8 -7
  23. package/build/system/Dropdown/DropdownContent.js +1 -1
  24. package/build/system/Dropdown/DropdownItem.js +1 -1
  25. package/build/system/Dropdown/DropdownLabel.js +1 -1
  26. package/build/system/Form/Checkbox.d.ts +9 -9
  27. package/build/system/Form/Checkbox.js +56 -61
  28. package/build/system/Form/Checkbox.stories.d.ts +6 -6
  29. package/build/system/Form/Checkbox.stories.js +71 -0
  30. package/build/system/Form/Input.d.ts +14 -1
  31. package/build/system/Form/Input.js +59 -72
  32. package/build/system/Form/Input.stories.d.ts +6 -4
  33. package/build/system/Form/Input.stories.js +53 -0
  34. package/build/system/Form/Input.styles.d.ts +23 -14
  35. package/build/system/Form/Input.styles.js +40 -28
  36. package/build/system/Form/InputWithCopyButton.stories.jsx +7 -0
  37. package/build/system/Form/Label.d.ts +19 -8
  38. package/build/system/Form/Label.js +39 -43
  39. package/build/system/Form/Label.stories.d.ts +7 -5
  40. package/build/system/Form/Label.stories.js +32 -0
  41. package/build/system/Form/Radio.js +4 -4
  42. package/build/system/Form/Radio.stories.jsx +1 -1
  43. package/build/system/Form/RadioBoxGroup.js +1 -1
  44. package/build/system/Form/RequiredLabel.d.ts +2 -1
  45. package/build/system/Form/RequiredLabel.js +16 -7
  46. package/build/system/Form/Toggle.js +2 -2
  47. package/build/system/Form/Validation.d.ts +8 -13
  48. package/build/system/Form/Validation.js +39 -35
  49. package/build/system/Heading/Heading.stories.js +3 -0
  50. package/build/system/Link/Link.js +1 -1
  51. package/build/system/NewDialog/DialogClose.js +2 -2
  52. package/build/system/NewDialog/DialogContent.js +3 -3
  53. package/build/system/NewDialog/DialogTitle.js +3 -1
  54. package/build/system/NewDialog/NewDialog.stories.d.ts +0 -1
  55. package/build/system/NewDialog/NewDialog.stories.jsx +0 -27
  56. package/build/system/NewForm/Fieldset.d.ts +12 -1
  57. package/build/system/NewForm/Fieldset.js +38 -40
  58. package/build/system/NewForm/Form.d.ts +8 -1
  59. package/build/system/NewForm/Form.js +24 -23
  60. package/build/system/NewForm/FormAutocomplete.css +0 -11
  61. package/build/system/NewForm/FormAutocomplete.js +8 -8
  62. package/build/system/NewForm/FormAutocomplete.stories.jsx +1 -3
  63. package/build/system/NewForm/FormAutocompleteMultiselect.js +10 -10
  64. package/build/system/NewForm/FormSelect.js +1 -1
  65. package/build/system/NewForm/FormSelectArrow.js +1 -1
  66. package/build/system/NewForm/FormSelectInline.js +1 -1
  67. package/build/system/NewForm/FormSelectLoading.js +1 -1
  68. package/build/system/NewForm/FormSelectSearch.js +2 -2
  69. package/build/system/NewForm/Legend.d.ts +12 -1
  70. package/build/system/NewForm/Legend.js +32 -34
  71. package/build/system/NewForm/index.d.ts +1 -1
  72. package/build/system/OptionRow/OptionRow.js +1 -1
  73. package/build/system/Progress/Progress.d.ts +9 -2
  74. package/build/system/Progress/Progress.js +75 -70
  75. package/build/system/Progress/Progress.stories.d.ts +9 -7
  76. package/build/system/Progress/Progress.stories.js +34 -0
  77. package/build/system/Progress/Progress.test.d.ts +1 -0
  78. package/build/system/Progress/Progress.test.js +65 -0
  79. package/build/system/Progress/index.d.ts +4 -2
  80. package/build/system/Progress/index.js +5 -5
  81. package/build/system/ScreenReaderText/ScreenReaderText.js +1 -2
  82. package/build/system/Tabs/TabsTrigger.js +0 -1
  83. package/build/system/Text/Text.js +1 -1
  84. package/build/system/Text/Text.stories.js +36 -0
  85. package/build/system/Tooltip/Tooltip.css +6 -2
  86. package/build/system/Tooltip/Tooltip.stories.js +2 -2
  87. package/build/system/Wizard/Wizard.d.ts +14 -1
  88. package/build/system/Wizard/Wizard.js +62 -93
  89. package/build/system/Wizard/Wizard.stories.d.ts +11 -8
  90. package/build/system/Wizard/Wizard.stories.js +167 -0
  91. package/build/system/Wizard/WizardStep.d.ts +24 -1
  92. package/build/system/Wizard/WizardStep.js +180 -190
  93. package/build/system/Wizard/index.d.ts +4 -2
  94. package/build/system/Wizard/index.js +6 -7
  95. package/build/system/index.d.ts +2 -2
  96. package/build/system/index.js +2 -1
  97. package/build/system/theme/generated/valet-theme-dark.json +1219 -476
  98. package/build/system/theme/generated/valet-theme-light.json +1217 -474
  99. package/build/system/theme/{getColor.d.ts → getPropValue.d.ts} +2 -1
  100. package/{src/system/theme/getColor.js → build/system/theme/getPropValue.js} +36 -4
  101. package/build/system/theme/index.d.ts +20 -65
  102. package/build/system/theme/index.js +27 -57
  103. package/package.json +4 -4
  104. package/src/system/Accordion/Accordion.stories.tsx +1 -1
  105. package/src/system/Accordion/Accordion.test.tsx +3 -0
  106. package/src/system/Accordion/Accordion.tsx +6 -6
  107. package/src/system/Avatar/Avatar.tsx +3 -3
  108. package/src/system/Badge/Badge.tsx +1 -1
  109. package/src/system/Button/Button.stories.tsx +2 -3
  110. package/src/system/Button/{Button.test.js → Button.test.tsx} +2 -2
  111. package/src/system/Button/Button.tsx +12 -0
  112. package/src/system/Button/ButtonSubmit.stories.tsx +31 -0
  113. package/src/system/Button/{ButtonSubmit.test.js → ButtonSubmit.test.tsx} +4 -4
  114. package/src/system/Button/{ButtonSubmit.js → ButtonSubmit.tsx} +21 -27
  115. package/src/system/Button/index.ts +8 -0
  116. package/src/system/Dropdown/DropdownContent.js +1 -1
  117. package/src/system/Dropdown/DropdownItem.js +1 -1
  118. package/src/system/Dropdown/DropdownLabel.js +1 -1
  119. package/src/system/Form/{Checkbox.stories.jsx → Checkbox.stories.tsx} +3 -2
  120. package/src/system/Form/{Checkbox.js → Checkbox.tsx} +6 -10
  121. package/src/system/Form/{Input.stories.jsx → Input.stories.tsx} +1 -0
  122. package/src/system/Form/{Input.styles.js → Input.styles.ts} +14 -5
  123. package/src/system/Form/{Input.js → Input.tsx} +10 -19
  124. package/src/system/Form/InputWithCopyButton.stories.jsx +7 -0
  125. package/src/system/Form/{Label.js → Label.tsx} +8 -13
  126. package/src/system/Form/Radio.js +4 -4
  127. package/src/system/Form/Radio.stories.jsx +1 -1
  128. package/src/system/Form/RadioBoxGroup.js +1 -1
  129. package/src/system/Form/{RequiredLabel.js → RequiredLabel.tsx} +1 -3
  130. package/src/system/Form/Toggle.js +2 -2
  131. package/src/system/Form/{Validation.js → Validation.tsx} +11 -12
  132. package/src/system/Heading/Heading.stories.tsx +1 -0
  133. package/src/system/Link/Link.tsx +1 -1
  134. package/src/system/NewDialog/DialogClose.js +2 -2
  135. package/src/system/NewDialog/DialogContent.js +3 -3
  136. package/src/system/NewDialog/DialogTitle.js +3 -1
  137. package/src/system/NewDialog/NewDialog.stories.jsx +0 -27
  138. package/src/system/NewForm/Fieldset.tsx +46 -0
  139. package/src/system/NewForm/Form.tsx +23 -0
  140. package/src/system/NewForm/FormAutocomplete.css +0 -11
  141. package/src/system/NewForm/FormAutocomplete.js +8 -8
  142. package/src/system/NewForm/FormAutocomplete.stories.jsx +1 -3
  143. package/src/system/NewForm/FormAutocompleteMultiselect.js +10 -10
  144. package/src/system/NewForm/FormSelect.js +1 -1
  145. package/src/system/NewForm/FormSelectArrow.js +1 -1
  146. package/src/system/NewForm/FormSelectInline.js +1 -1
  147. package/src/system/NewForm/FormSelectLoading.js +1 -1
  148. package/src/system/NewForm/FormSelectSearch.js +2 -2
  149. package/src/system/NewForm/Legend.tsx +40 -0
  150. package/src/system/OptionRow/OptionRow.js +1 -1
  151. package/src/system/Progress/Progress.test.tsx +33 -0
  152. package/src/system/Progress/{Progress.js → Progress.tsx} +16 -19
  153. package/src/system/Progress/index.ts +4 -0
  154. package/src/system/ScreenReaderText/ScreenReaderText.tsx +0 -2
  155. package/src/system/Tabs/TabsTrigger.js +0 -1
  156. package/src/system/Text/Text.stories.tsx +7 -0
  157. package/src/system/Text/Text.tsx +1 -1
  158. package/src/system/Tooltip/Tooltip.css +6 -2
  159. package/src/system/Tooltip/Tooltip.stories.tsx +4 -4
  160. package/{build/system/Wizard/Wizard.stories.jsx → src/system/Wizard/Wizard.stories.tsx} +18 -23
  161. package/src/system/Wizard/Wizard.tsx +62 -0
  162. package/src/system/Wizard/{WizardStep.js → WizardStep.tsx} +38 -41
  163. package/src/system/Wizard/index.ts +7 -0
  164. package/src/system/index.js +2 -1
  165. package/src/system/theme/generated/valet-theme-dark.json +1219 -476
  166. package/src/system/theme/generated/valet-theme-light.json +1217 -474
  167. package/{build/system/theme/getColor.js → src/system/theme/getPropValue.js} +36 -4
  168. package/src/system/theme/index.js +27 -57
  169. package/tokens/utilities/colors/color output/blue.json +305 -0
  170. package/tokens/utilities/colors/color output/gold.json +305 -0
  171. package/tokens/utilities/colors/color output/gray.json +305 -0
  172. package/tokens/utilities/colors/color output/green.json +305 -0
  173. package/tokens/utilities/colors/color output/orange.json +305 -0
  174. package/tokens/utilities/colors/color output/pink.json +305 -0
  175. package/tokens/utilities/colors/color output/red.json +305 -0
  176. package/tokens/utilities/colors/color output/salmon.json +305 -0
  177. package/tokens/utilities/colors/color output/yellow.json +305 -0
  178. package/tokens/utilities/colors/colorOutput.json +4062 -0
  179. package/tokens/utilities/colors/color_3d_plot.js +43 -0
  180. package/tokens/utilities/colors/color_graph.js +31 -0
  181. package/tokens/utilities/colors/colors.json +1981 -0
  182. package/tokens/utilities/colors/index.js +118 -0
  183. package/tokens/utilities/colors/package-lock.json +6749 -0
  184. package/tokens/utilities/colors/package.json +21 -0
  185. package/tokens/utilities/figma-type-calculator/responsive-type.js +98 -0
  186. package/tokens/valet-core/$metadata.json +19 -15
  187. package/tokens/valet-core/$themes.json +3323 -419
  188. package/tokens/valet-core/{figma-parsely-expressive-type.json → figma-parsely-web-type.json} +128 -128
  189. package/tokens/valet-core/{figma-valet-expressive-type.json → figma-valet-web-type.json} +126 -126
  190. package/tokens/valet-core/figma-wpvip-services-web-type.json +1267 -0
  191. package/tokens/valet-core/{figma-wpvip-expressive-type.json → figma-wpvip-web-type.json} +162 -162
  192. package/tokens/valet-core/{parsely-expressive-color.json → parsely-web-color.json} +1 -1
  193. package/tokens/valet-core/{wpvip-expressive-core.json → parsely-web-core.json} +73 -23
  194. package/tokens/valet-core/{parsely-expressive-type.json → parsely-web-type.json} +21 -9
  195. package/tokens/valet-core/valet-core.json +331 -232
  196. package/tokens/valet-core/{valet-expressive-color.json → valet-web-color.json} +1 -1
  197. package/tokens/valet-core/{parsely-expressive-core.json → valet-web-core.json} +72 -22
  198. package/tokens/valet-core/{wpvip-productive-color.json → wpvip-product-core.json} +663 -7
  199. package/tokens/valet-core/{wpvip-productive-color-dark.json → wpvip-product-dark.json} +332 -10
  200. package/tokens/valet-core/{wpvip-expressive-color.json → wpvip-services-web-color.json} +1 -1
  201. package/tokens/valet-core/{valet-expressive-core.json → wpvip-services-web-core.json} +72 -22
  202. package/tokens/valet-core/wpvip-services-web-type.json +412 -0
  203. package/tokens/valet-core/{wpvip-expressive-color-dark.json → wpvip-web-color-dark.json} +1 -1
  204. package/tokens/valet-core/wpvip-web-color.json +730 -0
  205. package/tokens/valet-core/{wpvip-expressive-type.json → wpvip-web-type.json} +24 -12
  206. package/tokens/valet-core/wpvip-web.json +1310 -0
  207. package/tsconfig.json +2 -1
  208. package/build/system/Button/ButtonSubmit.stories.jsx +0 -40
  209. package/build/system/Button/variants.d.ts +0 -2
  210. package/build/system/Button/variants.js +0 -1
  211. package/build/system/Form/Checkbox.stories.jsx +0 -54
  212. package/build/system/Form/Input.stories.jsx +0 -38
  213. package/build/system/Wizard/WizardStepHorizontal.d.ts +0 -2
  214. package/build/system/Wizard/WizardStepHorizontal.js +0 -55
  215. package/build/system/theme/textStyles.d.ts +0 -71
  216. package/build/system/theme/textStyles.js +0 -46
  217. package/src/system/Button/ButtonSubmit.stories.jsx +0 -40
  218. package/src/system/Button/index.js +0 -8
  219. package/src/system/Button/variants.js +0 -1
  220. package/src/system/Form/Label.stories.jsx +0 -36
  221. package/src/system/NewForm/Fieldset.js +0 -47
  222. package/src/system/NewForm/Form.js +0 -26
  223. package/src/system/NewForm/Legend.js +0 -41
  224. package/src/system/Progress/Progress.stories.jsx +0 -25
  225. package/src/system/Progress/index.js +0 -6
  226. package/src/system/Wizard/Wizard.js +0 -103
  227. package/src/system/Wizard/Wizard.stories.jsx +0 -145
  228. package/src/system/Wizard/WizardStepHorizontal.js +0 -55
  229. package/src/system/Wizard/index.js +0 -8
  230. package/src/system/theme/textStyles.js +0 -46
  231. /package/{build/system/Form/Label.stories.jsx → src/system/Form/Label.stories.tsx} +0 -0
  232. /package/{build/system/Progress/Progress.stories.jsx → src/system/Progress/Progress.stories.tsx} +0 -0
@@ -6,12 +6,12 @@
6
6
  // https://www.figma.com/file/sILtW5Cs2tAnPWrSOEVyER/Productive-Color?node-id=1%3A17&t=4kHdpoprxntk5Ilw-0
7
7
 
8
8
  export default theme => {
9
- const getColor = ( color, variant = 'default' ) => {
10
- if ( ! theme[ color ] ) {
9
+ const getPropValue = ( prop, variant = 'default' ) => {
10
+ if ( ! theme[ prop ] ) {
11
11
  return '#000000';
12
12
  }
13
13
 
14
- return theme[ color ][ variant ].value;
14
+ return theme[ prop ][ variant ].value;
15
15
  };
16
16
 
17
17
  const resolvePath = ( object, path, defaultValue ) => {
@@ -43,11 +43,43 @@ export default theme => {
43
43
  );
44
44
  };
45
45
 
46
+ // We get the following format: '1', '2', '3', 'caps'.
47
+ // We need to build h1: {}, h2: {}, h3: {}, caps: {}.
48
+ const getHeadingStyles = () => {
49
+ const variantValues = getVariants( 'heading' );
50
+
51
+ const headingStyles = {};
52
+ const baseProps = {
53
+ fontWeight: 'heading',
54
+ color: 'heading',
55
+ };
56
+
57
+ Object.keys( variantValues ).forEach( variant => {
58
+ if ( variant === 'caps' ) {
59
+ headingStyles.caps = {
60
+ ...variantValues[ variant ],
61
+ ...baseProps,
62
+ };
63
+ }
64
+
65
+ if ( parseInt( variant, 10 ) > 0 ) {
66
+ headingStyles[ `h${ variant }` ] = {
67
+ ...variantValues[ variant ],
68
+ ...baseProps,
69
+ fontFamily: variant.toString() === '1' ? 'serif' : 'body',
70
+ };
71
+ }
72
+ } );
73
+
74
+ return headingStyles;
75
+ };
76
+
46
77
  return {
47
78
  ValetTheme: traverse( theme ),
48
- getColor,
79
+ getPropValue,
49
80
  getVariants,
50
81
  traverse,
51
82
  resolvePath,
83
+ getHeadingStyles,
52
84
  };
53
85
  };
@@ -1,20 +1,19 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import ThemeBuilder from './getColor';
4
+ import ThemeBuilder from './getPropValue';
5
5
 
6
6
  import Valet from './generated/valet-theme-light.json';
7
7
  import ValetDark from './generated/valet-theme-dark.json';
8
8
  import ColorBuilder from './colors';
9
- import { textStyles } from './textStyles';
10
9
 
11
10
  // Light
12
- const { getColor, getVariants, ValetTheme } = ThemeBuilder( Valet );
11
+ const { getPropValue, getVariants, ValetTheme, getHeadingStyles } = ThemeBuilder( Valet );
13
12
  const light = ColorBuilder( ValetTheme );
14
13
 
15
14
  // Dark
16
15
  const {
17
- getColor: getColorDark,
16
+ getPropValue: getPropValueDark,
18
17
  getVariants: getVariantsDark,
19
18
  ValetTheme: ValetThemeDark,
20
19
  } = ThemeBuilder( ValetDark );
@@ -23,15 +22,17 @@ const dark = ColorBuilder( ValetThemeDark );
23
22
 
24
23
  const outline = {
25
24
  outlineStyle: 'solid',
26
- outlineColor: getColor( 'focus', 'inset' ),
25
+ outlineColor: getPropValue( 'focus', 'inset' ),
27
26
  outlineWidth: '1px',
28
- boxShadow: `0 0 0 1px ${ getColor( 'focus', 'inset' ) }, 0 0 0 3px ${ getColor( 'focus' ) }`,
27
+ boxShadow: `0 0 0 1px ${ getPropValue( 'focus', 'inset' ) }, 0 0 0 3px ${ getPropValue(
28
+ 'focus'
29
+ ) }`,
29
30
  };
30
31
 
31
32
  const fonts = {
32
- body: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
33
+ body: '-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
33
34
  heading: 'inherit',
34
- monospace: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
35
+ monospace: 'inherit',
35
36
  serif: 'recoletaregular, Georgia, serif',
36
37
  };
37
38
 
@@ -41,7 +42,6 @@ const getComponentColors = ( theme, gColor, gVariants ) => ( {
41
42
  // This has to be in the plural because we already have a flag: text
42
43
  texts: {
43
44
  ...theme.text,
44
- disabled: '#716e6e',
45
45
  },
46
46
 
47
47
  button: {
@@ -175,18 +175,11 @@ const getComponentColors = ( theme, gColor, gVariants ) => ( {
175
175
  secondary: light.gray[ '70' ],
176
176
  muted: gColor( 'text', 'helper' ),
177
177
  border: gColor( 'border', '1' ),
178
- borders: {
179
- 1: gColor( 'border', '1' ),
180
- 2: gColor( 'border', '2' ),
181
- 3: gColor( 'border', '3' ),
182
- 4: gColor( 'border', '4' ),
183
- inverse: gColor( 'border', 'inverse' ),
184
- accent: gColor( 'border', 'accent' ),
185
- },
178
+ borders: gVariants( 'border' ),
186
179
  hover: 'rgba(0,0,0,.02)',
187
180
  darken: 'rgba(0,0,0,.05)',
188
181
  placeholder: gVariants( 'input.text' ).placeholder,
189
- midnight: '#13191E',
182
+ midnight: gVariants( 'input.background' ).primary,
190
183
  dialog: light.gray[ '0' ],
191
184
  backgroundMuted: gColor( 'layer', '1' ),
192
185
 
@@ -201,60 +194,37 @@ const getComponentColors = ( theme, gColor, gVariants ) => ( {
201
194
 
202
195
  // Link
203
196
  link: gColor( 'link', 'default' ),
204
- links: {
205
- default: gColor( 'link', 'default' ),
206
- hover: gColor( 'link', 'hover' ),
207
- active: gColor( 'link', 'active' ),
208
- visited: gColor( 'link', 'visited' ),
209
- },
197
+ links: gVariants( 'link' ),
210
198
  } );
211
199
 
212
200
  export default {
213
201
  outline,
214
- space: [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ],
202
+ space: getVariants( 'space' ),
215
203
  fonts,
216
- fontSizes: [ 10, 12, 14, 19, 32, 40, 56, 64, 96 ],
204
+ fontSizes: getVariants( 'fontSize.static' ),
217
205
  fontWeights: {
218
- body: 400,
219
- heading: 500,
220
- bold: 600,
221
- },
222
- lineHeights: {
223
- body: 1.6,
224
- heading: 1.125,
206
+ body: getPropValue( 'fontWeight', 'body' ),
207
+ heading: getPropValue( 'fontWeight', 'heading' ),
208
+ regular: getPropValue( 'fontWeight', 'regular' ),
209
+ bold: getPropValue( 'fontWeight', 'bold' ),
210
+ medium: getPropValue( 'fontWeight', 'medium' ),
211
+ light: getPropValue( 'fontWeight', 'light' ),
225
212
  },
213
+ lineHeights: getVariants( 'lineHeight' ),
226
214
  sizes: {
227
215
  sidebar: 260,
228
216
  },
229
- radii: [ 0, 4, 8 ],
217
+ radii: getVariants( 'borderRadius.static' ),
230
218
  config: {
231
219
  useColorSchemeMediaQuery: false,
232
220
  },
233
221
  initialColorModeName: 'light',
234
222
  colors: {
235
- ...getComponentColors( ValetTheme, getColor, getVariants ),
223
+ ...getComponentColors( ValetTheme, getPropValue, getVariants ),
236
224
  ...light,
237
225
  modes: {
238
226
  dark: {
239
- ...getComponentColors( ValetThemeDark, getColorDark, getVariantsDark ),
240
- // text: dark.grey[ '90' ],
241
- // heading: dark.grey[ '100' ],
242
- // background: dark.grey[ '5' ],
243
- // backgroundSecondary: dark.grey[ '10' ],
244
- // primary: light.brand[ '70' ],
245
- // secondary: '#30c',
246
- // muted: dark.grey[ '90' ],
247
- // link: dark.brand[ '90' ],
248
- // card: dark.grey[ '20' ],
249
- // placeholder: dark.grey[ '70' ],
250
- // border: dark.grey[ '30' ],
251
- // hover: 'rgba(255,255,255,.02)',
252
- // midnight: dark.grey[ '90' ],
253
- // success: dark.green[ '90' ],
254
- // error: dark.red[ '90' ],
255
- // warning: dark.yellow[ '90' ],
256
- // dialog: dark.grey[ '40' ],
257
- // backgroundMuted: dark.grey[ '10' ],
227
+ ...getComponentColors( ValetThemeDark, getPropValueDark, getVariantsDark ),
258
228
  ...dark,
259
229
  },
260
230
  },
@@ -304,7 +274,7 @@ export default {
304
274
  bg: 'button.primary.background.default',
305
275
  border: '1px solid transparent',
306
276
  cursor: 'pointer',
307
- fontWeight: '500',
277
+ fontWeight: 'medium',
308
278
  boxShadow: 'none',
309
279
  borderRadius: 1,
310
280
  '&:hover, &:focus': {
@@ -433,7 +403,7 @@ export default {
433
403
  },
434
404
  },
435
405
 
436
- text: textStyles,
406
+ text: getHeadingStyles(),
437
407
 
438
408
  dialog: {
439
409
  modal: {
@@ -494,7 +464,7 @@ export default {
494
464
  p: {
495
465
  color: 'text',
496
466
  },
497
- ...textStyles,
467
+ ...getHeadingStyles(),
498
468
  },
499
469
  },
500
470
  };
@@ -0,0 +1,305 @@
1
+ {
2
+ "0": {
3
+ "output": "#fafbff"
4
+ },
5
+ "1": {
6
+ "output": "#f5f9fc"
7
+ },
8
+ "2": {
9
+ "output": "#f0f6fa"
10
+ },
11
+ "3": {
12
+ "output": "#ecf4f8"
13
+ },
14
+ "4": {
15
+ "output": "#e8f2f7"
16
+ },
17
+ "5": {
18
+ "output": "#e5eff6"
19
+ },
20
+ "6": {
21
+ "output": "#e1edf5"
22
+ },
23
+ "7": {
24
+ "output": "#ddebf3"
25
+ },
26
+ "8": {
27
+ "output": "#d8e9f0"
28
+ },
29
+ "9": {
30
+ "output": "#d3e8ee"
31
+ },
32
+ "10": {
33
+ "output": "#cde6eb"
34
+ },
35
+ "11": {
36
+ "output": "#c8e4e9"
37
+ },
38
+ "12": {
39
+ "output": "#c2e3e8"
40
+ },
41
+ "13": {
42
+ "output": "#bde1e7"
43
+ },
44
+ "14": {
45
+ "output": "#b8dfe7"
46
+ },
47
+ "15": {
48
+ "output": "#b2dde6"
49
+ },
50
+ "16": {
51
+ "output": "#acdbe5"
52
+ },
53
+ "17": {
54
+ "output": "#a6d9e3"
55
+ },
56
+ "18": {
57
+ "output": "#a0d8e1"
58
+ },
59
+ "19": {
60
+ "output": "#9ad6e0"
61
+ },
62
+ "20": {
63
+ "output": "#94d4de"
64
+ },
65
+ "21": {
66
+ "output": "#8ed2dd"
67
+ },
68
+ "22": {
69
+ "output": "#89d0dc"
70
+ },
71
+ "23": {
72
+ "output": "#83cedb"
73
+ },
74
+ "24": {
75
+ "output": "#7dccd9"
76
+ },
77
+ "25": {
78
+ "output": "#77cad8"
79
+ },
80
+ "26": {
81
+ "output": "#71c8d6"
82
+ },
83
+ "27": {
84
+ "output": "#6ac6d4"
85
+ },
86
+ "28": {
87
+ "output": "#63c4d2"
88
+ },
89
+ "29": {
90
+ "output": "#5bc2cf"
91
+ },
92
+ "30": {
93
+ "output": "#54c0cd"
94
+ },
95
+ "31": {
96
+ "output": "#4dbecb"
97
+ },
98
+ "32": {
99
+ "output": "#45bcc9"
100
+ },
101
+ "33": {
102
+ "output": "#3ebac8"
103
+ },
104
+ "34": {
105
+ "output": "#37b7c6"
106
+ },
107
+ "35": {
108
+ "output": "#30b5c4"
109
+ },
110
+ "36": {
111
+ "output": "#2ab3c2"
112
+ },
113
+ "37": {
114
+ "output": "#25b0bf"
115
+ },
116
+ "38": {
117
+ "output": "#21adbd"
118
+ },
119
+ "39": {
120
+ "output": "#1dabba"
121
+ },
122
+ "40": {
123
+ "output": "#19a8b8"
124
+ },
125
+ "41": {
126
+ "output": "#14a5b6"
127
+ },
128
+ "42": {
129
+ "output": "#0fa3b4"
130
+ },
131
+ "43": {
132
+ "output": "#09a0b1"
133
+ },
134
+ "44": {
135
+ "output": "#049daf"
136
+ },
137
+ "45": {
138
+ "output": "#009bad"
139
+ },
140
+ "46": {
141
+ "output": "#0099ab"
142
+ },
143
+ "47": {
144
+ "output": "#0097a8"
145
+ },
146
+ "48": {
147
+ "output": "#0095a6"
148
+ },
149
+ "49": {
150
+ "output": "#0092a3"
151
+ },
152
+ "50": {
153
+ "output": "#0190a0"
154
+ },
155
+ "51": {
156
+ "output": "#018d9d"
157
+ },
158
+ "52": {
159
+ "output": "#018b9a"
160
+ },
161
+ "53": {
162
+ "output": "#018897"
163
+ },
164
+ "54": {
165
+ "output": "#008595"
166
+ },
167
+ "55": {
168
+ "output": "#008292"
169
+ },
170
+ "56": {
171
+ "output": "#007f8f"
172
+ },
173
+ "57": {
174
+ "output": "#007d8d"
175
+ },
176
+ "58": {
177
+ "output": "#007a8b"
178
+ },
179
+ "59": {
180
+ "output": "#078"
181
+ },
182
+ "60": {
183
+ "output": "#007586"
184
+ },
185
+ "61": {
186
+ "output": "#007383"
187
+ },
188
+ "62": {
189
+ "output": "#007081"
190
+ },
191
+ "63": {
192
+ "output": "#006e7e"
193
+ },
194
+ "64": {
195
+ "output": "#006c7c"
196
+ },
197
+ "65": {
198
+ "output": "#006979"
199
+ },
200
+ "66": {
201
+ "output": "#006676"
202
+ },
203
+ "67": {
204
+ "output": "#006374"
205
+ },
206
+ "68": {
207
+ "output": "#006171"
208
+ },
209
+ "69": {
210
+ "output": "#005e6f"
211
+ },
212
+ "70": {
213
+ "output": "#005b6d"
214
+ },
215
+ "71": {
216
+ "output": "#00586b"
217
+ },
218
+ "72": {
219
+ "output": "#005669"
220
+ },
221
+ "73": {
222
+ "output": "#005366"
223
+ },
224
+ "74": {
225
+ "output": "#005063"
226
+ },
227
+ "75": {
228
+ "output": "#004d5f"
229
+ },
230
+ "76": {
231
+ "output": "#004a5c"
232
+ },
233
+ "77": {
234
+ "output": "#00485a"
235
+ },
236
+ "78": {
237
+ "output": "#004657"
238
+ },
239
+ "79": {
240
+ "output": "#004454"
241
+ },
242
+ "80": {
243
+ "output": "#004252"
244
+ },
245
+ "81": {
246
+ "output": "#003f51"
247
+ },
248
+ "82": {
249
+ "output": "#003c50"
250
+ },
251
+ "83": {
252
+ "output": "#00394d"
253
+ },
254
+ "84": {
255
+ "output": "#003648"
256
+ },
257
+ "85": {
258
+ "output": "#034"
259
+ },
260
+ "86": {
261
+ "output": "#003143"
262
+ },
263
+ "87": {
264
+ "output": "#013042"
265
+ },
266
+ "88": {
267
+ "output": "#012e41"
268
+ },
269
+ "89": {
270
+ "output": "#012b3d"
271
+ },
272
+ "90": {
273
+ "output": "#012839"
274
+ },
275
+ "91": {
276
+ "output": "#012637"
277
+ },
278
+ "92": {
279
+ "output": "#002435"
280
+ },
281
+ "93": {
282
+ "output": "#023"
283
+ },
284
+ "94": {
285
+ "output": "#001f2f"
286
+ },
287
+ "95": {
288
+ "output": "#001c2a"
289
+ },
290
+ "96": {
291
+ "output": "#001927"
292
+ },
293
+ "97": {
294
+ "output": "#001625"
295
+ },
296
+ "98": {
297
+ "output": "#001323"
298
+ },
299
+ "99": {
300
+ "output": "#000f23"
301
+ },
302
+ "100": {
303
+ "output": "#000a23"
304
+ }
305
+ }