@7shifts/sous-chef 4.15.0 → 4.16.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 (223) hide show
  1. package/dist/actions/Button/Button.d.ts +5 -1
  2. package/dist/actions/Link/Link.d.ts +7 -0
  3. package/dist/actions/PaginationControls/PaginationControls.d.ts +7 -5
  4. package/dist/actions/Toggle/Toggle.d.ts +2 -0
  5. package/dist/controls/DateFilter/DateFilter.d.ts +16 -1
  6. package/dist/controls/SegmentedControl/SegmentedControl.d.ts +6 -0
  7. package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +9 -1
  8. package/dist/core/SousChefProvider/SousChefProvider.d.ts +7 -0
  9. package/dist/empty_states/EmptyStateContainer/types.d.ts +16 -2
  10. package/dist/feedback/CircularProgress/CircularProgress.d.ts +1 -0
  11. package/dist/feedback/InlineBanner/InlineBanner.d.ts +1 -0
  12. package/dist/feedback/MicroBanner/MicroBanner.d.ts +1 -0
  13. package/dist/feedback/PersistentBanner/PersistentBanner.d.ts +6 -0
  14. package/dist/feedback/ProgressBar/ProgressBar.d.ts +7 -1
  15. package/dist/feedback/Spinner/Spinner.d.ts +6 -0
  16. package/dist/feedback/Toast/Toast.d.ts +13 -0
  17. package/dist/forms/CheckboxField/CheckboxField.d.ts +4 -0
  18. package/dist/forms/CurrencyField/CurrencyField.d.ts +5 -21
  19. package/dist/forms/DateField/DateField.d.ts +13 -1
  20. package/dist/forms/DateRangeField/DateRangeCalendar/DateRangeCalendar.d.ts +6 -3
  21. package/dist/forms/DateRangeField/DateRangeField.d.ts +17 -3
  22. package/dist/forms/Form/Form.d.ts +13 -2
  23. package/dist/forms/FormFeedback/FormFeedback.d.ts +1 -0
  24. package/dist/forms/FormFooter/FormFooter.d.ts +11 -5
  25. package/dist/forms/FormFooter/FormFooterActions/FormFooterActions.d.ts +2 -5
  26. package/dist/forms/FormFooter/types.d.ts +10 -0
  27. package/dist/forms/FormRow/FormRow.d.ts +6 -0
  28. package/dist/forms/FormSection/FormSection.d.ts +4 -0
  29. package/dist/forms/MultiSelectField/MultiSelectField.d.ts +6 -2
  30. package/dist/forms/NumberField/NumberField.d.ts +4 -0
  31. package/dist/forms/PasswordField/PasswordField.d.ts +3 -0
  32. package/dist/forms/PercentageField/PercentageField.d.ts +13 -0
  33. package/dist/forms/PhoneField/PhoneField.d.ts +10 -0
  34. package/dist/forms/PillSelectField/PillSelectField.d.ts +9 -0
  35. package/dist/forms/PillSelectField/types.d.ts +2 -0
  36. package/dist/forms/RadioGroupBoxOption/RadioGroupBoxOption.d.ts +7 -0
  37. package/dist/forms/RadioGroupField/RadioGroupField.d.ts +8 -1
  38. package/dist/forms/RadioGroupField/RadioGroupFieldContext.d.ts +2 -1
  39. package/dist/forms/RadioGroupOption/RadioGroupOption.d.ts +6 -1
  40. package/dist/forms/SelectField/SelectField.d.ts +20 -3
  41. package/dist/forms/SelectField/types.d.ts +27 -0
  42. package/dist/forms/TextAreaField/TextAreaField.d.ts +7 -1
  43. package/dist/forms/TextField/TextField.d.ts +8 -0
  44. package/dist/forms/TimeField/TimeField.d.ts +23 -1
  45. package/dist/forms/TimeRangeField/TimeRangeField.d.ts +15 -2
  46. package/dist/forms/WeekField/WeekField.d.ts +4 -0
  47. package/dist/forms/WeekSelectField/WeekSelectField.d.ts +4 -0
  48. package/dist/forms/hooks/useRadioGroupFieldControllers.d.ts +1 -2
  49. package/dist/forms/hooks/useSelectFieldControllers.d.ts +2 -2
  50. package/dist/forms/index.d.ts +2 -0
  51. package/dist/foundation/tokens/color/color-constants.d.ts +34 -0
  52. package/dist/foundation/tokens/color/color-types.d.ts +1 -1
  53. package/dist/foundation/tokens/dimension/dimension-tokens.d.ts +1 -0
  54. package/dist/foundation/tokens/layout/TokenTable.d.ts +14 -0
  55. package/dist/foundation/tokens/layout/layout-tokens.d.ts +12 -0
  56. package/dist/hooks/useIsOverflowing.d.ts +2 -0
  57. package/dist/index.css +755 -479
  58. package/dist/index.css.map +1 -1
  59. package/dist/index.d.ts +2 -1
  60. package/dist/index.js +1295 -941
  61. package/dist/index.js.map +1 -1
  62. package/dist/index.modern.js +1431 -1098
  63. package/dist/index.modern.js.map +1 -1
  64. package/dist/ink_illustrations/components/design/Ink3DModeling.d.ts +7 -0
  65. package/dist/ink_illustrations/components/design/index.d.ts +1 -1
  66. package/dist/ink_illustrations/components/index.d.ts +2 -2
  67. package/dist/ink_illustrations/components/other/InkSculptureBust.d.ts +7 -0
  68. package/dist/ink_illustrations/components/other/index.d.ts +1 -1
  69. package/dist/ink_illustrations/components/{design/Ink3DModeling02.d.ts → travel/InkBoardingPass.d.ts} +2 -2
  70. package/dist/ink_illustrations/components/travel/InkVolcano.d.ts +7 -0
  71. package/dist/ink_illustrations/components/travel/index.d.ts +2 -2
  72. package/dist/ink_illustrations/components/weather/InkSun.d.ts +7 -0
  73. package/dist/ink_illustrations/components/weather/index.d.ts +1 -1
  74. package/dist/ink_illustrations/deprecatedAliases.d.ts +27 -0
  75. package/dist/ink_illustrations/index.d.ts +1 -0
  76. package/dist/layout/CalloutCard/CalloutCard.d.ts +1 -0
  77. package/dist/layout/Card/Card.d.ts +14 -0
  78. package/dist/layout/Inline/Inline.d.ts +20 -4
  79. package/dist/layout/Page/Page.d.ts +11 -3
  80. package/dist/layout/Page/PageBreadcrumbs/PageBreadcrumbs.d.ts +2 -2
  81. package/dist/layout/Page/types.d.ts +11 -2
  82. package/dist/layout/PageLayout/PageLayout.d.ts +18 -0
  83. package/dist/layout/PageLayout/types.d.ts +10 -0
  84. package/dist/layout/Stack/Stack.d.ts +16 -4
  85. package/dist/layout/index.d.ts +1 -0
  86. package/dist/lists/Accordion/Accordion.d.ts +10 -0
  87. package/dist/lists/Accordion/types.d.ts +4 -0
  88. package/dist/lists/ActionList/ActionList.d.ts +12 -0
  89. package/dist/lists/ActionList/type.d.ts +5 -0
  90. package/dist/lists/ActionListItem/ActionListItem.d.ts +17 -0
  91. package/dist/lists/BasicTable/BasicTable.d.ts +22 -0
  92. package/dist/lists/BasicTable/BasicTableSectionContext.d.ts +4 -0
  93. package/dist/lists/BasicTable/constants.d.ts +13 -0
  94. package/dist/lists/BasicTable/index.d.ts +1 -0
  95. package/dist/lists/BasicTable/types.d.ts +4 -0
  96. package/dist/lists/BasicTableBody/BasicTableBody.d.ts +9 -0
  97. package/dist/lists/BasicTableBody/index.d.ts +1 -0
  98. package/dist/lists/BasicTableCell/BasicTableCell.d.ts +14 -0
  99. package/dist/lists/BasicTableCell/index.d.ts +1 -0
  100. package/dist/lists/BasicTableHeader/BasicTableHeader.d.ts +9 -0
  101. package/dist/lists/BasicTableHeader/index.d.ts +1 -0
  102. package/dist/lists/BasicTableRow/BasicTableRow.d.ts +9 -0
  103. package/dist/lists/BasicTableRow/index.d.ts +1 -0
  104. package/dist/lists/DataTable/DataTable.d.ts +31 -8
  105. package/dist/lists/DataTable/types.d.ts +35 -0
  106. package/dist/lists/DataTableCell/DataTableCell.d.ts +1 -0
  107. package/dist/lists/DataTableEditableCell/DataTableEditableCell.d.ts +1 -0
  108. package/dist/lists/DataTableRow/DataTableRow.d.ts +12 -0
  109. package/dist/lists/index.d.ts +7 -1
  110. package/dist/media/Avatar/Avatar.d.ts +1 -0
  111. package/dist/media/Badge/Badge.d.ts +7 -2
  112. package/dist/media/Pill/Pill.d.ts +8 -0
  113. package/dist/media/Pill/constants.d.ts +2 -0
  114. package/dist/media/Pill/types.d.ts +3 -1
  115. package/dist/navigation/BreadcrumbItem/BreadcrumbItem.d.ts +1 -0
  116. package/dist/navigation/Breadcrumbs/Breadcrumbs.d.ts +1 -0
  117. package/dist/navigation/PrimaryNav/PrimaryNav.d.ts +1 -0
  118. package/dist/navigation/PrimaryNavFooter/PrimaryNavFooter.d.ts +1 -0
  119. package/dist/navigation/PrimaryNavItem/PrimaryNavItem.d.ts +1 -0
  120. package/dist/navigation/PrimaryNavSubItem/PrimaryNavSubItem.d.ts +1 -0
  121. package/dist/navigation/Tab/Tab.d.ts +1 -0
  122. package/dist/navigation/TabList/TabList.d.ts +1 -0
  123. package/dist/navigation/TabPanel/TabPanel.d.ts +1 -0
  124. package/dist/navigation/Tabs/Tabs.d.ts +1 -0
  125. package/dist/overlay/Calendar/Calendar.d.ts +15 -4
  126. package/dist/overlay/Dropdown/Dropdown.d.ts +1 -0
  127. package/dist/overlay/DropdownListDivider/DropdownListDivider.d.ts +1 -0
  128. package/dist/overlay/DropdownListItem/DropdownListItem.d.ts +1 -0
  129. package/dist/overlay/DropdownListItemSelectable/DropdownListItemSelectable.d.ts +1 -0
  130. package/dist/overlay/DropdownSubmenu/DropdownSubmenu.d.ts +1 -0
  131. package/dist/overlay/HintModal/HintModal.d.ts +1 -0
  132. package/dist/overlay/KebabMenu/types.d.ts +5 -0
  133. package/dist/overlay/Modal/Modal.d.ts +3 -0
  134. package/dist/overlay/Modal/ModalBody/ModalBody.d.ts +1 -0
  135. package/dist/overlay/Modal/ModalFooter/ModalFooter.d.ts +11 -6
  136. package/dist/overlay/Modal/ModalFooter/types.d.ts +10 -0
  137. package/dist/overlay/Popover/Popover.d.ts +8 -1
  138. package/dist/overlay/Tooltip/Tooltip.d.ts +2 -1
  139. package/dist/overlay/index.d.ts +1 -0
  140. package/dist/typography/KeyboardKey/KeyboardKey.d.ts +1 -0
  141. package/dist/typography/Text/Bold/Bold.d.ts +1 -0
  142. package/dist/typography/Text/Italic/Italic.d.ts +1 -0
  143. package/dist/typography/Text/Text.d.ts +23 -0
  144. package/dist/typography/Text/Underline/Underline.d.ts +1 -0
  145. package/dist/utils/formik.d.ts +5 -0
  146. package/llms-instructions/guidelines/ActionList.guidelines.md +1 -3
  147. package/llms-instructions/guidelines/Avatar.guidelines.md +6 -5
  148. package/llms-instructions/guidelines/Badge.guidelines.md +24 -8
  149. package/llms-instructions/guidelines/BasicTable.guidelines.md +80 -0
  150. package/llms-instructions/guidelines/Breadcrumbs.guidelines.md +2 -2
  151. package/llms-instructions/guidelines/Button.guidelines.md +3 -3
  152. package/llms-instructions/guidelines/Calendar.guidelines.md +12 -0
  153. package/llms-instructions/guidelines/Card.guidelines.md +2 -2
  154. package/llms-instructions/guidelines/CircularProgress.guidelines.md +1 -1
  155. package/llms-instructions/guidelines/DateFilter.guidelines.md +2 -2
  156. package/llms-instructions/guidelines/Dropdown.guidelines.md +3 -2
  157. package/llms-instructions/guidelines/EmptyState.guidelines.md +3 -1
  158. package/llms-instructions/guidelines/{Forms.guidelines.md → Form.guidelines.md} +41 -6
  159. package/llms-instructions/guidelines/Icons.guidelines.md +11 -10
  160. package/llms-instructions/guidelines/InkIllustrations.guidelines.md +5 -4
  161. package/llms-instructions/guidelines/Inline.guidelines.md +55 -0
  162. package/llms-instructions/guidelines/InlineBanner.guidelines.md +5 -3
  163. package/llms-instructions/guidelines/MultiSelectField.guidelines.md +2 -2
  164. package/llms-instructions/guidelines/Page.guidelines.md +65 -0
  165. package/llms-instructions/guidelines/PageLayout.guidelines.md +85 -0
  166. package/llms-instructions/guidelines/Paywall.guidelines.md +3 -2
  167. package/llms-instructions/guidelines/PersistentBanner.guidelines.md +2 -2
  168. package/llms-instructions/guidelines/Pill.guidelines.md +31 -3
  169. package/llms-instructions/guidelines/PillSelectField.guidelines.md +1 -1
  170. package/llms-instructions/guidelines/PrimaryNav.guidelines.md +144 -0
  171. package/llms-instructions/guidelines/SegmentedControl.guidelines.md +2 -2
  172. package/llms-instructions/guidelines/Skeleton.guidelines.md +3 -3
  173. package/llms-instructions/guidelines/Spinner.guidelines.md +6 -4
  174. package/llms-instructions/guidelines/Stack.guidelines.md +53 -0
  175. package/llms-instructions/guidelines/Text.guidelines.md +70 -0
  176. package/llms-instructions/guidelines/Toast.guidelines.md +2 -1
  177. package/llms-instructions/guidelines/Toggle.guidelines.md +2 -2
  178. package/llms-instructions/guidelines/ToolbarSelect.guidelines.md +2 -2
  179. package/llms-instructions/guidelines/Tooltip.guidelines.md +1 -1
  180. package/llms-instructions/llms-components.md +91 -19
  181. package/llms-instructions/llms-composing-components.md +583 -219
  182. package/llms-instructions/llms-icons-and-illustrations.md +305 -1011
  183. package/llms-instructions/llms-tokens.md +227 -164
  184. package/llms-instructions/llms.md +12 -28
  185. package/package.json +2 -2
  186. package/dist/ink_illustrations/components/other/InkS/321/201ulptureBust.d.ts +0 -7
  187. package/dist/ink_illustrations/components/travel/InkDrawing.d.ts +0 -7
  188. package/dist/ink_illustrations/components/travel/InkDrawing1.d.ts +0 -7
  189. package/dist/ink_illustrations/components/weather/InkGroup7975.d.ts +0 -7
  190. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/Ink3DGlasses.d.ts +0 -0
  191. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkAmusementPark.d.ts +0 -0
  192. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBallet.d.ts +0 -0
  193. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkBowling.d.ts +0 -0
  194. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCardGames.d.ts +0 -0
  195. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkCarouselWithHorses.d.ts +0 -0
  196. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDiscoBall.d.ts +0 -0
  197. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkDj.d.ts +0 -0
  198. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkFirecracker.d.ts +0 -0
  199. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkJoystick.d.ts +0 -0
  200. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMagicTricks.d.ts +0 -0
  201. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkMascarade.d.ts +0 -0
  202. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkNotesChart.d.ts +0 -0
  203. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkRollerSkating.d.ts +0 -0
  204. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkSlotMachine.d.ts +0 -0
  205. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/InkTheatre.d.ts +0 -0
  206. /package/dist/ink_illustrations/components/{enterteniment → entertainment}/index.d.ts +0 -0
  207. /package/dist/ink_illustrations/components/{sciency → science}/InkAnatomy.d.ts +0 -0
  208. /package/dist/ink_illustrations/components/{sciency → science}/InkAsteroid.d.ts +0 -0
  209. /package/dist/ink_illustrations/components/{sciency → science}/InkAstronaut.d.ts +0 -0
  210. /package/dist/ink_illustrations/components/{sciency → science}/InkBacteria.d.ts +0 -0
  211. /package/dist/ink_illustrations/components/{sciency → science}/InkChemistry.d.ts +0 -0
  212. /package/dist/ink_illustrations/components/{sciency → science}/InkDna.d.ts +0 -0
  213. /package/dist/ink_illustrations/components/{sciency → science}/InkLabTube.d.ts +0 -0
  214. /package/dist/ink_illustrations/components/{sciency → science}/InkMicroChips.d.ts +0 -0
  215. /package/dist/ink_illustrations/components/{sciency → science}/InkMicroscope.d.ts +0 -0
  216. /package/dist/ink_illustrations/components/{sciency → science}/InkNewtonsCradle.d.ts +0 -0
  217. /package/dist/ink_illustrations/components/{sciency → science}/InkNuclearEnergy.d.ts +0 -0
  218. /package/dist/ink_illustrations/components/{sciency → science}/InkPlanet.d.ts +0 -0
  219. /package/dist/ink_illustrations/components/{sciency → science}/InkPlantInTube.d.ts +0 -0
  220. /package/dist/ink_illustrations/components/{sciency → science}/InkRobotics.d.ts +0 -0
  221. /package/dist/ink_illustrations/components/{sciency → science}/InkSpaceTravel.d.ts +0 -0
  222. /package/dist/ink_illustrations/components/{sciency → science}/InkTelescope.d.ts +0 -0
  223. /package/dist/ink_illustrations/components/{sciency → science}/index.d.ts +0 -0
@@ -9,9 +9,25 @@ Design tokens are the single source of truth to name and store design decisions,
9
9
  Example:
10
10
 
11
11
  ```tsx
12
- import { COLORS, ZINDEX } from '@7shifts/sous-chef';
12
+ import { COLORS } from '@7shifts/sous-chef';
13
13
 
14
- <Text color={COLORS['color-primary-color']}>Text example</Text>;
14
+ // COLORS keys are the token names without the `--color-` prefix.
15
+ // COLORS['primary-color'] === 'var(--color-primary-color)'
16
+ export const highlightStyle = { borderColor: COLORS['primary-color'] };
17
+ ```
18
+
19
+ Component `color` props (for example on `Text` and the icons) accept the color token name directly, without the `--color-` prefix. The name is resolved to the CSS custom property for you, so you do not need `COLORS` there:
20
+
21
+ ```tsx
22
+ import React from 'react';
23
+ import { IconAward, Text } from '@7shifts/sous-chef';
24
+
25
+ export const Example = () => (
26
+ <>
27
+ <IconAward color="upsell-color" />
28
+ <Text color="danger-color">Text example</Text>
29
+ </>
30
+ );
15
31
  ```
16
32
 
17
33
  CSS custom properties are applied globally when you import:
@@ -97,9 +113,9 @@ Instead, try to use a semantic color token instead.
97
113
  | --color-blackberry-500 | #1c5cbb |
98
114
  | --color-blackberry-600 | #193f78 |
99
115
 
100
- ### Transparent colors
116
+ ### Transparent colors (deprecated)
101
117
 
102
- These are fixed-opacity overlays built on top of pure black or pure white.
118
+ The `--color-neutral-black-transparent-*` and `--color-neutral-white-transparent-*` tokens are deprecated and will be removed in the next major. Do NOT use them in new code. Use a semantic color token instead (for example `--color-surface-color-overlay`, `--color-outline`, `--color-hover-darken` or `--color-shadow-overlay`), which sets its own opacity:
103
119
 
104
120
  | Token Name | Value |
105
121
  | ------------------------------------ | ---------------------- |
@@ -143,152 +159,146 @@ Here is some information about common words you'll see across our color roles:
143
159
 
144
160
  #### Surface
145
161
 
146
- | Token | Light | Dark |
147
- | ------------------------------------------ | ------------------------------------ | ------------------------------------ |
148
- | --color-surface-color-overlay | --color-neutral-black-transparent-20 | rgba(0,0,0,0.5) |
149
- | --color-surface-color-dim | --color-eggshell | --color-coal |
150
- | --color-surface-color | --color-white | --color-grey-600 |
151
- | --color-surface-on-color-disabled | --color-neutral-black-transparent-20 | --color-neutral-white-transparent-30 |
152
- | --color-surface-on-color-subtle | --color-grey-400 | --color-grey-300 |
153
- | --color-surface-on-color | --color-grey-500 | --color-grey-100 |
154
- | --color-surface-on-color-bold | --color-grey-600 | --color-white |
155
- | --color-surface-container | --color-white | --color-grey-600 |
156
- | --color-surface-container-high | --color-grey-100 | --color-grey-500 |
157
- | --color-surface-container-highest | --color-grey-200 | --color-grey-400 |
158
- | --color-surface-container-disabled | --color-neutral-black-transparent-05 | --color-neutral-white-transparent-10 |
159
- | --color-surface-container-disabled-variant | --color-neutral-black-transparent-20 | --color-neutral-white-transparent-10 |
160
- | --color-surface-on-container-disabled | --color-neutral-black-transparent-40 | --color-neutral-white-transparent-50 |
161
- | --color-surface-inverse | --color-grey-600 | --color-grey-100 |
162
- | --color-surface-on-inverse | --color-white | --color-grey-600 |
163
- | --color-surface-on-inverse-disabled | --color-neutral-white-transparent-50 | --color-neutral-black-transparent-50 |
162
+ | Token | Light | Dark |
163
+ | ------------------------------------------ | --------------------- | --------------------- |
164
+ | --color-surface-color-overlay | rgba(0,0,0,0.2) | rgba(0,0,0,0.5) |
165
+ | --color-surface-color-overlay-variant | rgba(255,255,255,0.2) | rgba(0,0,0,0.2) |
166
+ | --color-surface-color-dim | --color-eggshell | --color-coal |
167
+ | --color-surface-color | --color-white | --color-grey-600 |
168
+ | --color-surface-on-color-disabled | rgba(0,0,0,0.2) | rgba(255,255,255,0.3) |
169
+ | --color-surface-on-color-subtle | --color-grey-400 | --color-grey-300 |
170
+ | --color-surface-on-color | --color-grey-500 | --color-grey-100 |
171
+ | --color-surface-on-color-bold | --color-grey-600 | --color-white |
172
+ | --color-surface-container | --color-white | --color-grey-600 |
173
+ | --color-surface-container-high | --color-grey-100 | --color-grey-500 |
174
+ | --color-surface-container-highest | --color-grey-200 | --color-grey-400 |
175
+ | --color-surface-container-disabled | rgba(0,0,0,0.05) | rgba(255,255,255,0.1) |
176
+ | --color-surface-container-disabled-variant | rgba(0,0,0,0.2) | rgba(255,255,255,0.1) |
177
+ | --color-surface-on-container-disabled | rgba(0,0,0,0.4) | rgba(255,255,255,0.5) |
178
+ | --color-surface-inverse | --color-grey-600 | --color-grey-100 |
179
+ | --color-surface-on-inverse-subtle | --color-grey-200 | --color-grey-400 |
180
+ | --color-surface-on-inverse | --color-grey-100 | --color-grey-500 |
181
+ | --color-surface-on-inverse-bold | --color-white | --color-black |
182
+ | --color-surface-on-inverse-disabled | rgba(255,255,255,0.5) | rgba(0,0,0,0.5) |
164
183
 
165
184
  #### Outline
166
185
 
167
186
  Outline color tokens are used for borders.
168
187
 
169
- | Token | Light | Dark |
170
- | ----------------------- | ------------------------------------ | ------------------------------------ |
171
- | --color-outline | --color-neutral-black-transparent-20 | --color-neutral-white-transparent-15 |
172
- | --color-outline-variant | --color-grey-200 | --color-grey-500 |
173
- | --color-outline-inverse | --color-white | --color-grey-600 |
188
+ | Token | Light | Dark |
189
+ | ----------------------- | ---------------- | ---------------------- |
190
+ | --color-outline | rgba(0,0,0,0.15) | rgba(255,255,255,0.15) |
191
+ | --color-outline-variant | --color-grey-200 | --color-grey-500 |
192
+ | --color-outline-inverse | --color-white | --color-grey-600 |
174
193
 
175
194
  #### Neutral
176
195
 
177
- | Token | Light | Dark |
178
- | ------------------------------------ | ---------------- | ---------------- |
179
- | --color-neutral-color | --color-oat-400 | --color-oat-300 |
180
- | --color-neutral-on-color | --color-white | --color-grey-600 |
181
- | --color-neutral-container | --color-oat-200 | --color-oat-500 |
182
- | --color-neutral-on-container | --color-grey-600 | --color-white |
183
- | --color-neutral-container-variant | --color-oat-100 | --color-oat-600 |
184
- | --color-neutral-on-container-variant | --color-oat-600 | --color-oat-300 |
196
+ | Token | Light | Dark |
197
+ | --------------------------------- | --------------- | ---------------- |
198
+ | --color-neutral-color | --color-oat-400 | --color-oat-300 |
199
+ | --color-neutral-on-color | --color-white | --color-grey-600 |
200
+ | --color-neutral-container | --color-oat-200 | --color-oat-500 |
201
+ | --color-neutral-on-container | --color-oat-600 | --color-oat-300 |
202
+ | --color-neutral-container-variant | --color-oat-100 | --color-oat-600 |
185
203
 
186
204
  #### Primary
187
205
 
188
- | Token | Light | Dark |
189
- | ------------------------------------ | ---------------------- | ---------------------- |
190
- | --color-primary-color | --color-blackberry-400 | --color-blackberry-400 |
191
- | --color-primary-on-color | --color-white | --color-white |
192
- | --color-primary-color-variant | --color-blackberry-600 | --color-blackberry-300 |
193
- | --color-primary-on-color-variant | --color-white | --color-white |
194
- | --color-primary-container | --color-blackberry-200 | --color-blackberry-500 |
195
- | --color-primary-on-container | --color-grey-600 | --color-white |
196
- | --color-primary-container-variant | --color-blackberry-100 | --color-blackberry-600 |
197
- | --color-primary-on-container-variant | --color-blackberry-600 | --color-blackberry-300 |
206
+ | Token | Light | Dark |
207
+ | --------------------------------- | ---------------------- | ---------------------- |
208
+ | --color-primary-color | --color-blackberry-400 | --color-blackberry-400 |
209
+ | --color-primary-on-color | --color-white | --color-white |
210
+ | --color-primary-color-variant | --color-blackberry-600 | --color-blackberry-300 |
211
+ | --color-primary-on-color-variant | --color-white | --color-white |
212
+ | --color-primary-container | --color-blackberry-200 | --color-blackberry-400 |
213
+ | --color-primary-on-container | --color-blackberry-600 | --color-blackberry-200 |
214
+ | --color-primary-container-variant | --color-blackberry-100 | --color-blackberry-600 |
198
215
 
199
216
  #### Secondary
200
217
 
201
- | Token | Light | Dark |
202
- | -------------------------------------- | --------------------- | --------------------- |
203
- | --color-secondary-color | --color-tangerine-400 | --color-tangerine-400 |
204
- | --color-secondary-on-color | --color-white | --color-white |
205
- | --color-secondary-container | --color-tangerine-200 | --color-tangerine-500 |
206
- | --color-secondary-on-container | --color-grey-600 | --color-white |
207
- | --color-secondary-container-variant | --color-tangerine-100 | --color-tangerine-600 |
208
- | --color-secondary-on-container-variant | --color-tangerine-600 | --color-tangerine-300 |
218
+ | Token | Light | Dark |
219
+ | ----------------------------------- | --------------------- | --------------------- |
220
+ | --color-secondary-color | --color-tangerine-400 | --color-tangerine-400 |
221
+ | --color-secondary-on-color | --color-white | --color-white |
222
+ | --color-secondary-container | --color-tangerine-200 | --color-tangerine-500 |
223
+ | --color-secondary-on-container | --color-tangerine-600 | --color-tangerine-200 |
224
+ | --color-secondary-container-variant | --color-tangerine-100 | --color-tangerine-600 |
209
225
 
210
226
  #### Tertiary
211
227
 
212
- | Token | Light | Dark |
213
- | ------------------------------------- | ---------------- | ---------------- |
214
- | --color-tertiary-color | --color-lime-600 | --color-lime-600 |
215
- | --color-tertiary-on-color | --color-white | --color-white |
216
- | --color-tertiary-container | --color-lime-200 | --color-lime-200 |
217
- | --color-tertiary-on-container | --color-grey-600 | --color-grey-600 |
218
- | --color-tertiary-container-variant | --color-lime-400 | --color-lime-400 |
219
- | --color-tertiary-on-container-variant | --color-grey-600 | --color-grey-600 |
228
+ | Token | Light | Dark |
229
+ | ---------------------------------- | ---------------- | ---------------- |
230
+ | --color-tertiary-color | --color-lime-600 | --color-lime-600 |
231
+ | --color-tertiary-on-color | --color-white | --color-white |
232
+ | --color-tertiary-container | --color-lime-200 | --color-lime-500 |
233
+ | --color-tertiary-on-container | --color-lime-600 | --color-lime-100 |
234
+ | --color-tertiary-container-variant | --color-lime-400 | --color-lime-600 |
220
235
 
221
236
  #### Success
222
237
 
223
- | Token | Light | Dark |
224
- | ------------------------------------ | ---------------- | ---------------- |
225
- | --color-success-color | --color-mint-400 | --color-mint-300 |
226
- | --color-success-on-color | --color-white | --color-grey-600 |
227
- | --color-success-container | --color-mint-200 | --color-mint-500 |
228
- | --color-success-on-container | --color-grey-600 | --color-white |
229
- | --color-success-container-variant | --color-mint-100 | --color-mint-600 |
230
- | --color-success-on-container-variant | --color-mint-600 | --color-mint-300 |
238
+ | Token | Light | Dark |
239
+ | --------------------------------- | ---------------- | ---------------- |
240
+ | --color-success-color | --color-mint-400 | --color-mint-300 |
241
+ | --color-success-on-color | --color-white | --color-grey-600 |
242
+ | --color-success-container | --color-mint-200 | --color-mint-500 |
243
+ | --color-success-on-container | --color-mint-600 | --color-mint-200 |
244
+ | --color-success-container-variant | --color-mint-100 | --color-mint-600 |
231
245
 
232
246
  #### Danger
233
247
 
234
- | Token | Light | Dark |
235
- | ----------------------------------- | ------------------ | ------------------ |
236
- | --color-danger-color | --color-radish-400 | --color-radish-400 |
237
- | --color-danger-on-color | --color-white | --color-grey-600 |
238
- | --color-danger-container | --color-radish-200 | --color-radish-500 |
239
- | --color-danger-on-container | --color-grey-600 | --color-white |
240
- | --color-danger-container-variant | --color-radish-100 | --color-radish-600 |
241
- | --color-danger-on-container-variant | --color-radish-600 | --color-radish-300 |
248
+ | Token | Light | Dark |
249
+ | -------------------------------- | ------------------ | ------------------ |
250
+ | --color-danger-color | --color-radish-400 | --color-radish-400 |
251
+ | --color-danger-on-color | --color-white | --color-grey-600 |
252
+ | --color-danger-container | --color-radish-200 | --color-radish-500 |
253
+ | --color-danger-on-container | --color-radish-600 | --color-radish-200 |
254
+ | --color-danger-container-variant | --color-radish-100 | --color-radish-600 |
242
255
 
243
256
  #### Warning
244
257
 
245
- | Token | Light | Dark |
246
- | ------------------------------------ | ------------------ | ------------------ |
247
- | --color-warning-color | --color-banana-400 | --color-banana-300 |
248
- | --color-warning-on-color | --color-white | --color-grey-600 |
249
- | --color-warning-container | --color-banana-200 | --color-banana-500 |
250
- | --color-warning-on-container | --color-grey-600 | --color-white |
251
- | --color-warning-container-variant | --color-banana-100 | --color-banana-600 |
252
- | --color-warning-on-container-variant | --color-banana-600 | --color-banana-300 |
258
+ | Token | Light | Dark |
259
+ | --------------------------------- | ------------------ | ------------------ |
260
+ | --color-warning-color | --color-banana-400 | --color-banana-300 |
261
+ | --color-warning-on-color | --color-white | --color-grey-600 |
262
+ | --color-warning-container | --color-banana-200 | --color-banana-500 |
263
+ | --color-warning-on-container | --color-banana-600 | --color-banana-200 |
264
+ | --color-warning-container-variant | --color-banana-100 | --color-banana-600 |
253
265
 
254
266
  #### Info
255
267
 
256
- | Token | Light | Dark |
257
- | --------------------------------- | --------------------- | --------------------- |
258
- | --color-info-color | --color-blueberry-400 | --color-blueberry-300 |
259
- | --color-info-on-color | --color-white | --color-grey-600 |
260
- | --color-info-container | --color-blueberry-200 | --color-blueberry-500 |
261
- | --color-info-on-container | --color-grey-600 | --color-white |
262
- | --color-info-container-variant | --color-blueberry-100 | --color-blueberry-600 |
263
- | --color-info-on-container-variant | --color-blueberry-600 | --color-blueberry-300 |
268
+ | Token | Light | Dark |
269
+ | ------------------------------ | --------------------- | --------------------- |
270
+ | --color-info-color | --color-blueberry-400 | --color-blueberry-300 |
271
+ | --color-info-on-color | --color-white | --color-grey-600 |
272
+ | --color-info-container | --color-blueberry-200 | --color-blueberry-500 |
273
+ | --color-info-on-container | --color-blueberry-600 | --color-blueberry-200 |
274
+ | --color-info-container-variant | --color-blueberry-100 | --color-blueberry-600 |
264
275
 
265
276
  #### Upsell
266
277
 
267
- | Token | Light | Dark |
268
- | ----------------------------------- | -------------------- | -------------------- |
269
- | --color-upsell-color | --color-eggplant-400 | --color-eggplant-300 |
270
- | --color-upsell-on-color | --color-white | --color-grey-600 |
271
- | --color-upsell-color-variant | --color-eggplant-300 | --color-eggplant-300 |
272
- | --color-upsell-on-color-variant | --color-grey-600 | --color-grey-600 |
273
- | --color-upsell-container | --color-eggplant-200 | --color-eggplant-500 |
274
- | --color-upsell-on-container | --color-grey-600 | --color-white |
275
- | --color-upsell-container-variant | --color-eggplant-100 | --color-eggplant-600 |
276
- | --color-upsell-on-container-variant | --color-eggplant-600 | --color-eggplant-300 |
278
+ | Token | Light | Dark |
279
+ | -------------------------------- | -------------------- | -------------------- |
280
+ | --color-upsell-color | --color-eggplant-400 | --color-eggplant-300 |
281
+ | --color-upsell-on-color | --color-white | --color-grey-600 |
282
+ | --color-upsell-color-variant | --color-eggplant-300 | --color-eggplant-300 |
283
+ | --color-upsell-on-color-variant | --color-grey-600 | --color-grey-600 |
284
+ | --color-upsell-container | --color-eggplant-200 | --color-eggplant-500 |
285
+ | --color-upsell-on-container | --color-eggplant-600 | --color-eggplant-200 |
286
+ | --color-upsell-container-variant | --color-eggplant-100 | --color-eggplant-600 |
277
287
 
278
288
  #### Shadow
279
289
 
280
- | Token | Light | Dark |
281
- | ---------------------- | ------------------------------------ | ------------------------------------ |
282
- | --color-shadow-overlay | --color-neutral-black-transparent-20 | --color-neutral-black-transparent-40 |
283
- | --color-shadow-active | --color-blackberry-400 | --color-blackberry-400 |
290
+ | Token | Light | Dark |
291
+ | ---------------------- | ---------------------- | ---------------------- |
292
+ | --color-shadow-overlay | rgba(0,0,0,0.2) | rgba(0,0,0,0.4) |
293
+ | --color-shadow-active | --color-blackberry-400 | --color-blackberry-400 |
284
294
 
285
295
  #### Hover
286
296
 
287
- | Token | Light | Dark |
288
- | --------------------- | ------------------------------------ | ------------------------------------ |
289
- | --color-hover-inverse | --color-neutral-white-transparent-05 | --color-neutral-black-transparent-05 |
290
- | --color-hover-lighten | --color-neutral-white-transparent-20 | --color-neutral-black-transparent-20 |
291
- | --color-hover-darken | --color-neutral-black-transparent-05 | --color-neutral-white-transparent-05 |
297
+ | Token | Light | Dark |
298
+ | --------------------- | ---------------------- | ---------------------- |
299
+ | --color-hover-inverse | rgba(255,255,255,0.05) | rgba(0,0,0,0.05) |
300
+ | --color-hover-lighten | rgba(255,255,255,0.2) | rgba(0,0,0,0.2) |
301
+ | --color-hover-darken | rgba(0,0,0,0.02) | rgba(255,255,255,0.05) |
292
302
 
293
303
  #### Sequential
294
304
 
@@ -405,16 +415,114 @@ Ideally, you won't need to use the typography tokens, as you will be using the S
405
415
  | --p-font-weight-semibold | 500 |
406
416
  | --p-font-weight-bold | 600 |
407
417
 
408
- ## Border radius
418
+ ## Dimension
419
+
420
+ Dimension tokens are the primitive scale for every pixel value: spacing, padding, gap, radius, width and height. 1 dimensional unit = 4px (`--dim-3x` = 12px). Exception: `--dim-999x` is a literal 999px (not 999 × 4px), used for fully rounded shapes.
421
+
422
+ Pick a value in this order:
423
+
424
+ 1. A semantic token for the property when one fits: `--radius-*` for corners, `--space-*` for space between elements, `--padding-*` for space inside a page.
425
+ 2. A `--dim-*` primitive when no semantic token fits.
426
+ 3. A hard-coded pixel value only when you need an exact value that is not on the scale, for example to force an alignment. Avoid this whenever possible.
427
+
428
+ Sous Chef keeps these as hard-coded values on purpose, so they do not need a token: border widths, 1px adjustments, sizes off the 4px grid (such as the 38px control height) and widths larger than the scale (above 96px).
429
+
430
+ ```css
431
+ width: var(--dim-20x);
432
+ ```
433
+
434
+ | Token | Value |
435
+ | ----------- | ----- |
436
+ | --dim-0x | 0px |
437
+ | --dim-0-25x | 1px |
438
+ | --dim-0-5x | 2px |
439
+ | --dim-1x | 4px |
440
+ | --dim-1-5x | 6px |
441
+ | --dim-2x | 8px |
442
+ | --dim-2-5x | 10px |
443
+ | --dim-3x | 12px |
444
+ | --dim-3-5x | 14px |
445
+ | --dim-4x | 16px |
446
+ | --dim-4-5x | 18px |
447
+ | --dim-5x | 20px |
448
+ | --dim-6x | 24px |
449
+ | --dim-7x | 28px |
450
+ | --dim-8x | 32px |
451
+ | --dim-9x | 36px |
452
+ | --dim-10x | 40px |
453
+ | --dim-11x | 44px |
454
+ | --dim-12x | 48px |
455
+ | --dim-13x | 52px |
456
+ | --dim-14x | 56px |
457
+ | --dim-15x | 60px |
458
+ | --dim-16x | 64px |
459
+ | --dim-17x | 68px |
460
+ | --dim-18x | 72px |
461
+ | --dim-19x | 76px |
462
+ | --dim-20x | 80px |
463
+ | --dim-21x | 84px |
464
+ | --dim-22x | 88px |
465
+ | --dim-23x | 92px |
466
+ | --dim-24x | 96px |
467
+ | --dim-999x | 999px |
468
+
469
+ ## Radius
409
470
 
410
471
  Most of the time you won't need to use these tokens because it is baked into Sous Chef components (for example, Buttons, Cards, Data Tables, and others). However, if you need to create a custom experience and need to add border radius, then you can use the following tokens:
411
472
 
412
- | Token | Value |
413
- | ------------------- | ----- |
414
- | --border-radius-300 | 4px |
415
- | --border-radius-400 | 8px |
416
- | --border-radius-500 | 12px |
417
- | --border-radius-600 | 20px |
473
+ | Token | Primitive | Value |
474
+ | ------------------ | ---------- | ----- |
475
+ | --radius-square | --dim-0x | 0px |
476
+ | --radius-micro | --dim-1-5x | 6px |
477
+ | --radius-component | --dim-2x | 8px |
478
+ | --radius-card | --dim-3x | 12px |
479
+ | --radius-full | --dim-999x | 999px |
480
+
481
+ The `--border-radius-*` tokens are deprecated aliases of the radius tokens and will be removed in the next major. Do NOT use them in new code:
482
+
483
+ | Deprecated token | Replace with | Value |
484
+ | ------------------- | ------------------ | ----- |
485
+ | --border-radius-300 | --radius-micro | 6px |
486
+ | --border-radius-400 | --radius-component | 8px |
487
+ | --border-radius-500 | --radius-card | 12px |
488
+ | --border-radius-600 | --radius-card | 12px |
489
+
490
+ ## Space
491
+
492
+ Space tokens set the gap between elements (`gap`, `margin`): page (between the page header and each section, and between sections), section (between the elements inside a section, such as cards side by side or stacked; not between the section title and its content) and content (between the parts inside a single component or piece of content, such as a card or modal, `xs` to `xl`).
493
+
494
+ In Sous Chef, the `Stack` and `Inline` components put elements in a stack or side by side, and they have a `space` prop. The default is `20px` (same as `--space-section-default`) if not passed. For example:
495
+
496
+ ```tsx
497
+ import React from 'react';
498
+ import { Card, Stack } from '@7shifts/sous-chef';
499
+
500
+ export const Example = () => (
501
+ <Stack space={12}>
502
+ <Card>Card 1</Card>
503
+ <Card>Card 2</Card>
504
+ </Stack>
505
+ );
506
+ ```
507
+
508
+ | Token | Primitive | Value |
509
+ | ----------------------- | --------- | ----- |
510
+ | --space-page-default | --dim-10x | 40px |
511
+ | --space-section-default | --dim-5x | 20px |
512
+ | --space-content-xs | --dim-1x | 4px |
513
+ | --space-content-sm | --dim-2x | 8px |
514
+ | --space-content-md | --dim-3x | 12px |
515
+ | --space-content-lg | --dim-4x | 16px |
516
+ | --space-content-xl | --dim-5x | 20px |
517
+
518
+ ## Padding
519
+
520
+ Padding tokens set the space inside a container. Use `--padding-page-default` for regular pages and `--padding-page-tight` where horizontal room is limited. Sections have no padding of their own.
521
+
522
+ | Token | Primitive | Value |
523
+ | ---------------------- | --------- | ----- |
524
+ | --padding-page-default | --dim-8x | 32px |
525
+ | --padding-page-tight | --dim-5x | 20px |
418
526
 
419
527
  ## Z-index
420
528
 
@@ -429,48 +537,3 @@ Use these tokens to keep stacking contexts consistent. Prefer them over hardcode
429
537
  | --z-index-dropdown-level-2 | 210 |
430
538
  | --z-index-tooltip | 300 |
431
539
  | --z-index-portal | 9999 |
432
-
433
- ## Spacing
434
-
435
- We don't have defined tokens for spacing, such as padding, margin, gap, and others. However, always use a spacing unit of `4px`, for example:
436
-
437
- ```
438
- margin: 4px;
439
- ```
440
-
441
- In Sous Chef, we have the `Stack` and `Inline` components that are responsible for putting elements in a stack or side by side, and they have a `space` prop. The default is `20px` if not passed. For example:
442
-
443
- ```
444
- <Stack space={12}>
445
- <Card>Card 1</Card>
446
- <Card>Card 2</Card>
447
- </Stack>
448
- ```
449
-
450
- In the application level, it might be available a SCSS variable for spacing:
451
-
452
- ```
453
- // Space based on a 4px multiplier.
454
- $space-1x: 4px;
455
- $space-2x: $space-1x * 2;
456
- $space-3x: $space-1x * 3;
457
- $space-4x: $space-1x * 4;
458
- $space-5x: $space-1x * 5;
459
- $space-6x: $space-1x * 6;
460
- $space-7x: $space-1x * 7;
461
- $space-8x: $space-1x * 8;
462
- $space-9x: $space-1x * 9;
463
- $space-10x: $space-1x * 10;
464
- $space-11x: $space-1x * 11;
465
- $space-12x: $space-1x * 12;
466
- $space-13x: $space-1x * 13;
467
- $space-14x: $space-1x * 14;
468
- $space-15x: $space-1x * 15;
469
- $space-16x: $space-1x * 16;
470
- $space-17x: $space-1x * 17;
471
- $space-18x: $space-1x * 18;
472
- $space-19x: $space-1x * 19;
473
- $space-20x: $space-1x * 20;
474
- ```
475
-
476
- If there is a spacing variable available, then prefer using it instead of a hardcoded value.
@@ -11,8 +11,11 @@ The foundational design decisions and values that ensure consistency across the
11
11
  - Key features:
12
12
  - Color tokens (background, text, border, etc.)
13
13
  - Typography tokens (font size, line height, font weight)
14
- - Border radius tokens
15
- - Spacing tokens
14
+ - Dimension tokens (`--dim-*`, the 4px scale behind every pixel value)
15
+ - Border radius tokens (`--radius-*`)
16
+ - Space tokens (`--space-*`, the gap between elements)
17
+ - Padding tokens (`--padding-*`, the space inside a page)
18
+ - Z-index tokens
16
19
 
17
20
  ## Components
18
21
 
@@ -25,11 +28,11 @@ Building block components made in React for creating consistent user interfaces.
25
28
  - Controls (DateFilter, SegmentedControl, ToolbarSelect)
26
29
  - Empty States (EmptyState, Paywall)
27
30
  - Feedback (CircularProgress, InlineBanner, MicroBanner, PersistentBanner, ProgressBar, Skeleton, Spinner, Toast)
28
- - Forms (AsyncSelectField, CheckboxField, ColorField, CurrencyField, DateField, DateRangeField, SelectField, TextField, and others)
29
- - Media (Avatar, Badge, Chip, Pill)
30
- - Layout (CalloutCard, Card, Inline, Page, PageLayout, Stack)
31
- - Lists (Accordion, ActionList, DataTable)
32
- - Navigation (Breadcrumbs)
31
+ - Forms (Form, FormRow, FormSection, FormFooter, AsyncSelectField, CheckboxField, ColorField, CurrencyField, DateField, DateRangeField, SelectField, TextField, and others)
32
+ - Media (Avatar, Badge, Chip, Pill, ShortcutKey)
33
+ - Layout (Card, Inline, Page, PageLayout, Stack, and the deprecated CalloutCard)
34
+ - Lists (Accordion, ActionList, BasicTable, DataTable)
35
+ - Navigation (Breadcrumbs, PrimaryNav, Tabs)
33
36
  - Overlay (Calendar, Dropdown, HintModal, Modal, Popover, Tooltip)
34
37
  - Typography (Text)
35
38
 
@@ -54,25 +57,6 @@ Practical examples with code snippets on how to compose some common interfaces.
54
57
  - Forms
55
58
  - Data Tables (list of data)
56
59
 
57
- ## Missing components
60
+ ## Constraints and missing components
58
61
 
59
- There is a few missing components in the library. When you need something that does not exist in the library, first check if there is something available in the shared components in the application, if nothing was found, then you are free to create your own but, using the Sous Chef tokens.
60
-
61
- Here are the missing components:
62
-
63
- - Tab
64
- - Full screen modals
65
- - File upload form field
66
- - Grid system
67
- - App layout structure (something with slots for top bar, left nav and content)
68
-
69
- ## Constraints
70
-
71
- To ensure the generated code is consistent, follow these rules:
72
-
73
- - Don't use hardcoded color hashes. Always use a semantic color token ([reference to color tokens](llms-tokens.md)).
74
- - Not everything needs to use a Sous Chef component. If you notice something is missing in Sous Chef, you can treat that as custom UI to solve a specific problem. In this case:
75
- - Structure the component in isolation (separate folder, with its own style file, and tests)
76
- - Make sure it uses the Sous Chef design tokens
77
- - For text, always try to use the props for the component, for example, the `TextField` component takes a `label` prop for the text, the same goes for other components.
78
- - If there is no prop for the text, DON'T use `p`, `h1`, `h2`, `h3`, and others. Instead, use the `<Text>` component, which exposes the `as` prop, for example `<Text as="h1">Title</Text>`.
62
+ Before writing code, read the Constraints and Missing components sections at the top of the [Components Documentation](llms-components.md) (the `get_components_reference` MCP tool). They are the rules for generating Sous Chef code and the list of components the library doesn't have.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "build-colors": "./scripts/tokens/build-colors.sh",
23
23
  "build-zindexes": "./scripts/tokens/build-z-indexes.sh",
24
24
  "build:analytics": "node ./scripts/build-analytics.js",
25
- "build-llms": "run-s build-llms-components build-llms-icons-and-illustrations build-llms-tokens build-llms-guidelines",
25
+ "build-llms": "run-s build-llms-components build-llms-guidelines build-llms-icons-and-illustrations build-llms-tokens",
26
26
  "build-llms-components": "node ./scripts/build-llms-components.js",
27
27
  "build-llms-icons-and-illustrations": "node ./scripts/build-llms-icons-and-illustrations.js",
28
28
  "build-llms-tokens": "node ./scripts/build-llms-tokens.js",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- testId?: string;
4
- size?: number | string;
5
- } & React.SVGProps<SVGSVGElement>;
6
- declare const InkSulptureBust: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
7
- export default InkSulptureBust;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- testId?: string;
4
- size?: number | string;
5
- } & React.SVGProps<SVGSVGElement>;
6
- declare const InkDrawing: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
7
- export default InkDrawing;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- testId?: string;
4
- size?: number | string;
5
- } & React.SVGProps<SVGSVGElement>;
6
- declare const InkDrawing1: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
7
- export default InkDrawing1;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- testId?: string;
4
- size?: number | string;
5
- } & React.SVGProps<SVGSVGElement>;
6
- declare const InkGroup7975: React.ForwardRefExoticComponent<Omit<Props, 'ref'>>;
7
- export default InkGroup7975;