@hyphen/hyphen-components 2.9.0

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 (319) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/package.json +138 -0
  4. package/src/components/Alert/Alert.constants.ts +19 -0
  5. package/src/components/Alert/Alert.mdx +29 -0
  6. package/src/components/Alert/Alert.module.scss +74 -0
  7. package/src/components/Alert/Alert.stories.tsx +102 -0
  8. package/src/components/Alert/Alert.test.tsx +187 -0
  9. package/src/components/Alert/Alert.tsx +157 -0
  10. package/src/components/Alert/Alert.types.ts +14 -0
  11. package/src/components/Badge/Badge.mdx +28 -0
  12. package/src/components/Badge/Badge.module.scss +155 -0
  13. package/src/components/Badge/Badge.stories.tsx +52 -0
  14. package/src/components/Badge/Badge.test.tsx +74 -0
  15. package/src/components/Badge/Badge.tsx +70 -0
  16. package/src/components/Box/Box.mdx +259 -0
  17. package/src/components/Box/Box.module.scss +16 -0
  18. package/src/components/Box/Box.stories.tsx +1679 -0
  19. package/src/components/Box/Box.test.tsx +478 -0
  20. package/src/components/Box/Box.tsx +636 -0
  21. package/src/components/Button/Button.constants.ts +10 -0
  22. package/src/components/Button/Button.mdx +71 -0
  23. package/src/components/Button/Button.module.scss +312 -0
  24. package/src/components/Button/Button.stories.tsx +117 -0
  25. package/src/components/Button/Button.test.tsx +460 -0
  26. package/src/components/Button/Button.tsx +241 -0
  27. package/src/components/Card/Card.mdx +46 -0
  28. package/src/components/Card/Card.module.scss +6 -0
  29. package/src/components/Card/Card.stories.tsx +101 -0
  30. package/src/components/Card/Card.test.tsx +11 -0
  31. package/src/components/Card/Card.tsx +61 -0
  32. package/src/components/Card/components/CardFooter/CardFooter.test.tsx +11 -0
  33. package/src/components/Card/components/CardFooter/CardFooter.tsx +35 -0
  34. package/src/components/Card/components/CardHeader/CardHeader.test.tsx +23 -0
  35. package/src/components/Card/components/CardHeader/CardHeader.tsx +54 -0
  36. package/src/components/Card/components/CardSection/CardSection.test.tsx +28 -0
  37. package/src/components/Card/components/CardSection/CardSection.tsx +102 -0
  38. package/src/components/Card/components/index.ts +3 -0
  39. package/src/components/CheckboxInput/CheckboxInput.mdx +98 -0
  40. package/src/components/CheckboxInput/CheckboxInput.stories.tsx +254 -0
  41. package/src/components/CheckboxInput/CheckboxInput.test.tsx +436 -0
  42. package/src/components/CheckboxInput/CheckboxInput.tsx +171 -0
  43. package/src/components/CheckboxInput/components/Checkbox.module.scss +174 -0
  44. package/src/components/CheckboxInput/components/Checkbox.test.tsx +201 -0
  45. package/src/components/CheckboxInput/components/Checkbox.tsx +176 -0
  46. package/src/components/CheckboxInput/components/CheckboxIcon.tsx +71 -0
  47. package/src/components/DateInput/DateInput.mdx +61 -0
  48. package/src/components/DateInput/DateInput.stories.tsx +168 -0
  49. package/src/components/DateInput/DateInput.test.tsx +258 -0
  50. package/src/components/DateInput/DateInput.tsx +189 -0
  51. package/src/components/DatePicker/DatePicker.mdx +52 -0
  52. package/src/components/DatePicker/DatePicker.module.scss +603 -0
  53. package/src/components/DatePicker/DatePicker.stories.tsx +199 -0
  54. package/src/components/DatePicker/DatePicker.test.tsx +26 -0
  55. package/src/components/DatePicker/DatePicker.tsx +138 -0
  56. package/src/components/Details/Details.mdx +30 -0
  57. package/src/components/Details/Details.module.scss +32 -0
  58. package/src/components/Details/Details.stories.tsx +38 -0
  59. package/src/components/Details/Details.test.tsx +189 -0
  60. package/src/components/Details/Details.tsx +51 -0
  61. package/src/components/Details/DetailsSummary.tsx +65 -0
  62. package/src/components/Drawer/Drawer.mdx +117 -0
  63. package/src/components/Drawer/Drawer.module.scss +96 -0
  64. package/src/components/Drawer/Drawer.stories.tsx +380 -0
  65. package/src/components/Drawer/Drawer.test.tsx +90 -0
  66. package/src/components/Drawer/Drawer.tsx +249 -0
  67. package/src/components/FormControl/FormControl.tsx +78 -0
  68. package/src/components/FormLabel/FormLabel.mdx +24 -0
  69. package/src/components/FormLabel/FormLabel.module.scss +19 -0
  70. package/src/components/FormLabel/FormLabel.stories.tsx +20 -0
  71. package/src/components/FormLabel/FormLabel.test.tsx +35 -0
  72. package/src/components/FormLabel/FormLabel.tsx +96 -0
  73. package/src/components/Formik/Formik.mdx +10 -0
  74. package/src/components/Formik/Formik.stories.tsx +307 -0
  75. package/src/components/Formik/FormikCheckboxInput/FormikCheckboxInput.test.tsx +172 -0
  76. package/src/components/Formik/FormikCheckboxInput/FormikCheckboxInput.tsx +41 -0
  77. package/src/components/Formik/FormikRadioGroup/FormikRadioGroup.test.tsx +205 -0
  78. package/src/components/Formik/FormikRadioGroup/FormikRadioGroup.tsx +37 -0
  79. package/src/components/Formik/FormikSelectInput/FormikSelectInput.test.tsx +210 -0
  80. package/src/components/Formik/FormikSelectInput/FormikSelectInput.tsx +41 -0
  81. package/src/components/Formik/FormikSelectInputInset/FormikSelectInputInset.test.tsx +153 -0
  82. package/src/components/Formik/FormikSelectInputInset/FormikSelectInputInset.tsx +44 -0
  83. package/src/components/Formik/FormikSelectInputNative/FormikSelectInputNative.test.tsx +161 -0
  84. package/src/components/Formik/FormikSelectInputNative/FormikSelectInputNative.tsx +46 -0
  85. package/src/components/Formik/FormikTextInput/FormikTextInput.test.tsx +176 -0
  86. package/src/components/Formik/FormikTextInput/FormikTextInput.tsx +38 -0
  87. package/src/components/Formik/FormikTextInputInset/FormikTextInputInset.test.tsx +170 -0
  88. package/src/components/Formik/FormikTextInputInset/FormikTextInputInset.tsx +42 -0
  89. package/src/components/Formik/FormikTextareaInput/FormikTextareaInput.test.tsx +186 -0
  90. package/src/components/Formik/FormikTextareaInput/FormikTextareaInput.tsx +42 -0
  91. package/src/components/Formik/FormikTextareaInputInset/FormikTextareaInputInset.test.tsx +179 -0
  92. package/src/components/Formik/FormikTextareaInputInset/FormikTextareaInputInset.tsx +42 -0
  93. package/src/components/Formik/FormikTimePicker/FormikTimePicker.test.tsx +224 -0
  94. package/src/components/Formik/FormikTimePicker/FormikTimePicker.tsx +37 -0
  95. package/src/components/Formik/FormikTimePickerNative/FormikTimePickerNative.test.tsx +175 -0
  96. package/src/components/Formik/FormikTimePickerNative/FormikTimePickerNative.tsx +38 -0
  97. package/src/components/Formik/FormikToggle/FormikToggle.test.tsx +172 -0
  98. package/src/components/Formik/FormikToggle/FormikToggle.tsx +38 -0
  99. package/src/components/Heading/Heading.constants.ts +19 -0
  100. package/src/components/Heading/Heading.mdx +35 -0
  101. package/src/components/Heading/Heading.module.scss +5 -0
  102. package/src/components/Heading/Heading.stories.tsx +90 -0
  103. package/src/components/Heading/Heading.test.tsx +67 -0
  104. package/src/components/Heading/Heading.tsx +67 -0
  105. package/src/components/HelpText/HelpText.module.scss +14 -0
  106. package/src/components/HelpText/HelpText.tsx +33 -0
  107. package/src/components/Icon/Icon.mdx +40 -0
  108. package/src/components/Icon/Icon.stories.tsx +72 -0
  109. package/src/components/Icon/Icon.test.tsx +30 -0
  110. package/src/components/Icon/Icon.tsx +61 -0
  111. package/src/components/InputValidationMessage/InputValidationMessage.module.scss +3 -0
  112. package/src/components/InputValidationMessage/InputValidationMessage.tsx +27 -0
  113. package/src/components/Modal/Modal.mdx +60 -0
  114. package/src/components/Modal/Modal.module.scss +135 -0
  115. package/src/components/Modal/Modal.stories.tsx +194 -0
  116. package/src/components/Modal/Modal.test.tsx +81 -0
  117. package/src/components/Modal/Modal.tsx +174 -0
  118. package/src/components/Modal/components/ModalBody/ModalBody.test.tsx +20 -0
  119. package/src/components/Modal/components/ModalBody/ModalBody.tsx +24 -0
  120. package/src/components/Modal/components/ModalFooter/ModalFooter.test.tsx +32 -0
  121. package/src/components/Modal/components/ModalFooter/ModalFooter.tsx +37 -0
  122. package/src/components/Modal/components/ModalHeader/ModalHeader.test.tsx +29 -0
  123. package/src/components/Modal/components/ModalHeader/ModalHeader.tsx +58 -0
  124. package/src/components/Modal/components/index.ts +5 -0
  125. package/src/components/Pagination/Pagination.mdx +26 -0
  126. package/src/components/Pagination/Pagination.stories.tsx +55 -0
  127. package/src/components/Pagination/Pagination.test.tsx +225 -0
  128. package/src/components/Pagination/Pagination.tsx +162 -0
  129. package/src/components/Pagination/Pagination.utilities.test.ts +133 -0
  130. package/src/components/Pagination/Pagination.utilities.ts +101 -0
  131. package/src/components/Popover/Popover.mdx +104 -0
  132. package/src/components/Popover/Popover.module.scss +74 -0
  133. package/src/components/Popover/Popover.stories.tsx +471 -0
  134. package/src/components/Popover/Popover.test.tsx +128 -0
  135. package/src/components/Popover/Popover.tsx +277 -0
  136. package/src/components/RadioGroup/RadioGroup.mdx +81 -0
  137. package/src/components/RadioGroup/RadioGroup.module.scss +23 -0
  138. package/src/components/RadioGroup/RadioGroup.stories.tsx +375 -0
  139. package/src/components/RadioGroup/RadioGroup.test.tsx +282 -0
  140. package/src/components/RadioGroup/RadioGroup.tsx +145 -0
  141. package/src/components/RadioGroup/RadioInput/RadioInput.module.scss +114 -0
  142. package/src/components/RadioGroup/RadioInput/RadioInput.test.tsx +156 -0
  143. package/src/components/RadioGroup/RadioInput/RadioInput.tsx +148 -0
  144. package/src/components/RadioGroup/RadioInput/RadioInputIcon.tsx +59 -0
  145. package/src/components/ResponsiveProvider/ResponsiveProvider.mdx +36 -0
  146. package/src/components/ResponsiveProvider/ResponsiveProvider.stories.tsx +54 -0
  147. package/src/components/ResponsiveProvider/ResponsiveProvider.test.tsx +70 -0
  148. package/src/components/ResponsiveProvider/ResponsiveProvider.tsx +73 -0
  149. package/src/components/SelectInput/SelectInput.mdx +115 -0
  150. package/src/components/SelectInput/SelectInput.module.scss +357 -0
  151. package/src/components/SelectInput/SelectInput.stories.tsx +373 -0
  152. package/src/components/SelectInput/SelectInput.test.tsx +403 -0
  153. package/src/components/SelectInput/SelectInput.tsx +245 -0
  154. package/src/components/SelectInputInset/SelectInputInset.mdx +56 -0
  155. package/src/components/SelectInputInset/SelectInputInset.module.scss +397 -0
  156. package/src/components/SelectInputInset/SelectInputInset.stories.tsx +189 -0
  157. package/src/components/SelectInputInset/SelectInputInset.test.tsx +305 -0
  158. package/src/components/SelectInputInset/SelectInputInset.tsx +235 -0
  159. package/src/components/SelectInputNative/SelectInputNative.mdx +87 -0
  160. package/src/components/SelectInputNative/SelectInputNative.module.scss +356 -0
  161. package/src/components/SelectInputNative/SelectInputNative.stories.tsx +282 -0
  162. package/src/components/SelectInputNative/SelectInputNative.test.tsx +341 -0
  163. package/src/components/SelectInputNative/SelectInputNative.tsx +121 -0
  164. package/src/components/Spinner/Spinner.mdx +29 -0
  165. package/src/components/Spinner/Spinner.module.scss +16 -0
  166. package/src/components/Spinner/Spinner.stories.tsx +48 -0
  167. package/src/components/Spinner/Spinner.test.tsx +47 -0
  168. package/src/components/Spinner/Spinner.tsx +116 -0
  169. package/src/components/Table/Table.mdx +216 -0
  170. package/src/components/Table/Table.module.scss +61 -0
  171. package/src/components/Table/Table.stories.tsx +884 -0
  172. package/src/components/Table/Table.test.tsx +437 -0
  173. package/src/components/Table/Table.tsx +171 -0
  174. package/src/components/Table/TableBody/TableBody.module.scss +19 -0
  175. package/src/components/Table/TableBody/TableBody.test.tsx +38 -0
  176. package/src/components/Table/TableBody/TableBody.tsx +96 -0
  177. package/src/components/Table/TableBody/TableBodyCell/TableBodyCell.module.scss +47 -0
  178. package/src/components/Table/TableBody/TableBodyCell/TableBodyCell.test.tsx +81 -0
  179. package/src/components/Table/TableBody/TableBodyCell/TableBodyCell.tsx +94 -0
  180. package/src/components/Table/TableHead/TableHead.test.tsx +20 -0
  181. package/src/components/Table/TableHead/TableHead.tsx +78 -0
  182. package/src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.module.scss +72 -0
  183. package/src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.test.tsx +187 -0
  184. package/src/components/Table/TableHead/TableHeaderCell/TableHeaderCell.tsx +192 -0
  185. package/src/components/Table/common/TableRow/TableRow.module.scss +5 -0
  186. package/src/components/Table/common/TableRow/TableRow.test.tsx +52 -0
  187. package/src/components/Table/common/TableRow/TableRow.tsx +155 -0
  188. package/src/components/TextInput/TextInput.mdx +96 -0
  189. package/src/components/TextInput/TextInput.module.scss +405 -0
  190. package/src/components/TextInput/TextInput.stories.tsx +268 -0
  191. package/src/components/TextInput/TextInput.test.tsx +231 -0
  192. package/src/components/TextInput/TextInput.tsx +263 -0
  193. package/src/components/TextInputInset/TextInputInset.mdx +62 -0
  194. package/src/components/TextInputInset/TextInputInset.module.scss +418 -0
  195. package/src/components/TextInputInset/TextInputInset.stories.tsx +213 -0
  196. package/src/components/TextInputInset/TextInputInset.test.tsx +222 -0
  197. package/src/components/TextInputInset/TextInputInset.tsx +261 -0
  198. package/src/components/TextareaInput/TextareaInput.mdx +117 -0
  199. package/src/components/TextareaInput/TextareaInput.module.scss +275 -0
  200. package/src/components/TextareaInput/TextareaInput.stories.tsx +293 -0
  201. package/src/components/TextareaInput/TextareaInput.test.tsx +195 -0
  202. package/src/components/TextareaInput/TextareaInput.tsx +182 -0
  203. package/src/components/TextareaInputInset/TextareaInputInset.mdx +55 -0
  204. package/src/components/TextareaInputInset/TextareaInputInset.module.scss +337 -0
  205. package/src/components/TextareaInputInset/TextareaInputInset.stories.tsx +160 -0
  206. package/src/components/TextareaInputInset/TextareaInputInset.test.tsx +199 -0
  207. package/src/components/TextareaInputInset/TextareaInputInset.tsx +213 -0
  208. package/src/components/ThemeProvider/ThemeProvider.mdx +11 -0
  209. package/src/components/ThemeProvider/ThemeProvider.stories.tsx +56 -0
  210. package/src/components/ThemeProvider/ThemeProvider.tsx +75 -0
  211. package/src/components/TimePicker/TimePicker.mdx +75 -0
  212. package/src/components/TimePicker/TimePicker.stories.tsx +149 -0
  213. package/src/components/TimePicker/TimePicker.test.tsx +97 -0
  214. package/src/components/TimePicker/TimePicker.tsx +83 -0
  215. package/src/components/TimePickerNative/TimePickerNative.mdx +67 -0
  216. package/src/components/TimePickerNative/TimePickerNative.stories.tsx +151 -0
  217. package/src/components/TimePickerNative/TimePickerNative.test.tsx +117 -0
  218. package/src/components/TimePickerNative/TimePickerNative.tsx +93 -0
  219. package/src/components/Toast/Toast.mdx +134 -0
  220. package/src/components/Toast/Toast.store.ts +280 -0
  221. package/src/components/Toast/Toast.stories.tsx +283 -0
  222. package/src/components/Toast/Toast.test.tsx +784 -0
  223. package/src/components/Toast/Toast.types.ts +98 -0
  224. package/src/components/Toast/ToastContainer.tsx +170 -0
  225. package/src/components/Toast/ToastNotification.module.scss +63 -0
  226. package/src/components/Toast/ToastNotification.tsx +176 -0
  227. package/src/components/Toast/index.ts +4 -0
  228. package/src/components/Toast/toast.ts +102 -0
  229. package/src/components/Toast/useToasts.ts +102 -0
  230. package/src/components/Toggle/Toggle.mdx +51 -0
  231. package/src/components/Toggle/Toggle.module.scss +294 -0
  232. package/src/components/Toggle/Toggle.stories.tsx +128 -0
  233. package/src/components/Toggle/Toggle.test.tsx +308 -0
  234. package/src/components/Toggle/Toggle.tsx +184 -0
  235. package/src/constants/keyCodes.ts +2 -0
  236. package/src/docs/Brands.mdx +153 -0
  237. package/src/docs/Colors.mdx +158 -0
  238. package/src/docs/DesignTokens.mdx +415 -0
  239. package/src/docs/GetStarted.mdx +47 -0
  240. package/src/docs/intro.mdx +12 -0
  241. package/src/fonts/AvenirBold.otf +0 -0
  242. package/src/fonts/AvenirBold.woff +0 -0
  243. package/src/fonts/AvenirBold.woff2 +0 -0
  244. package/src/fonts/AvenirLight.otf +0 -0
  245. package/src/fonts/AvenirLight.woff +0 -0
  246. package/src/fonts/AvenirLight.woff2 +0 -0
  247. package/src/fonts/AvenirRegular.otf +0 -0
  248. package/src/fonts/AvenirRegular.woff +0 -0
  249. package/src/fonts/AvenirRegular.woff2 +0 -0
  250. package/src/fonts/Geist-Bold.otf +0 -0
  251. package/src/fonts/Geist-Bold.woff +0 -0
  252. package/src/fonts/Geist-Bold.woff2 +0 -0
  253. package/src/fonts/Geist-Medium.otf +0 -0
  254. package/src/fonts/Geist-Medium.woff +0 -0
  255. package/src/fonts/Geist-Medium.woff2 +0 -0
  256. package/src/fonts/Geist-Regular.otf +0 -0
  257. package/src/fonts/Geist-Regular.woff +0 -0
  258. package/src/fonts/Geist-Regular.woff2 +0 -0
  259. package/src/fonts/Geist-SemiBold.otf +0 -0
  260. package/src/fonts/Geist-SemiBold.woff +0 -0
  261. package/src/fonts/Geist-SemiBold.woff2 +0 -0
  262. package/src/fonts/GeistMono-Regular.otf +0 -0
  263. package/src/fonts/GeistMono-Regular.woff +0 -0
  264. package/src/fonts/GeistMono-Regular.woff2 +0 -0
  265. package/src/hooks/index.ts +4 -0
  266. package/src/hooks/useBreakpoint/useBreakpoint.mdx +26 -0
  267. package/src/hooks/useBreakpoint/useBreakpoint.stories.tsx +30 -0
  268. package/src/hooks/useBreakpoint/useBreakpoint.test.tsx +19 -0
  269. package/src/hooks/useBreakpoint/useBreakpoint.ts +50 -0
  270. package/src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayouEffect.ts +5 -0
  271. package/src/hooks/useOpenClose/useOpenClose.mdx +15 -0
  272. package/src/hooks/useOpenClose/useOpenClose.stories.tsx +41 -0
  273. package/src/hooks/useOpenClose/useOpenClose.test.tsx +119 -0
  274. package/src/hooks/useOpenClose/useOpenClose.tsx +95 -0
  275. package/src/hooks/useWindowSize/useWindowSize.mdx +25 -0
  276. package/src/hooks/useWindowSize/useWindowSize.stories.tsx +35 -0
  277. package/src/hooks/useWindowSize/useWindowSize.ts +24 -0
  278. package/src/index.ts +48 -0
  279. package/src/lib/cssShorthandToClasses.test.ts +149 -0
  280. package/src/lib/cssShorthandToClasses.ts +133 -0
  281. package/src/lib/doesStringIncludeCssUnit.ts +6 -0
  282. package/src/lib/generateResponsiveClasses.test.ts +24 -0
  283. package/src/lib/generateResponsiveClasses.ts +30 -0
  284. package/src/lib/getAutoCompleteValue.test.ts +27 -0
  285. package/src/lib/getAutoCompleteValue.ts +12 -0
  286. package/src/lib/getColumnKeys.ts +27 -0
  287. package/src/lib/getDimensionCss.test.ts +148 -0
  288. package/src/lib/getDimensionCss.ts +73 -0
  289. package/src/lib/getElementType.test.tsx +42 -0
  290. package/src/lib/getElementType.ts +42 -0
  291. package/src/lib/getFlexCss.test.ts +122 -0
  292. package/src/lib/getFlexCss.ts +67 -0
  293. package/src/lib/index.ts +15 -0
  294. package/src/lib/isFunction.ts +6 -0
  295. package/src/lib/mergeRefs.ts +15 -0
  296. package/src/lib/prefersReducedMotion.ts +12 -0
  297. package/src/lib/react-children-utilities/filter.ts +12 -0
  298. package/src/lib/react-children-utilities/index.ts +1 -0
  299. package/src/lib/reactRouterClickHandler.ts +37 -0
  300. package/src/lib/resolveValue.ts +7 -0
  301. package/src/lib/tokens.ts +139 -0
  302. package/src/modes.ts +8 -0
  303. package/src/styles/animation.scss +152 -0
  304. package/src/styles/cursor.scss +43 -0
  305. package/src/styles/display.scss +119 -0
  306. package/src/styles/flex.scss +453 -0
  307. package/src/styles/fonts.scss +44 -0
  308. package/src/styles/globals/utilities.scss +4 -0
  309. package/src/styles/mixins.scss +14 -0
  310. package/src/styles/overflow.scss +41 -0
  311. package/src/styles/position.scss +45 -0
  312. package/src/styles/reset.scss +108 -0
  313. package/src/styles/text-align.scss +21 -0
  314. package/src/styles/utilities.scss +9 -0
  315. package/src/styles/variables/forms.scss +71 -0
  316. package/src/styles/variables/index.scss +3 -0
  317. package/src/styles/white-space.scss +21 -0
  318. package/src/types/index.ts +201 -0
  319. package/src/types/lib.types.ts +3 -0
@@ -0,0 +1,1679 @@
1
+ import React from 'react';
2
+ import type { Meta } from '@storybook/react';
3
+ import { Box } from './Box';
4
+
5
+ const meta: Meta<typeof Box> = {
6
+ title: 'Components/Box',
7
+ component: Box,
8
+ };
9
+
10
+ export default meta;
11
+
12
+ export const Overview = () => (
13
+ <Box gap="md">
14
+ <Box
15
+ padding="xl"
16
+ background="tertiary"
17
+ radius="md"
18
+ fontSize={{ base: 'sm', tablet: 'md', hd: 'lg' }}
19
+ borderWidth="sm"
20
+ borderColor="default"
21
+ >
22
+ I am a box with a gray background and border
23
+ </Box>
24
+ <Box gap={{ base: 'sm', tablet: 'md', desktop: 'lg' }} direction="row">
25
+ <Box
26
+ flex="auto"
27
+ radius="md"
28
+ background="info"
29
+ borderColor="info"
30
+ borderWidth="sm"
31
+ height="200px"
32
+ />
33
+ <Box
34
+ flex="auto"
35
+ radius="md"
36
+ background="info"
37
+ borderColor="info"
38
+ borderWidth="sm"
39
+ height="200px"
40
+ />
41
+ <Box
42
+ flex="auto"
43
+ radius="md"
44
+ background="info"
45
+ borderColor="info"
46
+ borderWidth="sm"
47
+ height="200px"
48
+ />
49
+ <Box
50
+ flex="auto"
51
+ radius="md"
52
+ background="info"
53
+ borderColor="info"
54
+ borderWidth="sm"
55
+ height="200px"
56
+ />
57
+ <Box
58
+ flex="auto"
59
+ radius="md"
60
+ background="info"
61
+ borderColor="info"
62
+ borderWidth="sm"
63
+ height="200px"
64
+ />
65
+ </Box>
66
+ </Box>
67
+ );
68
+
69
+ export const Background = () => {
70
+ return (
71
+ <Box gap="md">
72
+ <Box background="primary" padding="md">
73
+ primary
74
+ </Box>
75
+ <Box background="secondary" padding="md">
76
+ secondary
77
+ </Box>
78
+ <Box background="tertiary" padding="md">
79
+ tertiary
80
+ </Box>
81
+ <Box background="info" padding="md">
82
+ info
83
+ </Box>
84
+ <Box background="warning" padding="md">
85
+ warning
86
+ </Box>
87
+ <Box background="danger" padding="md">
88
+ danger
89
+ </Box>
90
+ <Box background="inverse" color="inverse" padding="md">
91
+ inverse
92
+ </Box>
93
+ <Box background="brand-yellow" padding="md">
94
+ brand-yellow
95
+ </Box>
96
+ <Box background="brand-orange" padding="md">
97
+ brand-orange
98
+ </Box>
99
+ <Box background="brand-magenta" padding="md">
100
+ brand-magenta
101
+ </Box>
102
+ <Box color="white" background="brand-dark-grey" padding="md">
103
+ brand-dark-grey
104
+ </Box>
105
+ <Box background="brand-cyan" padding="md">
106
+ brand-cyan
107
+ </Box>
108
+ <Box background="brand-pink" padding="md">
109
+ brand-pink
110
+ </Box>
111
+ <Box background="brand-light-purple" padding="md">
112
+ brand-light-purple
113
+ </Box>
114
+ <Box color="white" background="brand-medium-purple" padding="md">
115
+ brand-medium-purple
116
+ </Box>
117
+ <Box color="white" background="brand-dark-purple" padding="md">
118
+ brand-dark-purple
119
+ </Box>
120
+ </Box>
121
+ );
122
+ };
123
+
124
+ export const Border = () => {
125
+ return (
126
+ <Box gap="md">
127
+ <Box borderColor="default" borderWidth="sm" padding="md">
128
+ default
129
+ </Box>
130
+ <Box borderColor="subtle" borderWidth="sm" padding="md">
131
+ subtle
132
+ </Box>
133
+ <Box borderColor="hover" borderWidth="sm" padding="md">
134
+ hover
135
+ </Box>
136
+ <Box borderColor="active" borderWidth="sm" padding="md">
137
+ active
138
+ </Box>
139
+ <Box borderColor="info" borderWidth="sm" padding="md">
140
+ info
141
+ </Box>
142
+ <Box borderColor="warning" borderWidth="sm" padding="md">
143
+ warning
144
+ </Box>
145
+ <Box borderColor="danger" borderWidth="sm" padding="md">
146
+ danger
147
+ </Box>
148
+ <Box borderColor="brand-yellow" borderWidth="sm" padding="md">
149
+ brand-yellow
150
+ </Box>
151
+ <Box borderColor="brand-orange" borderWidth="sm" padding="md">
152
+ brand-orange
153
+ </Box>
154
+ <Box borderColor="brand-magenta" borderWidth="sm" padding="md">
155
+ brand-magenta
156
+ </Box>
157
+ <Box borderColor="brand-dark-grey" borderWidth="sm" padding="md">
158
+ brand-dark-grey
159
+ </Box>
160
+ <Box borderColor="brand-cyan" borderWidth="sm" padding="md">
161
+ brand-cyan
162
+ </Box>
163
+ <Box borderColor="brand-pink" borderWidth="sm" padding="md">
164
+ brand-pink
165
+ </Box>
166
+ <Box borderColor="brand-light-purple" borderWidth="sm" padding="md">
167
+ brand-light-purple
168
+ </Box>
169
+ <Box borderColor="brand-medium-purple" borderWidth="sm" padding="md">
170
+ brand-medium-purple
171
+ </Box>
172
+ <Box borderColor="brand-dark-purple" borderWidth="sm" padding="md">
173
+ brand-dark-purple
174
+ </Box>
175
+ </Box>
176
+ );
177
+ };
178
+
179
+ export const Gap = () => (
180
+ <Box gap="4xl">
181
+ <Box gap="lg" direction="row" wrap maxWidth="500px">
182
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
183
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
184
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
185
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
186
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
187
+ <Box flex="auto" minWidth="125px" background="tertiary" padding="sm" />
188
+ </Box>
189
+ <Box gap="xs 4xl" direction="row" wrap maxWidth="500px">
190
+ <Box width="100px" background="tertiary" padding="sm" />
191
+ <Box width="100px" background="tertiary" padding="sm" />
192
+ <Box width="100px" background="tertiary" padding="sm" />
193
+ <Box width="100px" background="tertiary" padding="sm" />
194
+ <Box width="100px" background="tertiary" padding="sm" />
195
+ <Box width="100px" background="tertiary" padding="sm" />
196
+ </Box>
197
+ <Box rowGap="xs" columnGap="xl" direction="row" wrap maxWidth="500px">
198
+ <Box width="100px" background="tertiary" padding="sm" />
199
+ <Box width="100px" background="tertiary" padding="sm" />
200
+ <Box width="100px" background="tertiary" padding="sm" />
201
+ <Box width="100px" background="tertiary" padding="sm" />
202
+ <Box width="100px" background="tertiary" padding="sm" />
203
+ <Box width="100px" background="tertiary" padding="sm" />
204
+ </Box>
205
+ <Box rowGap="sm" maxWidth="500px">
206
+ <Box flex="auto" background="tertiary" padding="sm" />
207
+ <Box flex="auto" background="tertiary" padding="sm" />
208
+ <Box flex="auto" background="tertiary" padding="sm" />
209
+ </Box>
210
+ </Box>
211
+ );
212
+
213
+ export const ChildGap = () => (
214
+ <Box childGap="lg">
215
+ <Box childGap="5xl" display="block">
216
+ <Box display="block" background="tertiary" height="xl" />
217
+ <Box display="block" background="tertiary" height="xl" />
218
+ <Box display="block" background="tertiary" height="xl" />
219
+ <Box display="block" background="tertiary" height="xl" />
220
+ <Box display="block" background="tertiary" height="xl" />
221
+ </Box>
222
+ <Box childGap="5xl" direction="row">
223
+ <Box display="block" background="tertiary" height="xl" width="xl" />
224
+ <Box display="block" background="tertiary" height="xl" width="xl" />
225
+ <Box display="block" background="tertiary" height="xl" width="xl" />
226
+ <Box display="block" background="tertiary" height="xl" width="xl" />
227
+ <Box display="block" background="tertiary" height="xl" width="xl" />
228
+ </Box>
229
+ </Box>
230
+ );
231
+
232
+ export const FlexAuto = () => (
233
+ <Box gap="md">
234
+ <Box gap="md" direction="row">
235
+ <Box
236
+ flex="auto"
237
+ background="tertiary"
238
+ padding="sm"
239
+ justifyContent="center"
240
+ alignItems="center"
241
+ >
242
+ auto
243
+ </Box>
244
+ <Box
245
+ flex="auto"
246
+ background="tertiary"
247
+ padding="sm"
248
+ justifyContent="center"
249
+ alignItems="center"
250
+ >
251
+ auto
252
+ </Box>
253
+ <Box
254
+ flex="auto"
255
+ background="tertiary"
256
+ padding="sm"
257
+ justifyContent="center"
258
+ alignItems="center"
259
+ >
260
+ auto
261
+ </Box>
262
+ <Box
263
+ flex="auto"
264
+ background="tertiary"
265
+ padding="sm"
266
+ justifyContent="center"
267
+ alignItems="center"
268
+ >
269
+ auto
270
+ </Box>
271
+ <Box
272
+ flex="auto"
273
+ background="tertiary"
274
+ padding="sm"
275
+ justifyContent="center"
276
+ alignItems="center"
277
+ >
278
+ auto
279
+ </Box>
280
+ </Box>
281
+ </Box>
282
+ );
283
+
284
+ export const FlexDirection = () => (
285
+ <Box gap="xl">
286
+ <Box fontWeight="bold">Row</Box>
287
+ <Box gap="md" direction="row">
288
+ <Box flex="auto" background="tertiary" padding="sm">
289
+ 1
290
+ </Box>
291
+ <Box flex="auto" background="tertiary" padding="sm">
292
+ 2
293
+ </Box>
294
+ <Box flex="auto" background="tertiary" padding="sm">
295
+ 3
296
+ </Box>
297
+ <Box flex="auto" background="tertiary" padding="sm">
298
+ 4
299
+ </Box>
300
+ <Box flex="auto" background="tertiary" padding="sm">
301
+ 5
302
+ </Box>
303
+ </Box>
304
+ <Box fontWeight="bold">Column</Box>
305
+ <Box gap="md" direction="column">
306
+ <Box width="20%" background="tertiary" padding="sm">
307
+ 1
308
+ </Box>
309
+ <Box width="20%" background="tertiary" padding="sm">
310
+ 2
311
+ </Box>
312
+ <Box width="20%" background="tertiary" padding="sm">
313
+ 3
314
+ </Box>
315
+ <Box width="20%" background="tertiary" padding="sm">
316
+ 4
317
+ </Box>
318
+ <Box width="20%" background="tertiary" padding="sm">
319
+ 5
320
+ </Box>
321
+ </Box>
322
+ <Box fontWeight="bold">Row Reverse</Box>
323
+ <Box gap="md" direction="row-reverse">
324
+ <Box width="20%" background="danger" padding="sm">
325
+ 1
326
+ </Box>
327
+ <Box width="20%" background="danger" padding="sm">
328
+ 2
329
+ </Box>
330
+ <Box width="20%" background="danger" padding="sm">
331
+ 3
332
+ </Box>
333
+ <Box width="20%" background="danger" padding="sm">
334
+ 4
335
+ </Box>
336
+ <Box width="20%" background="danger" padding="sm">
337
+ 5
338
+ </Box>
339
+ </Box>
340
+ <Box fontWeight="bold">Column Reverse</Box>
341
+ <Box gap="md" direction="column-reverse">
342
+ <Box width="20%" background="danger" padding="sm">
343
+ 1
344
+ </Box>
345
+ <Box width="20%" background="danger" padding="sm">
346
+ 2
347
+ </Box>
348
+ <Box width="20%" background="danger" padding="sm">
349
+ 3
350
+ </Box>
351
+ <Box width="20%" background="danger" padding="sm">
352
+ 4
353
+ </Box>
354
+ <Box width="20%" background="danger" padding="sm">
355
+ 5
356
+ </Box>
357
+ </Box>
358
+ </Box>
359
+ );
360
+
361
+ export const FlexShrinkGrow = () => (
362
+ <Box gap="md">
363
+ <Box gap="md" direction="row">
364
+ <Box
365
+ style={{ flex: '3' }}
366
+ background="tertiary"
367
+ padding="sm"
368
+ justifyContent="center"
369
+ alignItems="center"
370
+ >
371
+ 3
372
+ </Box>
373
+ <Box
374
+ style={{ flex: '1' }}
375
+ background="tertiary"
376
+ padding="sm"
377
+ justifyContent="center"
378
+ alignItems="center"
379
+ >
380
+ 1
381
+ </Box>
382
+ <Box
383
+ style={{ flex: '1' }}
384
+ background="tertiary"
385
+ padding="sm"
386
+ justifyContent="center"
387
+ alignItems="center"
388
+ >
389
+ 1
390
+ </Box>
391
+ <Box
392
+ style={{ flex: '2' }}
393
+ background="tertiary"
394
+ padding="sm"
395
+ justifyContent="center"
396
+ alignItems="center"
397
+ >
398
+ 2
399
+ </Box>
400
+ <Box
401
+ style={{ flex: '1' }}
402
+ background="tertiary"
403
+ padding="sm"
404
+ justifyContent="center"
405
+ alignItems="center"
406
+ >
407
+ 1
408
+ </Box>
409
+ </Box>
410
+ </Box>
411
+ );
412
+
413
+ export const FlexJustify = () => (
414
+ <Box flex="auto" gap="md">
415
+ <Box direction="row" alignItems="center" gap="md">
416
+ <Box width="70px">start</Box>
417
+ <Box
418
+ flex="auto"
419
+ background="secondary"
420
+ justifyContent="flex-start"
421
+ direction="row"
422
+ gap="md"
423
+ >
424
+ <Box padding="sm" background="inverse" />
425
+ <Box padding="sm" background="inverse" />
426
+ <Box padding="sm" background="inverse" />
427
+ </Box>
428
+ </Box>
429
+ <Box direction="row" alignItems="center" gap="md">
430
+ <Box width="70px">center</Box>
431
+ <Box
432
+ flex="auto"
433
+ background="secondary"
434
+ justifyContent="center"
435
+ direction="row"
436
+ gap="md"
437
+ >
438
+ <Box padding="sm" background="inverse" />
439
+ <Box padding="sm" background="inverse" />
440
+ <Box padding="sm" background="inverse" />
441
+ </Box>
442
+ </Box>
443
+ <Box direction="row" alignItems="center" gap="md">
444
+ <Box width="70px">end</Box>
445
+ <Box
446
+ flex="auto"
447
+ background="secondary"
448
+ justifyContent="flex-end"
449
+ direction="row"
450
+ gap="md"
451
+ >
452
+ <Box padding="sm" background="inverse" />
453
+ <Box padding="sm" background="inverse" />
454
+ <Box padding="sm" background="inverse" />
455
+ </Box>
456
+ </Box>
457
+ <Box direction="row" alignItems="center" gap="md">
458
+ <Box width="70px">between</Box>
459
+ <Box
460
+ flex="auto"
461
+ background="secondary"
462
+ justifyContent="space-between"
463
+ direction="row"
464
+ gap="md"
465
+ >
466
+ <Box padding="sm" background="inverse" />
467
+ <Box padding="sm" background="inverse" />
468
+ <Box padding="sm" background="inverse" />
469
+ </Box>
470
+ </Box>
471
+ <Box direction="row" alignItems="center" gap="md">
472
+ <Box width="70px">around</Box>
473
+ <Box
474
+ flex="auto"
475
+ background="secondary"
476
+ justifyContent="space-around"
477
+ direction="row"
478
+ gap="md"
479
+ >
480
+ <Box padding="sm" background="inverse" />
481
+ <Box padding="sm" background="inverse" />
482
+ <Box padding="sm" background="inverse" />
483
+ </Box>
484
+ </Box>
485
+ <Box direction="row" alignItems="center" gap="md">
486
+ <Box width="70px">evenly</Box>
487
+ <Box
488
+ flex="auto"
489
+ background="secondary"
490
+ justifyContent="space-evenly"
491
+ direction="row"
492
+ gap="md"
493
+ >
494
+ <Box padding="sm" background="inverse" />
495
+ <Box padding="sm" background="inverse" />
496
+ <Box padding="sm" background="inverse" />
497
+ </Box>
498
+ </Box>
499
+ </Box>
500
+ );
501
+
502
+ export const FlexAlign = () => (
503
+ <Box flex="auto" gap="md">
504
+ <Box direction="row" alignItems="center" gap="md">
505
+ <Box width="70px">start</Box>
506
+ <Box
507
+ flex="auto"
508
+ height="100px"
509
+ background="secondary"
510
+ alignItems="flex-start"
511
+ direction="row"
512
+ gap="md"
513
+ >
514
+ <Box padding="sm" background="inverse" />
515
+ <Box padding="sm" background="inverse" />
516
+ <Box padding="sm" background="inverse" />
517
+ </Box>
518
+ </Box>
519
+ <Box direction="row" alignItems="center" gap="md">
520
+ <Box width="70px">center</Box>
521
+ <Box
522
+ flex="auto"
523
+ height="100px"
524
+ background="secondary"
525
+ alignItems="center"
526
+ direction="row"
527
+ gap="md"
528
+ >
529
+ <Box padding="sm" background="inverse" />
530
+ <Box padding="sm" background="inverse" />
531
+ <Box padding="sm" background="inverse" />
532
+ </Box>
533
+ </Box>
534
+ <Box direction="row" alignItems="center" gap="md">
535
+ <Box width="70px">end</Box>
536
+ <Box
537
+ flex="auto"
538
+ height="100px"
539
+ background="secondary"
540
+ alignItems="flex-end"
541
+ direction="row"
542
+ gap="md"
543
+ >
544
+ <Box padding="sm" background="inverse" />
545
+ <Box padding="sm" background="inverse" />
546
+ <Box padding="sm" background="inverse" />
547
+ </Box>
548
+ </Box>
549
+ <Box direction="row" alignItems="center" gap="md">
550
+ <Box width="70px">baseline</Box>
551
+ <Box
552
+ flex="auto"
553
+ height="100px"
554
+ background="secondary"
555
+ alignItems="baseline"
556
+ direction="row"
557
+ gap="md"
558
+ >
559
+ <Box padding="sm" background="inverse" />
560
+ <Box padding="sm" background="inverse" />
561
+ <Box padding="sm" background="inverse" />
562
+ </Box>
563
+ </Box>
564
+ <Box direction="row" alignItems="center" gap="md">
565
+ <Box width="70px">stretch</Box>
566
+ <Box
567
+ flex="auto"
568
+ height="100px"
569
+ background="secondary"
570
+ alignItems="stretch"
571
+ direction="row"
572
+ gap="md"
573
+ >
574
+ <Box padding="md" background="inverse" />
575
+ <Box padding="md" background="inverse" />
576
+ <Box padding="md" background="inverse" />
577
+ </Box>
578
+ </Box>
579
+ </Box>
580
+ );
581
+
582
+ export const FlexAlignContent = () => (
583
+ <Box gap="md">
584
+ <Box direction="row" alignItems="center" gap="md">
585
+ <Box width="70px">start</Box>
586
+ <Box
587
+ flex="auto"
588
+ alignContent="flex-start"
589
+ height="200px"
590
+ wrap
591
+ gap="md"
592
+ background="secondary"
593
+ direction="row"
594
+ >
595
+ <Box width="200px" padding="sm" background="inverse" />
596
+ <Box width="200px" padding="sm" background="inverse" />
597
+ <Box width="200px" padding="sm" background="inverse" />
598
+ <Box width="200px" padding="sm" background="inverse" />
599
+ <Box width="200px" padding="sm" background="inverse" />
600
+ </Box>
601
+ </Box>
602
+ <Box direction="row" alignItems="center" gap="md">
603
+ <Box width="70px">center</Box>
604
+ <Box
605
+ flex="auto"
606
+ alignContent="center"
607
+ height="200px"
608
+ wrap
609
+ gap="md"
610
+ background="secondary"
611
+ direction="row"
612
+ >
613
+ <Box width="200px" padding="sm" background="inverse" />
614
+ <Box width="200px" padding="sm" background="inverse" />
615
+ <Box width="200px" padding="sm" background="inverse" />
616
+ <Box width="200px" padding="sm" background="inverse" />
617
+ <Box width="200px" padding="sm" background="inverse" />
618
+ </Box>
619
+ </Box>
620
+ <Box direction="row" alignItems="center" gap="md">
621
+ <Box width="70px">end</Box>
622
+ <Box
623
+ flex="auto"
624
+ alignContent="flex-end"
625
+ height="200px"
626
+ wrap
627
+ gap="md"
628
+ background="secondary"
629
+ direction="row"
630
+ >
631
+ <Box width="200px" padding="sm" background="inverse" />
632
+ <Box width="200px" padding="sm" background="inverse" />
633
+ <Box width="200px" padding="sm" background="inverse" />
634
+ <Box width="200px" padding="sm" background="inverse" />
635
+ <Box width="200px" padding="sm" background="inverse" />
636
+ </Box>
637
+ </Box>
638
+ <Box direction="row" alignItems="center" gap="md">
639
+ <Box width="70px">stretch</Box>
640
+ <Box
641
+ flex="auto"
642
+ alignContent="stretch"
643
+ height="200px"
644
+ wrap
645
+ gap="md"
646
+ background="secondary"
647
+ direction="row"
648
+ >
649
+ <Box width="200px" padding="sm" background="inverse" />
650
+ <Box width="200px" padding="sm" background="inverse" />
651
+ <Box width="200px" padding="sm" background="inverse" />
652
+ <Box width="200px" padding="sm" background="inverse" />
653
+ <Box width="200px" padding="sm" background="inverse" />
654
+ </Box>
655
+ </Box>
656
+ <Box direction="row" alignItems="center" gap="md">
657
+ <Box width="70px">between</Box>
658
+ <Box
659
+ flex="auto"
660
+ alignContent="space-between"
661
+ height="200px"
662
+ wrap
663
+ gap="md"
664
+ background="secondary"
665
+ direction="row"
666
+ >
667
+ <Box width="200px" padding="sm" background="inverse" />
668
+ <Box width="200px" padding="sm" background="inverse" />
669
+ <Box width="200px" padding="sm" background="inverse" />
670
+ <Box width="200px" padding="sm" background="inverse" />
671
+ <Box width="200px" padding="sm" background="inverse" />
672
+ </Box>
673
+ </Box>
674
+ <Box direction="row" alignItems="center" gap="md">
675
+ <Box width="70px">around</Box>
676
+ <Box
677
+ flex="auto"
678
+ alignContent="center"
679
+ height="200px"
680
+ wrap
681
+ gap="md"
682
+ background="secondary"
683
+ direction="row"
684
+ position="relative"
685
+ >
686
+ <Box width="25%" padding="sm" background="inverse" />
687
+ <Box width="25%" padding="sm" background="inverse" />
688
+ <Box width="25%" padding="sm" background="inverse" />
689
+ <Box width="25%" padding="sm" background="inverse" />
690
+ </Box>
691
+ </Box>
692
+ </Box>
693
+ );
694
+
695
+ export const FontColor = () => (
696
+ <>
697
+ <Box color="base">base</Box>
698
+ <Box color="secondary">secondary</Box>
699
+ <Box color="tertiary">tertiary</Box>
700
+ <Box color="inverse">inverse</Box>
701
+ <Box color="disabled">disabled</Box>
702
+ <Box color="success">success</Box>
703
+ <Box color="warn">warn</Box>
704
+ <Box color="danger">danger</Box>
705
+ <Box color="brand-yellow">brand-yellow</Box>
706
+ <Box color="brand-orange">brand-orange</Box>
707
+ <Box color="brand-magenta">brand-magenta</Box>
708
+ <Box color="brand-dark-grey">brand-dark-grey</Box>
709
+ <Box color="brand-cyan">brand-cyan</Box>
710
+ <Box color="brand-pink">brand-pink</Box>
711
+ <Box color="brand-light-purple">brand-light-purple</Box>
712
+ <Box color="brand-medium-purple">brand-medium-purple</Box>
713
+ <Box color="brand-dark-purple">brand-dark-purple</Box>
714
+ </>
715
+ );
716
+
717
+ export const FontSizes = () => (
718
+ <>
719
+ <Box fontSize="2xs">The quick brown fox jumps over the lazy dog</Box>
720
+ <Box fontSize="xs">The quick brown fox jumps over the lazy dog</Box>
721
+ <Box fontSize="sm">The quick brown fox jumps over the lazy dog</Box>
722
+ <Box fontSize="md">The quick brown fox jumps over the lazy dog</Box>
723
+ <Box fontSize="lg">The quick brown fox jumps over the lazy dog</Box>
724
+ <Box fontSize="xl">The quick brown fox jumps over the lazy dog</Box>
725
+ <Box fontSize="2xl">The quick brown fox jumps over the lazy dog</Box>
726
+ <Box fontSize="3xl">The quick brown fox jumps over the lazy dog</Box>
727
+ <Box fontSize="4xl">The quick brown fox jumps over the lazy dog</Box>
728
+ <Box fontSize="5xl">The quick brown fox jumps over the lazy dog</Box>
729
+ <Box fontSize="6xl">The quick brown fox jumps over the lazy dog</Box>
730
+ <Box fontSize="7xl">The quick brown fox jumps over the lazy dog</Box>
731
+ </>
732
+ );
733
+
734
+ export const FontWeights = () => (
735
+ <>
736
+ <Box fontWeight="normal">normal</Box>
737
+ <Box fontWeight="medium">medium</Box>
738
+ <Box fontWeight="semibold">semibold</Box>
739
+ <Box fontWeight="bold">bold</Box>
740
+ </>
741
+ );
742
+
743
+ export const FontFamily = () => (
744
+ <>
745
+ <Box fontFamily="body" margin="0 0 md 0" fontSize="xl">
746
+ Body
747
+ </Box>
748
+ <Box fontFamily="brand" margin="0 0 md 0" fontSize="xl">
749
+ Brand
750
+ </Box>
751
+ <Box fontFamily="monospace" margin="0 0 md 0" fontSize="xl">
752
+ Monospace
753
+ </Box>
754
+ </>
755
+ );
756
+
757
+ export const TextAlign = () => (
758
+ <Box display="block" childGap="xl">
759
+ <Box
760
+ display="block"
761
+ textAlign="left"
762
+ color="base"
763
+ background="secondary"
764
+ padding="sm"
765
+ >
766
+ left
767
+ </Box>
768
+ <Box
769
+ display="block"
770
+ textAlign="center"
771
+ color="base"
772
+ background="secondary"
773
+ padding="sm"
774
+ >
775
+ center
776
+ </Box>
777
+ <Box
778
+ display="block"
779
+ textAlign="right"
780
+ color="base"
781
+ background="secondary"
782
+ padding="sm"
783
+ >
784
+ right
785
+ </Box>
786
+ </Box>
787
+ );
788
+
789
+ export const Margin = () => (
790
+ <>
791
+ <Box margin="lg" background="secondary">
792
+ lg margin
793
+ </Box>
794
+ <Box margin="lg md" background="secondary">
795
+ lg vertical and md horizontal
796
+ </Box>
797
+ <Box margin="0 2xl" background="secondary">
798
+ 0 vertical and 2xl horizontal
799
+ </Box>
800
+ <Box margin="sm md 2xl" background="secondary">
801
+ sm top, md horizontal, 2xl bottom
802
+ </Box>
803
+ <Box margin="sm lg 2xl 0" background="secondary">
804
+ sm top, lg right, 2xl bottom, 0 left
805
+ </Box>
806
+ </>
807
+ );
808
+
809
+ export const Padding = () => (
810
+ <>
811
+ <Box padding="lg" margin="sm 0" background="secondary">
812
+ lg padding
813
+ </Box>
814
+ <Box padding="lg md" margin="sm 0" background="secondary">
815
+ lg vertical and md horizontal
816
+ </Box>
817
+ <Box padding="0 2xl" margin="sm 0" background="secondary">
818
+ 0 vertical and 2xl horizontal
819
+ </Box>
820
+ <Box padding="sm md 2xl" margin="sm 0" background="secondary">
821
+ sm top, md horizontal, 2xl bottom
822
+ </Box>
823
+ <Box padding="sm lg 2xl 0" margin="sm 0" background="secondary">
824
+ sm top, lg right, 2xl bottom, 0 left
825
+ </Box>
826
+ </>
827
+ );
828
+
829
+ export const Radius = () => (
830
+ <>
831
+ <Box direction="row" gap="2xs" justifyContent="space-between">
832
+ <Box radius="xs" background="tertiary" padding="sm">
833
+ xs
834
+ </Box>
835
+ <Box radius="sm" background="tertiary" padding="sm">
836
+ sm
837
+ </Box>
838
+ <Box radius="md" background="tertiary" padding="sm">
839
+ md
840
+ </Box>
841
+ <Box radius="lg" background="tertiary" padding="sm">
842
+ lg
843
+ </Box>
844
+ <Box radius="sm lg" background="tertiary" padding="sm">
845
+ sm lg
846
+ </Box>
847
+ <Box radius="sm md lg" background="tertiary" padding="sm">
848
+ sm md lg
849
+ </Box>
850
+ <Box radius="xs sm md lg" background="tertiary" padding="sm">
851
+ xs sm md lg
852
+ </Box>
853
+ <Box radius="0 0 md md" background="tertiary" padding="sm">
854
+ 0 0 md md
855
+ </Box>
856
+ <Box radius="md md 0 0" background="tertiary" padding="sm">
857
+ md md 0 0
858
+ </Box>
859
+ </Box>
860
+ </>
861
+ );
862
+
863
+ export const Shadow = () => (
864
+ <Box
865
+ direction="row"
866
+ background="secondary"
867
+ padding="2xl"
868
+ justifyContent="space-between"
869
+ >
870
+ <Box
871
+ shadow="0"
872
+ alignItems="center"
873
+ justifyContent="center"
874
+ background="primary"
875
+ radius="md"
876
+ padding="sm"
877
+ height="lg"
878
+ >
879
+ 0
880
+ </Box>
881
+ <Box
882
+ shadow="2xs"
883
+ alignItems="center"
884
+ justifyContent="center"
885
+ background="primary"
886
+ radius="md"
887
+ padding="sm"
888
+ height="lg"
889
+ >
890
+ 2xs
891
+ </Box>
892
+ <Box
893
+ shadow="xs"
894
+ alignItems="center"
895
+ justifyContent="center"
896
+ background="primary"
897
+ radius="md"
898
+ padding="sm"
899
+ height="lg"
900
+ >
901
+ xs
902
+ </Box>
903
+ <Box
904
+ shadow="sm"
905
+ alignItems="center"
906
+ justifyContent="center"
907
+ background="primary"
908
+ radius="md"
909
+ padding="sm"
910
+ height="lg"
911
+ >
912
+ sm
913
+ </Box>
914
+ <Box
915
+ shadow="md"
916
+ alignItems="center"
917
+ justifyContent="center"
918
+ background="primary"
919
+ radius="md"
920
+ padding="sm"
921
+ height="lg"
922
+ >
923
+ md
924
+ </Box>
925
+ <Box
926
+ shadow="lg"
927
+ alignItems="center"
928
+ justifyContent="center"
929
+ background="primary"
930
+ radius="md"
931
+ padding="sm"
932
+ height="lg"
933
+ >
934
+ lg
935
+ </Box>
936
+ <Box
937
+ shadow="xl"
938
+ alignItems="center"
939
+ justifyContent="center"
940
+ background="primary"
941
+ radius="md"
942
+ padding="sm"
943
+ height="lg"
944
+ >
945
+ xl
946
+ </Box>
947
+ <Box
948
+ shadow="2xl"
949
+ alignItems="center"
950
+ justifyContent="center"
951
+ background="primary"
952
+ radius="md"
953
+ padding="sm"
954
+ height="lg"
955
+ >
956
+ 2xl
957
+ </Box>
958
+ </Box>
959
+ );
960
+
961
+ export const Width = () => (
962
+ <Box background="secondary" gap="xs">
963
+ <Box background="tertiary" width="227px">
964
+ 227px
965
+ </Box>
966
+ <Box background="tertiary" width="10rem">
967
+ 10rem
968
+ </Box>
969
+ <Box background="tertiary" width="50%">
970
+ 50%
971
+ </Box>
972
+ </Box>
973
+ );
974
+
975
+ export const WidthTokens = () => (
976
+ <Box background="secondary" gap="xs" overflow="auto">
977
+ <Box background="tertiary" width="2xs">
978
+ 2xs
979
+ </Box>
980
+ <Box background="tertiary" width="xs">
981
+ xs
982
+ </Box>
983
+ <Box background="tertiary" width="sm">
984
+ sm
985
+ </Box>
986
+ <Box background="tertiary" width="md">
987
+ md
988
+ </Box>
989
+ <Box background="tertiary" width="lg">
990
+ lg
991
+ </Box>
992
+ <Box background="tertiary" width="xl">
993
+ xl
994
+ </Box>
995
+ <Box background="tertiary" width="2xl">
996
+ 2xl
997
+ </Box>
998
+ <Box background="tertiary" width="3xl">
999
+ 3xl
1000
+ </Box>
1001
+ <Box background="tertiary" width="4xl">
1002
+ 4xl
1003
+ </Box>
1004
+ <Box background="tertiary" width="5xl">
1005
+ 5xl
1006
+ </Box>
1007
+ <Box background="tertiary" width="6xl">
1008
+ 6xl
1009
+ </Box>
1010
+ <Box background="tertiary" width="7xl">
1011
+ 7xl
1012
+ </Box>
1013
+ <Box background="tertiary" width="8xl">
1014
+ 8xl
1015
+ </Box>
1016
+ <Box background="tertiary" width="9xl">
1017
+ 9xl
1018
+ </Box>
1019
+ <Box background="tertiary" width="10xl">
1020
+ 10xl
1021
+ </Box>
1022
+ </Box>
1023
+ );
1024
+
1025
+ export const WidthPercentages = () => (
1026
+ <Box background="secondary" gap="xs" position="relative">
1027
+ <Box background="tertiary" width="10">
1028
+ 10%
1029
+ </Box>
1030
+ <Box background="tertiary" width="15">
1031
+ 15%
1032
+ </Box>
1033
+ <Box background="tertiary" width="20">
1034
+ 20%
1035
+ </Box>
1036
+ <Box background="tertiary" width="25">
1037
+ 25%
1038
+ </Box>
1039
+ <Box background="tertiary" width="30">
1040
+ 30%
1041
+ </Box>
1042
+ <Box background="tertiary" width="33">
1043
+ 33%
1044
+ </Box>
1045
+ <Box background="tertiary" width="34">
1046
+ 34%
1047
+ </Box>
1048
+ <Box background="tertiary" width="40">
1049
+ 40%
1050
+ </Box>
1051
+ <Box background="tertiary" width="50">
1052
+ 50%
1053
+ </Box>
1054
+ <Box background="tertiary" width="60">
1055
+ 60%
1056
+ </Box>
1057
+ <Box background="tertiary" width="70">
1058
+ 70%
1059
+ </Box>
1060
+ <Box background="tertiary" width="75">
1061
+ 75%
1062
+ </Box>
1063
+ <Box background="tertiary" width="80">
1064
+ 80%
1065
+ </Box>
1066
+ <Box background="tertiary" width="90">
1067
+ 90%
1068
+ </Box>
1069
+ <Box background="tertiary" width="100">
1070
+ 100%
1071
+ </Box>
1072
+ </Box>
1073
+ );
1074
+
1075
+ export const WidthMax = () => (
1076
+ <Box background="secondary" gap="xs">
1077
+ <Box background="tertiary" maxWidth="145px">
1078
+ 145px
1079
+ </Box>
1080
+ <Box background="tertiary" maxWidth="50%">
1081
+ 50%
1082
+ </Box>
1083
+ </Box>
1084
+ );
1085
+
1086
+ export const WidthMin = () => (
1087
+ <Box alignItems="flex-start" background="secondary" gap="xs">
1088
+ <Box background="tertiary" minWidth="145px">
1089
+ 145px
1090
+ </Box>
1091
+ <Box background="tertiary" minWidth="50%">
1092
+ 50%
1093
+ </Box>
1094
+ </Box>
1095
+ );
1096
+
1097
+ export const Height = () => (
1098
+ <Box background="secondary" gap="xs">
1099
+ <Box
1100
+ background="tertiary"
1101
+ height="227px"
1102
+ justifyContent="center"
1103
+ alignItems="center"
1104
+ >
1105
+ 227px
1106
+ </Box>
1107
+ <Box
1108
+ background="tertiary"
1109
+ height="10rem"
1110
+ justifyContent="center"
1111
+ alignItems="center"
1112
+ >
1113
+ 10rem
1114
+ </Box>
1115
+ <Box
1116
+ background="tertiary"
1117
+ height="4em"
1118
+ justifyContent="center"
1119
+ alignItems="center"
1120
+ >
1121
+ 4em
1122
+ </Box>
1123
+ </Box>
1124
+ );
1125
+
1126
+ export const HeightTokens = () => (
1127
+ <Box background="secondary" gap="xs" direction="row">
1128
+ <Box
1129
+ flex="auto"
1130
+ background="tertiary"
1131
+ justifyContent="center"
1132
+ alignItems="center"
1133
+ height="sm"
1134
+ >
1135
+ sm
1136
+ </Box>
1137
+ <Box
1138
+ flex="auto"
1139
+ background="tertiary"
1140
+ justifyContent="center"
1141
+ alignItems="center"
1142
+ height="md"
1143
+ >
1144
+ md
1145
+ </Box>
1146
+ <Box
1147
+ flex="auto"
1148
+ background="tertiary"
1149
+ justifyContent="center"
1150
+ alignItems="center"
1151
+ height="lg"
1152
+ >
1153
+ lg
1154
+ </Box>
1155
+ <Box
1156
+ flex="auto"
1157
+ background="tertiary"
1158
+ justifyContent="center"
1159
+ alignItems="center"
1160
+ height="xl"
1161
+ >
1162
+ xl
1163
+ </Box>
1164
+ <Box
1165
+ flex="auto"
1166
+ background="tertiary"
1167
+ justifyContent="center"
1168
+ alignItems="center"
1169
+ height="2xl"
1170
+ >
1171
+ 2xl
1172
+ </Box>
1173
+ <Box
1174
+ flex="auto"
1175
+ background="tertiary"
1176
+ justifyContent="center"
1177
+ alignItems="center"
1178
+ height="3xl"
1179
+ >
1180
+ 3xl
1181
+ </Box>
1182
+ <Box
1183
+ flex="auto"
1184
+ background="tertiary"
1185
+ justifyContent="center"
1186
+ alignItems="center"
1187
+ height="4xl"
1188
+ >
1189
+ 4xl
1190
+ </Box>
1191
+ <Box
1192
+ flex="auto"
1193
+ background="tertiary"
1194
+ justifyContent="center"
1195
+ alignItems="center"
1196
+ height="5xl"
1197
+ >
1198
+ 5xl
1199
+ </Box>
1200
+ <Box
1201
+ flex="auto"
1202
+ background="tertiary"
1203
+ justifyContent="center"
1204
+ alignItems="center"
1205
+ height="6xl"
1206
+ >
1207
+ 6xl
1208
+ </Box>
1209
+ <Box
1210
+ flex="auto"
1211
+ background="tertiary"
1212
+ justifyContent="center"
1213
+ alignItems="center"
1214
+ height="7xl"
1215
+ >
1216
+ 7xl
1217
+ </Box>
1218
+ <Box
1219
+ flex="auto"
1220
+ background="tertiary"
1221
+ justifyContent="center"
1222
+ alignItems="center"
1223
+ height="8xl"
1224
+ >
1225
+ 8xl
1226
+ </Box>
1227
+ <Box
1228
+ flex="auto"
1229
+ background="tertiary"
1230
+ justifyContent="center"
1231
+ alignItems="center"
1232
+ height="9xl"
1233
+ >
1234
+ 9xl
1235
+ </Box>
1236
+ <Box
1237
+ flex="auto"
1238
+ background="tertiary"
1239
+ justifyContent="center"
1240
+ alignItems="center"
1241
+ height="10xl"
1242
+ >
1243
+ 10xl
1244
+ </Box>
1245
+ </Box>
1246
+ );
1247
+
1248
+ export const HeightPercentages = () => (
1249
+ <Box height="400px" gap="xs" direction="row" background="secondary">
1250
+ <Box
1251
+ flex="auto"
1252
+ justifyContent="center"
1253
+ alignItems="center"
1254
+ background="tertiary"
1255
+ height="10"
1256
+ >
1257
+ 10%
1258
+ </Box>
1259
+ <Box
1260
+ flex="auto"
1261
+ justifyContent="center"
1262
+ alignItems="center"
1263
+ background="tertiary"
1264
+ height="15"
1265
+ >
1266
+ 15%
1267
+ </Box>
1268
+ <Box
1269
+ flex="auto"
1270
+ justifyContent="center"
1271
+ alignItems="center"
1272
+ background="tertiary"
1273
+ height="20"
1274
+ >
1275
+ 20%
1276
+ </Box>
1277
+ <Box
1278
+ flex="auto"
1279
+ justifyContent="center"
1280
+ alignItems="center"
1281
+ background="tertiary"
1282
+ height="25"
1283
+ >
1284
+ 25%
1285
+ </Box>
1286
+ <Box
1287
+ flex="auto"
1288
+ justifyContent="center"
1289
+ alignItems="center"
1290
+ background="tertiary"
1291
+ height="30"
1292
+ >
1293
+ 30%
1294
+ </Box>
1295
+ <Box
1296
+ flex="auto"
1297
+ justifyContent="center"
1298
+ alignItems="center"
1299
+ background="tertiary"
1300
+ height="33"
1301
+ >
1302
+ 33%
1303
+ </Box>
1304
+ <Box
1305
+ flex="auto"
1306
+ justifyContent="center"
1307
+ alignItems="center"
1308
+ background="tertiary"
1309
+ height="34"
1310
+ >
1311
+ 34%
1312
+ </Box>
1313
+ <Box
1314
+ flex="auto"
1315
+ justifyContent="center"
1316
+ alignItems="center"
1317
+ background="tertiary"
1318
+ height="40"
1319
+ >
1320
+ 40%
1321
+ </Box>
1322
+ <Box
1323
+ flex="auto"
1324
+ justifyContent="center"
1325
+ alignItems="center"
1326
+ background="tertiary"
1327
+ height="50"
1328
+ >
1329
+ 50%
1330
+ </Box>
1331
+ <Box
1332
+ flex="auto"
1333
+ justifyContent="center"
1334
+ alignItems="center"
1335
+ background="tertiary"
1336
+ height="60"
1337
+ >
1338
+ 60%
1339
+ </Box>
1340
+ <Box
1341
+ flex="auto"
1342
+ justifyContent="center"
1343
+ alignItems="center"
1344
+ background="tertiary"
1345
+ height="70"
1346
+ >
1347
+ 70%
1348
+ </Box>
1349
+ <Box
1350
+ flex="auto"
1351
+ justifyContent="center"
1352
+ alignItems="center"
1353
+ background="tertiary"
1354
+ height="75"
1355
+ >
1356
+ 75%
1357
+ </Box>
1358
+ <Box
1359
+ flex="auto"
1360
+ justifyContent="center"
1361
+ alignItems="center"
1362
+ background="tertiary"
1363
+ height="80"
1364
+ >
1365
+ 80%
1366
+ </Box>
1367
+ <Box
1368
+ flex="auto"
1369
+ justifyContent="center"
1370
+ alignItems="center"
1371
+ background="tertiary"
1372
+ height="90"
1373
+ >
1374
+ 90%
1375
+ </Box>
1376
+ <Box
1377
+ flex="auto"
1378
+ justifyContent="center"
1379
+ alignItems="center"
1380
+ background="tertiary"
1381
+ height="100"
1382
+ >
1383
+ 100%
1384
+ </Box>
1385
+ </Box>
1386
+ );
1387
+
1388
+ export const HeightMax = () => (
1389
+ <Box height="300px" background="secondary" direction="row" gap="xs">
1390
+ <Box
1391
+ maxHeight="50px"
1392
+ flex="auto"
1393
+ justifyContent="center"
1394
+ alignItems="center"
1395
+ background="tertiary"
1396
+ >
1397
+ 50px
1398
+ </Box>
1399
+ <Box
1400
+ maxHeight="50%"
1401
+ flex="auto"
1402
+ justifyContent="center"
1403
+ alignItems="center"
1404
+ background="tertiary"
1405
+ >
1406
+ 50%
1407
+ </Box>
1408
+ </Box>
1409
+ );
1410
+
1411
+ export const HeightMin = () => (
1412
+ <Box
1413
+ height="300px"
1414
+ background="secondary"
1415
+ alignItems="flex-start"
1416
+ direction="row"
1417
+ gap="xs"
1418
+ >
1419
+ <Box
1420
+ flex="auto"
1421
+ minHeight="50px"
1422
+ justifyContent="center"
1423
+ alignItems="center"
1424
+ background="tertiary"
1425
+ >
1426
+ 50px
1427
+ </Box>
1428
+ <Box
1429
+ flex="auto"
1430
+ minHeight="50%"
1431
+ justifyContent="center"
1432
+ alignItems="center"
1433
+ background="tertiary"
1434
+ >
1435
+ 50%
1436
+ </Box>
1437
+ </Box>
1438
+ );
1439
+
1440
+ export const Overflow = () => (
1441
+ <Box
1442
+ overflow="auto"
1443
+ padding="md"
1444
+ gap="md"
1445
+ flex="auto"
1446
+ background="secondary"
1447
+ borderColor="default"
1448
+ height="100px"
1449
+ >
1450
+ <p>
1451
+ Lorem ipsum dolor sit amet Et iusto dolor dolores lorem magna voluptua
1452
+ clita ullamcorper dolor voluptua et praesent ut. Clita sanctus ut duo
1453
+ dolore accumsan volutpat ipsum duis gubergren amet sadipscing et ipsum
1454
+ dolore ut vel. Cum ut justo lorem dolor exerci nulla voluptua. Sed lorem
1455
+ augue sed aliquam. Eu magna nulla sed ut. Tempor amet duo dolore et et
1456
+ elit tation illum sadipscing nisl erat duo rebum labore et facilisis
1457
+ dolore. Gubergren facilisi voluptua in et. Et stet sed commodo dolores
1458
+ vero at adipiscing doming ipsum amet sit eos facer rebum sit labore ea ut.
1459
+ Aliquam sadipscing suscipit augue eleifend.
1460
+ </p>
1461
+ <p>
1462
+ lorem augue sed aliquam. Eu magna nulla sed ut. Tempor amet duo dolore et
1463
+ et elit tation illum sadipscing nisl erat duo rebum labore et facilisis
1464
+ dolore. Gubergren facilisi voluptua in et. Et stet sed commodo dolores
1465
+ vero at adipiscing doming ipsum amet sit eos facer rebum sit labore ea ut.
1466
+ Aliquam sadipscing suscipit augue eleifend.
1467
+ </p>
1468
+ <p>
1469
+ et et elit tation illum sadipscing nisl erat duo rebum labore et facilisis
1470
+ dolore. Gubergren facilisi voluptua in et. Et stet sed commodo dolores
1471
+ vero at adipiscing doming ipsum amet sit eos facer rebum sit labore ea ut.
1472
+ Aliquam sadipscing suscipit augue eleifend.
1473
+ </p>
1474
+ </Box>
1475
+ );
1476
+
1477
+ export const Cursor = () => (
1478
+ <Box padding="md" gap="md" flex="auto" background="secondary" overflow="auto">
1479
+ <Box cursor="pointer" padding="md" background="tertiary">
1480
+ pointer
1481
+ </Box>
1482
+ <Box cursor="move" padding="md" background="tertiary">
1483
+ move
1484
+ </Box>
1485
+ <Box cursor="not-allowed" padding="md" background="tertiary">
1486
+ not-allowed
1487
+ </Box>
1488
+ <Box cursor="grab" padding="md" background="tertiary">
1489
+ grab
1490
+ </Box>
1491
+ <Box cursor="zoom-in" padding="md" background="tertiary">
1492
+ zoom-in
1493
+ </Box>
1494
+ <Box cursor="zoom-out" padding="md" background="tertiary">
1495
+ zoom-out
1496
+ </Box>
1497
+ </Box>
1498
+ );
1499
+
1500
+ export const Position = () => (
1501
+ <Box
1502
+ padding="md"
1503
+ childGap="md"
1504
+ display="block"
1505
+ background="secondary"
1506
+ overflow="scroll"
1507
+ height="300px"
1508
+ >
1509
+ <Box
1510
+ position="absolute"
1511
+ padding="md"
1512
+ background="tertiary"
1513
+ style={{ zIndex: 1 }}
1514
+ width="100px"
1515
+ height="150px"
1516
+ >
1517
+ absolute
1518
+ </Box>
1519
+ <Box
1520
+ position="relative"
1521
+ padding="md"
1522
+ background="tertiary"
1523
+ textAlign="right"
1524
+ height="200px"
1525
+ >
1526
+ relative
1527
+ </Box>
1528
+ <Box
1529
+ position="sticky"
1530
+ padding="md"
1531
+ background="tertiary"
1532
+ height="50px"
1533
+ color="white"
1534
+ style={{ top: 0, zIndex: 2 }}
1535
+ >
1536
+ sticky
1537
+ </Box>
1538
+ <Box position="static" padding="md" background="tertiary" height="400px">
1539
+ static
1540
+ </Box>
1541
+ </Box>
1542
+ );
1543
+
1544
+ export const Hover = () => (
1545
+ <Box gap="md">
1546
+ <Box
1547
+ padding="md"
1548
+ background="tertiary"
1549
+ color="white"
1550
+ shadow="xs"
1551
+ hover={{
1552
+ background: 'success',
1553
+ }}
1554
+ cursor="pointer"
1555
+ >
1556
+ simple background color effect
1557
+ </Box>
1558
+ <Box
1559
+ padding="md"
1560
+ background="primary"
1561
+ color="base"
1562
+ radius="md"
1563
+ borderWidth="sm"
1564
+ borderColor="default"
1565
+ fontWeight="bold"
1566
+ direction="row"
1567
+ justifyContent="center"
1568
+ hover={{
1569
+ background: 'success',
1570
+ color: 'white',
1571
+ }}
1572
+ cursor="pointer"
1573
+ >
1574
+ an outlined button
1575
+ </Box>
1576
+ <Box
1577
+ padding="md"
1578
+ radius="md"
1579
+ background="primary"
1580
+ shadow="sm"
1581
+ borderWidth="sm"
1582
+ borderColor="default"
1583
+ hover={{
1584
+ shadow: 'lg',
1585
+ }}
1586
+ cursor="grab"
1587
+ >
1588
+ Card shadow effect
1589
+ </Box>
1590
+ <Box
1591
+ padding="md"
1592
+ background="primary"
1593
+ hover={{
1594
+ fontSize: 'xl',
1595
+ }}
1596
+ >
1597
+ growing text
1598
+ </Box>
1599
+ <Box
1600
+ padding="md"
1601
+ background="primary"
1602
+ borderWidth="sm"
1603
+ borderColor="default"
1604
+ hover={{
1605
+ borderWidth: 'sm',
1606
+ borderColor: 'hover',
1607
+ }}
1608
+ >
1609
+ adding a border
1610
+ </Box>
1611
+ <Box
1612
+ padding="md"
1613
+ background="primary"
1614
+ borderColor="default"
1615
+ borderWidth="sm"
1616
+ hover={{
1617
+ borderWidth: 'md',
1618
+ }}
1619
+ >
1620
+ changing a border width
1621
+ </Box>
1622
+ </Box>
1623
+ );
1624
+
1625
+ export const Focus = () => (
1626
+ <Box gap="md">
1627
+ <Box
1628
+ as="input"
1629
+ type="text"
1630
+ padding="md"
1631
+ background="primary"
1632
+ color="base"
1633
+ shadow="xs"
1634
+ borderWidth="sm"
1635
+ borderColor="default"
1636
+ radius="md"
1637
+ style={{ outline: 'none' }}
1638
+ focus={{
1639
+ borderColor: 'hover',
1640
+ }}
1641
+ placeholder="useful for form inputs..."
1642
+ />
1643
+ <Box
1644
+ radius="md"
1645
+ shadow="xs"
1646
+ padding="md"
1647
+ focus={{
1648
+ shadow: 'lg',
1649
+ }}
1650
+ tabIndex="0"
1651
+ style={{ outline: 'none' }}
1652
+ >
1653
+ Card focus effect
1654
+ </Box>
1655
+ </Box>
1656
+ );
1657
+
1658
+ export const Responsive = () => (
1659
+ <Box
1660
+ background="secondary"
1661
+ borderColor="default"
1662
+ padding={{ base: 'sm', tablet: 'md', desktop: 'lg', hd: 'xl' }}
1663
+ fontSize={{ base: 'md', tablet: 'lg', desktop: 'xl', hd: '3xl' }}
1664
+ borderWidth={{ base: 'sm', tablet: 'xs', desktop: 'md', hd: '0' }}
1665
+ textAlign={{ base: 'center', tablet: 'right', desktop: 'left' }}
1666
+ width={{ base: '5xl', tablet: '50', desktop: '25', hd: '10xl' }}
1667
+ >
1668
+ <p>Resize the viewport to see how my appearance changes.</p>
1669
+ </Box>
1670
+ );
1671
+
1672
+ export const Omit = () => (
1673
+ <Box padding={{ desktop: 'lg' }} background="secondary">
1674
+ <p>
1675
+ This box will have no padding until the viewport reaches the desktop
1676
+ breakpoint.{' '}
1677
+ </p>
1678
+ </Box>
1679
+ );