@commercetools/nimbus 0.0.1 → 0.0.3

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 (302) hide show
  1. package/dist/index.d.ts +1412 -0
  2. package/dist/index.js +11183 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/index.umd.cjs +27 -0
  5. package/dist/index.umd.cjs.map +1 -0
  6. package/package.json +33 -6
  7. package/.storybook/apca-check/index.ts +0 -150
  8. package/.storybook/main.ts +0 -64
  9. package/.storybook/preview.tsx +0 -92
  10. package/.storybook/vitest.setup.ts +0 -13
  11. package/docs/architecture-decisions/adr-0001-consumer-component-apis.md +0 -177
  12. package/docs/architecture-decisions/adr-0002-compound-component-extraction.md +0 -82
  13. package/src/components/accordion/accordion-context.tsx +0 -17
  14. package/src/components/accordion/accordion.mdx +0 -172
  15. package/src/components/accordion/accordion.recipe.tsx +0 -98
  16. package/src/components/accordion/accordion.slots.tsx +0 -39
  17. package/src/components/accordion/accordion.stories.tsx +0 -188
  18. package/src/components/accordion/accordion.tsx +0 -16
  19. package/src/components/accordion/accordion.types.tsx +0 -54
  20. package/src/components/accordion/components/accordion-content.tsx +0 -28
  21. package/src/components/accordion/components/accordion-group.tsx +0 -27
  22. package/src/components/accordion/components/accordion-header.tsx +0 -63
  23. package/src/components/accordion/components/accordion-item.tsx +0 -87
  24. package/src/components/accordion/index.ts +0 -2
  25. package/src/components/alert/alert.mdx +0 -92
  26. package/src/components/alert/alert.recipe.tsx +0 -65
  27. package/src/components/alert/alert.slots.tsx +0 -46
  28. package/src/components/alert/alert.stories.tsx +0 -308
  29. package/src/components/alert/alert.tsx +0 -18
  30. package/src/components/alert/alert.types.tsx +0 -70
  31. package/src/components/alert/components/alert.actions.tsx +0 -27
  32. package/src/components/alert/components/alert.description.tsx +0 -27
  33. package/src/components/alert/components/alert.dismiss-button.tsx +0 -41
  34. package/src/components/alert/components/alert.root.tsx +0 -92
  35. package/src/components/alert/components/alert.title.tsx +0 -29
  36. package/src/components/alert/index.ts +0 -2
  37. package/src/components/avatar/avatar.mdx +0 -80
  38. package/src/components/avatar/avatar.recipe.tsx +0 -36
  39. package/src/components/avatar/avatar.slots.tsx +0 -16
  40. package/src/components/avatar/avatar.stories.tsx +0 -136
  41. package/src/components/avatar/avatar.tsx +0 -34
  42. package/src/components/avatar/avatar.types.ts +0 -33
  43. package/src/components/avatar/index.ts +0 -2
  44. package/src/components/badge/badge.mdx +0 -91
  45. package/src/components/badge/badge.recipe.tsx +0 -72
  46. package/src/components/badge/badge.slots.tsx +0 -8
  47. package/src/components/badge/badge.stories.tsx +0 -124
  48. package/src/components/badge/badge.tsx +0 -35
  49. package/src/components/badge/badge.types.tsx +0 -40
  50. package/src/components/badge/index.ts +0 -2
  51. package/src/components/bleed/bleed.tsx +0 -1
  52. package/src/components/bleed/index.ts +0 -1
  53. package/src/components/box/box.mdx +0 -115
  54. package/src/components/box/box.stories.tsx +0 -71
  55. package/src/components/box/box.tsx +0 -11
  56. package/src/components/box/index.ts +0 -1
  57. package/src/components/button/button.mdx +0 -169
  58. package/src/components/button/button.recipe.ts +0 -185
  59. package/src/components/button/button.slots.tsx +0 -45
  60. package/src/components/button/button.stories.tsx +0 -369
  61. package/src/components/button/button.tsx +0 -37
  62. package/src/components/button/button.types.ts +0 -14
  63. package/src/components/button/index.ts +0 -2
  64. package/src/components/card/card.mdx +0 -92
  65. package/src/components/card/card.recipe.tsx +0 -71
  66. package/src/components/card/card.slots.tsx +0 -50
  67. package/src/components/card/card.stories.tsx +0 -175
  68. package/src/components/card/card.tsx +0 -9
  69. package/src/components/card/card.types.ts +0 -22
  70. package/src/components/card/components/card.content.tsx +0 -29
  71. package/src/components/card/components/card.header.tsx +0 -28
  72. package/src/components/card/components/card.root.tsx +0 -62
  73. package/src/components/card/index.ts +0 -2
  74. package/src/components/checkbox/checkbox.mdx +0 -78
  75. package/src/components/checkbox/checkbox.recipe.tsx +0 -116
  76. package/src/components/checkbox/checkbox.slots.tsx +0 -33
  77. package/src/components/checkbox/checkbox.stories.tsx +0 -200
  78. package/src/components/checkbox/checkbox.tsx +0 -77
  79. package/src/components/checkbox/checkbox.types.tsx +0 -22
  80. package/src/components/checkbox/index.ts +0 -2
  81. package/src/components/code/code.mdx +0 -17
  82. package/src/components/code/code.recipe.ts +0 -63
  83. package/src/components/code/code.tsx +0 -1
  84. package/src/components/code/index.ts +0 -1
  85. package/src/components/dialog/dialog.mdx +0 -20
  86. package/src/components/dialog/dialog.recipe.ts +0 -254
  87. package/src/components/dialog/dialog.tsx +0 -61
  88. package/src/components/dialog/index.ts +0 -1
  89. package/src/components/em/em.mdx +0 -17
  90. package/src/components/em/em.tsx +0 -1
  91. package/src/components/em/index.ts +0 -1
  92. package/src/components/flex/flex.mdx +0 -41
  93. package/src/components/flex/flex.tsx +0 -1
  94. package/src/components/flex/index.ts +0 -1
  95. package/src/components/grid/grid.mdx +0 -156
  96. package/src/components/grid/grid.stories.tsx +0 -151
  97. package/src/components/grid/grid.tsx +0 -29
  98. package/src/components/grid/index.ts +0 -1
  99. package/src/components/heading/heading.mdx +0 -23
  100. package/src/components/heading/heading.recipe.ts +0 -49
  101. package/src/components/heading/heading.tsx +0 -1
  102. package/src/components/heading/index.ts +0 -1
  103. package/src/components/highlight/highlight.mdx +0 -18
  104. package/src/components/highlight/highlight.tsx +0 -1
  105. package/src/components/highlight/index.ts +0 -1
  106. package/src/components/icon-button/icon-button.mdx +0 -98
  107. package/src/components/icon-button/icon-button.stories.tsx +0 -188
  108. package/src/components/icon-button/icon-button.tsx +0 -21
  109. package/src/components/icon-button/icon-button.types.tsx +0 -10
  110. package/src/components/icon-button/index.ts +0 -2
  111. package/src/components/index.ts +0 -33
  112. package/src/components/input/index.ts +0 -1
  113. package/src/components/input/input.mdx +0 -20
  114. package/src/components/input/input.recipe.ts +0 -95
  115. package/src/components/input/input.tsx +0 -1
  116. package/src/components/input-group/index.ts +0 -1
  117. package/src/components/input-group/input-group.mdx +0 -20
  118. package/src/components/input-group/input-group.tsx +0 -44
  119. package/src/components/kbd/index.ts +0 -1
  120. package/src/components/kbd/kbd.mdx +0 -18
  121. package/src/components/kbd/kbd.recipe.ts +0 -57
  122. package/src/components/kbd/kbd.tsx +0 -1
  123. package/src/components/link/index.ts +0 -2
  124. package/src/components/link/link.mdx +0 -77
  125. package/src/components/link/link.recipe.ts +0 -52
  126. package/src/components/link/link.slots.tsx +0 -29
  127. package/src/components/link/link.stories.tsx +0 -204
  128. package/src/components/link/link.tsx +0 -38
  129. package/src/components/link/link.types.tsx +0 -26
  130. package/src/components/list/index.ts +0 -1
  131. package/src/components/list/list.mdx +0 -18
  132. package/src/components/list/list.recipe.ts +0 -68
  133. package/src/components/list/list.tsx +0 -9
  134. package/src/components/loading-spinner/index.ts +0 -2
  135. package/src/components/loading-spinner/loading-spinner.mdx +0 -92
  136. package/src/components/loading-spinner/loading-spinner.recipe.tsx +0 -70
  137. package/src/components/loading-spinner/loading-spinner.slots.tsx +0 -38
  138. package/src/components/loading-spinner/loading-spinner.stories.tsx +0 -97
  139. package/src/components/loading-spinner/loading-spinner.tsx +0 -50
  140. package/src/components/loading-spinner/loading-spinner.types.tsx +0 -21
  141. package/src/components/nimbus-provider/color-mode.tsx +0 -32
  142. package/src/components/nimbus-provider/index.ts +0 -2
  143. package/src/components/nimbus-provider/nimbus-provider.mdx +0 -21
  144. package/src/components/nimbus-provider/nimbus-provider.tsx +0 -51
  145. package/src/components/select/components/select.clear-button.tsx +0 -31
  146. package/src/components/select/components/select.option-group.tsx +0 -48
  147. package/src/components/select/components/select.option.tsx +0 -21
  148. package/src/components/select/components/select.options.tsx +0 -23
  149. package/src/components/select/components/select.root.tsx +0 -81
  150. package/src/components/select/index.ts +0 -2
  151. package/src/components/select/select.mdx +0 -170
  152. package/src/components/select/select.recipe.tsx +0 -216
  153. package/src/components/select/select.slots.tsx +0 -58
  154. package/src/components/select/select.stories.tsx +0 -841
  155. package/src/components/select/select.tsx +0 -18
  156. package/src/components/select/select.types.tsx +0 -37
  157. package/src/components/simple-grid/index.ts +0 -1
  158. package/src/components/simple-grid/simple-grid.mdx +0 -133
  159. package/src/components/simple-grid/simple-grid.stories.tsx +0 -143
  160. package/src/components/simple-grid/simple-grid.tsx +0 -31
  161. package/src/components/stack/index.ts +0 -1
  162. package/src/components/stack/stack.mdx +0 -88
  163. package/src/components/stack/stack.stories.tsx +0 -82
  164. package/src/components/stack/stack.tsx +0 -15
  165. package/src/components/table/index.ts +0 -1
  166. package/src/components/table/table.mdx +0 -23
  167. package/src/components/table/table.recipe.ts +0 -170
  168. package/src/components/table/table.tsx +0 -43
  169. package/src/components/text/index.ts +0 -1
  170. package/src/components/text/text.mdx +0 -244
  171. package/src/components/text/text.tsx +0 -23
  172. package/src/components/text-input/index.ts +0 -2
  173. package/src/components/text-input/text-input.mdx +0 -118
  174. package/src/components/text-input/text-input.recipe.tsx +0 -68
  175. package/src/components/text-input/text-input.slots.tsx +0 -24
  176. package/src/components/text-input/text-input.stories.tsx +0 -282
  177. package/src/components/text-input/text-input.tsx +0 -39
  178. package/src/components/text-input/text-input.types.ts +0 -7
  179. package/src/components/toggle-button-group/components/toggle-button-group.button.tsx +0 -14
  180. package/src/components/toggle-button-group/components/toggle-button-group.root.tsx +0 -15
  181. package/src/components/toggle-button-group/index.ts +0 -2
  182. package/src/components/toggle-button-group/toggle-button-group.mdx +0 -94
  183. package/src/components/toggle-button-group/toggle-button-group.recipe.tsx +0 -64
  184. package/src/components/toggle-button-group/toggle-button-group.slots.tsx +0 -26
  185. package/src/components/toggle-button-group/toggle-button-group.stories.tsx +0 -311
  186. package/src/components/toggle-button-group/toggle-button-group.tsx +0 -12
  187. package/src/components/toggle-button-group/toggle-button-group.types.tsx +0 -62
  188. package/src/components/tooltip/index.ts +0 -4
  189. package/src/components/tooltip/make-element-focusable.stories.tsx +0 -56
  190. package/src/components/tooltip/make-element-focusable.tsx +0 -57
  191. package/src/components/tooltip/tooltip-trigger.stories.tsx +0 -157
  192. package/src/components/tooltip/tooltip-trigger.tsx +0 -15
  193. package/src/components/tooltip/tooltip.mdx +0 -48
  194. package/src/components/tooltip/tooltip.recipe.ts +0 -26
  195. package/src/components/tooltip/tooltip.slots.ts +0 -35
  196. package/src/components/tooltip/tooltip.stories.tsx +0 -139
  197. package/src/components/tooltip/tooltip.tsx +0 -31
  198. package/src/components/tooltip/tooltip.types.ts +0 -44
  199. package/src/components/visually-hidden/index.ts +0 -1
  200. package/src/components/visually-hidden/visually-hidden.mdx +0 -61
  201. package/src/components/visually-hidden/visually-hidden.stories.tsx +0 -124
  202. package/src/components/visually-hidden/visually-hidden.tsx +0 -18
  203. package/src/docs/accessibility.mdx +0 -21
  204. package/src/docs/background.mdx +0 -154
  205. package/src/docs/border.mdx +0 -226
  206. package/src/docs/changelog.mdx +0 -17
  207. package/src/docs/components-layout.mdx +0 -22
  208. package/src/docs/components.mdx +0 -17
  209. package/src/docs/data-display.mdx +0 -23
  210. package/src/docs/display.mdx +0 -55
  211. package/src/docs/effects.mdx +0 -73
  212. package/src/docs/feedback.mdx +0 -22
  213. package/src/docs/filters.mdx +0 -268
  214. package/src/docs/flex-and-grid.mdx +0 -445
  215. package/src/docs/forms.mdx +0 -22
  216. package/src/docs/generated/index.mdx +0 -16
  217. package/src/docs/getting-started.mdx +0 -17
  218. package/src/docs/home.mdx +0 -56
  219. package/src/docs/hooks.mdx +0 -16
  220. package/src/docs/inputs.mdx +0 -21
  221. package/src/docs/installation.mdx +0 -60
  222. package/src/docs/interactivity.mdx +0 -278
  223. package/src/docs/known-issues.mdx +0 -19
  224. package/src/docs/layout.mdx +0 -301
  225. package/src/docs/list.mdx +0 -82
  226. package/src/docs/markdown.mdx +0 -234
  227. package/src/docs/media.mdx +0 -22
  228. package/src/docs/naivgation.mdx +0 -22
  229. package/src/docs/playground.mdx +0 -16
  230. package/src/docs/rfcs-component-structure-rfcs.mdx +0 -17
  231. package/src/docs/rfcs-component-structure.mdx +0 -74
  232. package/src/docs/rfcs-hook-structure.mdx +0 -59
  233. package/src/docs/sizing.mdx +0 -210
  234. package/src/docs/spacing.mdx +0 -193
  235. package/src/docs/style-props-typography.mdx +0 -373
  236. package/src/docs/style-props.mdx +0 -15
  237. package/src/docs/svg.mdx +0 -58
  238. package/src/docs/tables.mdx +0 -95
  239. package/src/docs/toc.mdx +0 -39
  240. package/src/docs/tokens/animations.mdx +0 -68
  241. package/src/docs/tokens/aspect-ratios.mdx +0 -21
  242. package/src/docs/tokens/blurs.mdx +0 -20
  243. package/src/docs/tokens/borders.mdx +0 -25
  244. package/src/docs/tokens/breakpoints.mdx +0 -35
  245. package/src/docs/tokens/colors.mdx +0 -86
  246. package/src/docs/tokens/cursors.mdx +0 -21
  247. package/src/docs/tokens/radii.mdx +0 -23
  248. package/src/docs/tokens/shadows.mdx +0 -21
  249. package/src/docs/tokens/sizes.mdx +0 -54
  250. package/src/docs/tokens/spacing.mdx +0 -35
  251. package/src/docs/tokens/typography.mdx +0 -61
  252. package/src/docs/tokens/z-indices.mdx +0 -23
  253. package/src/docs/tokens-other.mdx +0 -17
  254. package/src/docs/tokens.mdx +0 -16
  255. package/src/docs/transforms.mdx +0 -150
  256. package/src/docs/transitions.mdx +0 -164
  257. package/src/docs/typography.mdx +0 -17
  258. package/src/docs/utilities.mdx +0 -17
  259. package/src/hooks/index.ts +0 -2
  260. package/src/hooks/use-copy-to-clipboard/use-copy-to-clipboard.mdx +0 -54
  261. package/src/hooks/use-copy-to-clipboard/use-copy-to-clipboard.ts +0 -1
  262. package/src/hooks/use-hotkeys/use-hotkeys.mdx +0 -48
  263. package/src/hooks/use-hotkeys/use-hotkeys.stories.tsx +0 -69
  264. package/src/hooks/use-hotkeys/use-hotkeys.ts +0 -1
  265. package/src/index.ts +0 -3
  266. package/src/test/utils.tsx +0 -20
  267. package/src/theme/animation-styles.ts +0 -52
  268. package/src/theme/breakpoints.ts +0 -32
  269. package/src/theme/global-css.ts +0 -53
  270. package/src/theme/index.ts +0 -35
  271. package/src/theme/keyframes.ts +0 -192
  272. package/src/theme/layer-styles.ts +0 -12
  273. package/src/theme/recipes/index.ts +0 -21
  274. package/src/theme/semantic-tokens/colors.ts +0 -55
  275. package/src/theme/semantic-tokens/index.ts +0 -9
  276. package/src/theme/semantic-tokens/radii.ts +0 -3
  277. package/src/theme/semantic-tokens/shadows.ts +0 -4
  278. package/src/theme/slot-recipes/index.ts +0 -15
  279. package/src/theme/text-styles.ts +0 -8
  280. package/src/theme/tokens/animations.ts +0 -4
  281. package/src/theme/tokens/aspect-ratios.ts +0 -5
  282. package/src/theme/tokens/blurs.ts +0 -5
  283. package/src/theme/tokens/borders.ts +0 -4
  284. package/src/theme/tokens/colors.ts +0 -8
  285. package/src/theme/tokens/cursor.ts +0 -4
  286. package/src/theme/tokens/durations.ts +0 -4
  287. package/src/theme/tokens/easings.ts +0 -4
  288. package/src/theme/tokens/font-sizes.ts +0 -4
  289. package/src/theme/tokens/font-weights.ts +0 -4
  290. package/src/theme/tokens/fonts.ts +0 -4
  291. package/src/theme/tokens/index.ts +0 -57
  292. package/src/theme/tokens/letter-spacings.ts +0 -24
  293. package/src/theme/tokens/line-heights.ts +0 -4
  294. package/src/theme/tokens/radii.ts +0 -4
  295. package/src/theme/tokens/sizes.ts +0 -120
  296. package/src/theme/tokens/spacing.ts +0 -4
  297. package/src/theme/tokens/z-index.ts +0 -4
  298. package/src/utils/extractStyleProps.ts +0 -26
  299. package/src/utils/fixedForwardRef.ts +0 -17
  300. package/tsconfig.json +0 -38
  301. package/vite.config.ts +0 -54
  302. package/vitest.config.ts +0 -50
@@ -1,25 +0,0 @@
1
- ---
2
- id: TokensBorders
3
- title: Borders
4
- description: The list of available border tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Borders
10
- tags:
11
- - border
12
- icon: BorderStyle
13
- ---
14
-
15
- # Borders
16
-
17
- The list of available border tokens:
18
-
19
- <GenericTokenTableDemo category="borders" demoProperty="border" />
20
-
21
- > [!IMPORTANT]
22
- > The design system uses `box-sizing: border-box` as a default. If you assign an
23
- > element a `width` of `100px`, the computed `border-width` value will be
24
- > included in the `100px`, effectively reducing the amount of space available
25
- > for content.
@@ -1,35 +0,0 @@
1
- ---
2
- id: Breakpoints
3
- title: Breakpoints
4
- description: The list of available breakpoints
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Other
10
- - Breakpoints
11
- tags:
12
- - z-index
13
- - layer
14
- - stacking
15
- - context
16
- icon: DesktopWindows
17
- ---
18
-
19
- # Breakpoints
20
-
21
- Breakpoints define specific screen widths at which your design should adapt to
22
- provide an optimal viewing experience for users. They are thresholds that
23
- represent a starting point for changes in styling, such as font sizes, layouts,
24
- and visibility of elements.
25
-
26
- Each breakpoint is a minimum width, meaning that styles associated with that
27
- breakpoint apply to screen sizes equal to or larger than the specified width.
28
- The styles remain active until the next breakpoint threshold is reached.
29
-
30
- ## Tokens
31
-
32
- The breakpoints **start** at the specified value and **end** at the next
33
- breakpoint value. The following breakpoint-tokens are supported:
34
-
35
- <GenericTokenTableDemo category="breakpoints" />
@@ -1,86 +0,0 @@
1
- ---
2
- id: Colors
3
- title: Colors
4
- description: available colors
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Colors
10
- tags:
11
- - colors
12
- icon: Palette
13
- ---
14
-
15
- # Colors
16
-
17
- In our design system, colors are organized into **scales** based on **contrast**
18
- levels to ensure clarity and **usability** across various contexts. Each scale
19
- provides a range of tones, from subtle backgrounds to high-contrast elements
20
- like text and interactive borders, enabling a consistent and accessible user
21
- experience.
22
-
23
- The scales are _interchangeable_, meaning a color like red can be swapped with
24
- green without losing the intended contrast levels. This flexibility ensures that
25
- our designs remain adaptable while maintaining visual hierarchy. Additionally,
26
- _the contrast-based approach eliminates the need for a separate "dark mode"
27
- design_, as the scales naturally support both light and dark environments
28
- seamlessly.
29
-
30
- ## Scale steps
31
-
32
- Below is a list of steps with corresponding use cases for various background,
33
- border, and text styles in the design system:
34
-
35
- | **Step** | **Use Case** |
36
- | -------- | ------------------------------------------------------ |
37
- | 1 | App background |
38
- | 2 | Subtle background |
39
- | 3 | UI element background |
40
- | 4 | Hovered UI element background |
41
- | 5 | Active / Selected UI element background |
42
- | 6 | Subtle borders and separators |
43
- | 7 | UI element border and focus rings |
44
- | 8 | Hovered UI element border |
45
- | 9 | Solid backgrounds |
46
- | 10 | Hovered solid backgrounds |
47
- | 11 | Low-contrast text |
48
- | 12 | High-contrast text |
49
- | contrast | a contrast color (black/white) that works on step 9+10 |
50
-
51
- ## System Colors
52
-
53
- Colors available for decoration or reference.
54
-
55
- <br />
56
-
57
- <ColorScales ids="tomato,red,ruby, crimson, pink, plum, purple, violet, iris,indigo,blue,cyan, teal,jade,green,grass,bronze,gold,brown,orange,amber,yellow,lime,mint,sky" />
58
-
59
- ## Blacks & Whites
60
-
61
- Black and white color scales do not adapt to the selected color-mode. Means a
62
- white will always be white, a black will always be black.
63
-
64
- > [!TIP]
65
- > Use the `neutral` color scales if you want to refer to a gray-tone that works
66
- > on the current background color (light-/dark-mode dependent).
67
-
68
- <br />
69
-
70
- <ColorScales ids="blackAlpha, whiteAlpha" />
71
-
72
- ## Brand Colors
73
-
74
- Custom colors, tailored to the brand.
75
-
76
- <br />
77
-
78
- <ColorScales ids="ctviolet, ctteal, ctyellow" />
79
-
80
- ## Semantic Colors
81
-
82
- Colors with meaning, used to communicate status or state.
83
-
84
- <br />
85
-
86
- <ColorScales ids="primary, neutral, info, success, danger, error" />
@@ -1,21 +0,0 @@
1
- ---
2
- id: TokensCursors
3
- title: Cursors
4
- description: The list of available cursor tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Other
10
- - Cursors
11
- tags:
12
- - cursor
13
- icon: Mouse
14
- ---
15
-
16
- # Cursors
17
-
18
- The list of available cursors. **Hover over the gray box** to see the cursor in
19
- action.
20
-
21
- <GenericTokenTableDemo category="cursor" demoProperty="cursor" />
@@ -1,23 +0,0 @@
1
- ---
2
- id: TokensRadii
3
- title: Radii
4
- description: The list of available radius tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Radii
10
- tags:
11
- - radius
12
- - radii
13
- - border-radius
14
- icon: Architecture
15
- ---
16
-
17
- # Radii
18
-
19
- The list of available radius tokens
20
-
21
- ## Tokens
22
-
23
- <GenericTokenTableDemo category="radii" demoProperty="borderRadius" />
@@ -1,21 +0,0 @@
1
- ---
2
- id: TokensShadows
3
- title: Shadows
4
- description: The list of available shadow tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Shadows
10
- tags:
11
- - shadows
12
- icon: Texture
13
- ---
14
-
15
- # Shadows
16
-
17
- The list of available shadow tokens
18
-
19
- ## Tokens
20
-
21
- <GenericTokenTableDemo category="shadows" demoProperty="boxShadow" />
@@ -1,54 +0,0 @@
1
- ---
2
- id: TokensSizes
3
- title: Sizes
4
- description: The list of available size tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Sizes
10
- tags:
11
- - sizes
12
- icon: Straighten
13
- ---
14
-
15
- # Sizes
16
-
17
- Different size type tokens are available to suit various design needs, including
18
- numerical, proportional, named, breakpoint, and others.
19
-
20
- The list of available size tokens:
21
-
22
- ## Numerical sizes
23
-
24
- Precise, incrementally scaled units for defining fixed dimensions
25
-
26
- <SizesTokenDemo group="regular" />
27
-
28
- ## Proportional sizes
29
-
30
- Proportional dimensional values expressed as fractions, suitable for dividing
31
- elements in layouts.
32
-
33
- <SizesTokenDemo group="fraction" />
34
-
35
- ## Large sizes
36
-
37
- Semantic size labels providing consistent values for specific dimensions,
38
- ensuring clarity and reusability.
39
-
40
- <SizesTokenDemo group="large" />
41
-
42
- ## Breakpoint
43
-
44
- Predefined screen width thresholds to adjust dimensional values for responsive
45
- layouts.
46
-
47
- <SizesTokenDemo group="breakpoint" />
48
-
49
- ## Others
50
-
51
- Viewport-based or content-driven dimensional values for flexible and adaptive
52
- element sizing.
53
-
54
- <SizesTokenDemo group="other" />
@@ -1,35 +0,0 @@
1
- ---
2
- id: Spacing
3
- title: Spacing
4
- description: Spacing tokens are used to define the space between elements.
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Spacing
10
- tags:
11
- - space
12
- - spacing
13
- icon: SpaceBar
14
- ---
15
-
16
- # Spacing Tokens
17
-
18
- Spacing tokens are used to define the space between elements. They are used to
19
- create consistent spacing between elements and to ensure that the layout is
20
- visually balanced.
21
-
22
- > [!NOTE]
23
- > Every token has a negative equivalent, in case you need to apply a negative
24
- > margin etc. Access the negative version by prependind the token name with a
25
- > dash. e.g. `-100`, `-400`, `-1000`, etc.
26
-
27
- <br />
28
-
29
- <SpacingTokenDemo />
30
-
31
- <br />
32
-
33
- > [!TIP]
34
- > To quickly calculate the token value in px, take the token name and divide it
35
- > by 25. e.g. `100 / 25 = 4px`, `400 / 25 = 16px`, `1000 / 25 = 40px`, etc.
@@ -1,61 +0,0 @@
1
- ---
2
- id: TokensTypography
3
- title: Typography
4
- description: everything typography related
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Typography
10
- tags:
11
- - text
12
- - headings
13
- - strong
14
- - bold
15
- - italic
16
- - emphasize
17
- icon: FormatSize
18
- ---
19
-
20
- # Typography
21
-
22
- Below you'll find the raw tokens to change typography styles on a text-element.
23
-
24
- ## Text Styles
25
-
26
- Text styles are collections of multiple typography rules (such as `font-size`,
27
- `line-height`, `letter-spacing` etc.) that create a specific, reusable style.
28
-
29
- > [!NOTE]
30
- > I added `caption`, `detail` & `body` from our existing styles, but they are
31
- > essentially just combinations of font-size & line-height and can be mapped to
32
- > `xs`, `sm` & `md`. The `headline` looks can be achieved by using the
33
- > textStyles on the `<Heading/>` component.
34
-
35
- ```jsx
36
- <Text textStyle="nameOfDesiredTextStyle">Heading 1</Text>
37
- ```
38
-
39
- ### Available Text Styles
40
-
41
- <TextStylesDemo />
42
-
43
- ## Fonts
44
-
45
- <GenericTokenTableDemo category="fonts" demoProperty="fontFamily" />
46
-
47
- ## Font Sizes
48
-
49
- <GenericTokenTableDemo category="fontSizes" demoProperty="fontSize" />
50
-
51
- ## Font Weights
52
-
53
- <GenericTokenTableDemo category="fontWeights" demoProperty="fontWeight" />
54
-
55
- ## Letter Spacings
56
-
57
- <GenericTokenTableDemo category="letterSpacings" demoProperty="letterSpacing" />
58
-
59
- ## Line Heights
60
-
61
- <GenericTokenTableDemo category="lineHeights" demoProperty="lineHeight" />
@@ -1,23 +0,0 @@
1
- ---
2
- id: ZIndex
3
- title: Z-Indices
4
- description: The list of available z-index tokens
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Tokens
9
- - Other
10
- - Z-Indices
11
- tags:
12
- - z-index
13
- - layer
14
- - stacking
15
- - context
16
- icon: Layers
17
- ---
18
-
19
- # Z-Indices
20
-
21
- The list of available z-index tokens.
22
-
23
- <GenericTokenTableDemo category="zIndex" />
@@ -1,17 +0,0 @@
1
- ---
2
- id: Tokens-Other
3
- title: Other
4
- description: Less frequently used design-tokens
5
- documentState: InitialDraft
6
- order: 9999
7
- menu:
8
- - Tokens
9
- - Other
10
- tags:
11
- - document
12
- icon: MoreHoriz
13
- ---
14
-
15
- # Other
16
-
17
- Less frequently used design-tokens
@@ -1,16 +0,0 @@
1
- ---
2
- id: Tokens
3
- title: Tokens
4
- description: design tokens to be used in conjunction with the ui components
5
- documentState: InitialDraft
6
- order: 2
7
- menu:
8
- - Tokens
9
- tags:
10
- - tokens
11
- - design
12
- ---
13
-
14
- # Tokens
15
-
16
- A collection of design tokens
@@ -1,150 +0,0 @@
1
- ---
2
- id: Style Props-Transforms
3
- title: Transforms
4
- description: JSX style props for transforming elements.
5
- documentState: InitialDraft
6
- order: 999
7
- menu:
8
- - Style Props
9
- - Transforms
10
- tags:
11
- - document
12
- ---
13
-
14
- # Transforms
15
-
16
- JSX style props for transforming elements.
17
-
18
- ## Scale
19
-
20
- Use the `scale` prop to control the scale of an element.
21
-
22
- ```jsx
23
- <Box scale="1.2" />
24
- ```
25
-
26
- When the `scale` prop is set to `auto`, the `scaleX` and `scaleY` props are used
27
- to control the scale of the element.
28
-
29
- | Prop | CSS Property | Token Category |
30
- | ------- | ------------ | -------------- |
31
- | `scale` | `scale` | - |
32
-
33
- ## Scale X
34
-
35
- Use the `scaleX` prop to control the scaleX property of an element. This
36
- requires the `scale` prop to be set to `auto`.
37
-
38
- ```jsx
39
- <Box scale="auto" scaleX="1.3" />
40
- ```
41
-
42
- | Prop | CSS Property | Token Category |
43
- | -------- | ------------ | -------------- |
44
- | `scaleX` | `--scale-x` | - |
45
-
46
- ## Scale Y
47
-
48
- Use the `scaleY` prop to control the scaleY property of an element. This
49
- requires the `scale` prop to be set to `auto`.
50
-
51
- ```jsx
52
- <Box scale="auto" scaleY="0.4" />
53
- ```
54
-
55
- | Prop | CSS Property | Token Category |
56
- | -------- | ------------ | -------------- |
57
- | `scaleY` | `--scale-y` | - |
58
-
59
- ## Rotate
60
-
61
- Use the `rotate` prop to control the rotate property of an element.
62
-
63
- ```jsx
64
- <Box rotate="45deg" />
65
- ```
66
-
67
- When the `rotate` prop is set to `auto`, the `rotateX` and `rotateY` props are
68
- used to control the rotate of the element.
69
-
70
- | Prop | CSS Property | Token Category |
71
- | -------- | ------------ | -------------- |
72
- | `rotate` | `rotate` | - |
73
-
74
- ## Rotate X
75
-
76
- Use the `rotateX` prop to control the rotateX property of an element.
77
-
78
- ```jsx
79
- <Box rotateX="45deg" />
80
- ```
81
-
82
- | Prop | CSS Property | Token Category |
83
- | --------- | ------------ | -------------- |
84
- | `rotateX` | `--rotate-x` | - |
85
-
86
- ## Rotate Y
87
-
88
- Use the `rotateY` prop to control the rotateY property of an element.
89
-
90
- ```jsx
91
- <Box rotateY="45deg" />
92
- ```
93
-
94
- | Prop | CSS Property | Token Category |
95
- | --------- | ------------ | -------------- |
96
- | `rotateY` | `--rotate-y` | - |
97
-
98
- ## Translate
99
-
100
- Use the `translate` prop to control the translate property of an element.
101
-
102
- ```jsx
103
- <Box translate="40px" />
104
- <Box translate="50% -40%" />
105
- ```
106
-
107
- When the `translate` prop is set to `auto`, the `translateX` and `translateY`
108
- props are used to control the translate of the element.
109
-
110
- | Prop | CSS Property | Token Category |
111
- | ----------- | ------------ | -------------- |
112
- | `translate` | `translate` | - |
113
-
114
- ## Translate X
115
-
116
- Use the `translateX` prop to control the translateX property of an element. This
117
- requires the `translate` prop to be set to `auto`.
118
-
119
- ```jsx
120
- // hardcoded values
121
- <Box translate="auto" translateX="50%" />
122
- <Box translate="auto" translateX="20px" />
123
-
124
- // token values
125
- <Box translate="auto" translateX="4" />
126
- <Box translate="auto" translateX="-10" />
127
- ```
128
-
129
- | Prop | CSS Property | Token Category |
130
- | ------------ | --------------- | -------------- |
131
- | `translateX` | `--translate-x` | `spacing` |
132
-
133
- ## Translate Y
134
-
135
- Use the `translateY` prop to control the translateY property of an element. This
136
- requires the `translate` prop to be set to `auto`.
137
-
138
- ```jsx
139
- // hardcoded values
140
- <Box translate="auto" translateY="-40%" />
141
- <Box translate="auto" translateY="4rem" />
142
-
143
- // token values
144
- <Box translate="auto" translateY="4" />
145
- <Box translate="auto" translateY="-10" />
146
- ```
147
-
148
- | Prop | CSS Property | Token Category |
149
- | ------------ | --------------- | -------------- |
150
- | `translateY` | `--translate-y` | `spacing` |