pixelize-design-library 2.4.2-beta.1 → 2.4.2-beta.11

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 (201) hide show
  1. package/dist/Components/Accordion/Accordion.js +2 -2
  2. package/dist/Components/Button/Button.styles.js +4 -3
  3. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +6 -6
  4. package/dist/Components/Checkbox/Checkbox.js +1 -1
  5. package/dist/Components/Checkbox/Checkbox.styles.js +2 -0
  6. package/dist/Components/Common/fieldStyles.js +1 -1
  7. package/dist/Components/CopyButton/CopyButton.js +1 -1
  8. package/dist/Components/CustomModulesTable/EditModuleModal.js +1 -1
  9. package/dist/Components/DatePicker/CalendarPanel.js +1 -1
  10. package/dist/Components/DatePicker/RangeDatePicker.js +2 -2
  11. package/dist/Components/DatePicker/SingleDatePicker.js +2 -2
  12. package/dist/Components/DatePicker/TimeOnlyPicker.js +1 -1
  13. package/dist/Components/Dropdown/DropDown.js +3 -13
  14. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +1 -1
  15. package/dist/Components/FilePreview/FilePreview.js +1 -1
  16. package/dist/Components/FilterSidebar/FilterSidebar.js +4 -4
  17. package/dist/Components/Form/FormWrapper.js +1 -1
  18. package/dist/Components/Header/HeaderActions.d.ts +3 -1
  19. package/dist/Components/Header/HeaderActions.js +7 -3
  20. package/dist/Components/Input/TextInput.styles.js +6 -4
  21. package/dist/Components/InputTextArea/InputTextArea.style.js +5 -4
  22. package/dist/Components/KanbanBoard/KanbanBoard.js +5 -45
  23. package/dist/Components/LimitReachedModal/LimitReachedModal.js +4 -5
  24. package/dist/Components/MultiSelect/MultiSelect.js +1 -1
  25. package/dist/Components/NavigationBar/NavigationBar.js +3 -3
  26. package/dist/Components/NoteTextArea/NoteTextArea.js +5 -3
  27. package/dist/Components/NumberInput/NumberInput.styles.js +5 -4
  28. package/dist/Components/OrgSwitcher/OrgSwitcher.js +2 -2
  29. package/dist/Components/PinInput/PinInput.js +1 -1
  30. package/dist/Components/PlanPill/PlanPill.js +5 -5
  31. package/dist/Components/PlanPill/planPillGradient.d.ts +2 -14
  32. package/dist/Components/PlanPill/planPillGradient.js +3 -15
  33. package/dist/Components/ProductCard/ProductPrice.js +1 -1
  34. package/dist/Components/ProfileCard/ProfileCard.js +1 -1
  35. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +1 -1
  36. package/dist/Components/RadioButton/RadioButton.js +1 -1
  37. package/dist/Components/Reorder/Reorder.js +1 -1
  38. package/dist/Components/ScrollbarBox/ScrollbarBox.d.ts +13 -0
  39. package/dist/Components/ScrollbarBox/ScrollbarBox.js +11 -0
  40. package/dist/Components/SearchSelect/SearchSelect.js +5 -4
  41. package/dist/Components/Select/Select.styles.js +3 -2
  42. package/dist/Components/SelectSearch/SelectSearch.js +3 -3
  43. package/dist/Components/SelectV2/SelectV2.js +5 -11
  44. package/dist/Components/SideBar/SecondaryBar.js +1 -1
  45. package/dist/Components/StageProgress/StageProgress.js +2 -9
  46. package/dist/Components/Table/Table.d.ts +1 -1
  47. package/dist/Components/Table/Table.js +17 -24
  48. package/dist/Components/Table/TableProps.d.ts +4 -0
  49. package/dist/Components/Table/components/TableActions.js +2 -2
  50. package/dist/Components/Table/components/TableBody.js +41 -12
  51. package/dist/Components/Table/components/TableGroupRow.js +1 -1
  52. package/dist/Components/Table/components/TableHeader.js +21 -8
  53. package/dist/Components/Table/components/TableSearch.js +1 -1
  54. package/dist/Components/Table/filters/ActiveFilters.js +2 -18
  55. package/dist/Components/Table/settings/ManageColumns.js +3 -17
  56. package/dist/Components/Table/settings/TableSettings.js +5 -11
  57. package/dist/Components/Table/variants/TableVariantContext.d.ts +4 -0
  58. package/dist/Components/Table/variants/TableVariantContext.js +17 -0
  59. package/dist/Components/Table/variants/classic.d.ts +6 -0
  60. package/dist/Components/Table/variants/classic.js +47 -0
  61. package/dist/Components/Table/variants/index.d.ts +7 -0
  62. package/dist/Components/Table/variants/index.js +27 -0
  63. package/dist/Components/Table/variants/pillInk.d.ts +6 -0
  64. package/dist/Components/Table/variants/pillInk.js +21 -0
  65. package/dist/Components/Table/variants/studio.d.ts +6 -0
  66. package/dist/Components/Table/variants/studio.js +50 -0
  67. package/dist/Components/Table/variants/tokens.d.ts +49 -0
  68. package/dist/Components/Table/variants/tokens.js +2 -0
  69. package/dist/Components/Timeline/Timeline.js +2 -2
  70. package/dist/Components/Toaster/Toaster.js +1 -1
  71. package/dist/Components/Trail/TrailWorks.js +1 -1
  72. package/dist/Components/UpgradeButton/UpgradeButton.js +3 -3
  73. package/dist/Constants/Sidebar.js +3 -2
  74. package/dist/Theme/chakra/Menu.styles.d.ts +9 -6
  75. package/dist/Theme/chakra/Menu.styles.js +11 -5
  76. package/dist/Theme/chakra/Popover.styles.d.ts +6 -3
  77. package/dist/Theme/chakra/Popover.styles.js +11 -6
  78. package/dist/Theme/chakra/Switch.styles.d.ts +1 -1
  79. package/dist/Theme/chakra/Switch.styles.js +7 -9
  80. package/dist/Theme/chakra/componentStyles.d.ts +15 -9
  81. package/dist/Theme/chakra/createBrandTheme.js +3 -16
  82. package/dist/Theme/provider/PixelizeThemeProvider.js +18 -20
  83. package/dist/Theme/provider/ThemeSwitcher.js +13 -20
  84. package/dist/Theme/tokens/brands/emerald/palette.light.js +5 -7
  85. package/dist/Theme/tokens/brands/lavender/palette.light.js +5 -116
  86. package/dist/Theme/tokens/brands/meadow/palette.light.js +5 -7
  87. package/dist/Theme/tokens/brands/neutrals.d.ts +8 -0
  88. package/dist/Theme/tokens/brands/neutrals.js +119 -0
  89. package/dist/Theme/tokens/brands/radiant/palette.light.js +5 -7
  90. package/dist/Theme/tokens/brands/rosewood/palette.light.js +5 -7
  91. package/dist/Theme/tokens/brands/skyline/palette.light.js +5 -7
  92. package/dist/Theme/tokens/brands/slate/palette.light.js +6 -12
  93. package/dist/Theme/tokens/brands/storefront/palette.light.js +5 -7
  94. package/dist/Theme/tokens/builders/brandInk.d.ts +11 -0
  95. package/dist/Theme/tokens/builders/brandInk.js +106 -0
  96. package/dist/Theme/tokens/builders/chartColorsFromTheme.js +1 -1
  97. package/dist/Theme/tokens/builders/gradientInk.d.ts +22 -0
  98. package/dist/Theme/tokens/builders/gradientInk.js +28 -0
  99. package/dist/Theme/tokens/builders/index.d.ts +3 -0
  100. package/dist/Theme/tokens/builders/index.js +3 -0
  101. package/dist/Theme/tokens/builders/outlineRung.d.ts +32 -3
  102. package/dist/Theme/tokens/builders/outlineRung.js +74 -5
  103. package/dist/Theme/tokens/builders/placeholderInk.d.ts +19 -0
  104. package/dist/Theme/tokens/builders/placeholderInk.js +35 -0
  105. package/dist/Theme/tokens/builders/resolvedRungs.d.ts +5 -1
  106. package/dist/Theme/tokens/builders/resolvedRungs.js +7 -2
  107. package/dist/Theme/tokens/builders/scrollbar.d.ts +12 -0
  108. package/dist/Theme/tokens/builders/scrollbar.js +57 -0
  109. package/dist/Theme/tokens/builders/surfaceRungs.d.ts +5 -0
  110. package/dist/Theme/tokens/builders/surfaceRungs.js +20 -5
  111. package/dist/Theme/tokens/types.d.ts +5 -0
  112. package/dist/esm/Components/Accordion/Accordion.js +2 -2
  113. package/dist/esm/Components/Button/Button.styles.js +5 -4
  114. package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.js +6 -6
  115. package/dist/esm/Components/Checkbox/Checkbox.js +1 -1
  116. package/dist/esm/Components/Checkbox/Checkbox.styles.js +2 -0
  117. package/dist/esm/Components/Common/fieldStyles.js +1 -1
  118. package/dist/esm/Components/CopyButton/CopyButton.js +1 -1
  119. package/dist/esm/Components/CustomModulesTable/EditModuleModal.js +1 -1
  120. package/dist/esm/Components/DatePicker/CalendarPanel.js +1 -1
  121. package/dist/esm/Components/DatePicker/RangeDatePicker.js +2 -2
  122. package/dist/esm/Components/DatePicker/SingleDatePicker.js +2 -2
  123. package/dist/esm/Components/DatePicker/TimeOnlyPicker.js +1 -1
  124. package/dist/esm/Components/Dropdown/DropDown.js +3 -13
  125. package/dist/esm/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +1 -1
  126. package/dist/esm/Components/FilePreview/FilePreview.js +1 -1
  127. package/dist/esm/Components/FilterSidebar/FilterSidebar.js +4 -4
  128. package/dist/esm/Components/Form/FormWrapper.js +1 -1
  129. package/dist/esm/Components/Header/HeaderActions.js +8 -4
  130. package/dist/esm/Components/Input/TextInput.styles.js +6 -4
  131. package/dist/esm/Components/InputTextArea/InputTextArea.style.js +5 -4
  132. package/dist/esm/Components/KanbanBoard/KanbanBoard.js +5 -45
  133. package/dist/esm/Components/LimitReachedModal/LimitReachedModal.js +4 -5
  134. package/dist/esm/Components/MultiSelect/MultiSelect.js +1 -1
  135. package/dist/esm/Components/NavigationBar/NavigationBar.js +3 -3
  136. package/dist/esm/Components/NoteTextArea/NoteTextArea.js +5 -3
  137. package/dist/esm/Components/NumberInput/NumberInput.styles.js +5 -4
  138. package/dist/esm/Components/OrgSwitcher/OrgSwitcher.js +2 -2
  139. package/dist/esm/Components/PinInput/PinInput.js +1 -1
  140. package/dist/esm/Components/PlanPill/PlanPill.js +6 -6
  141. package/dist/esm/Components/PlanPill/planPillGradient.js +3 -15
  142. package/dist/esm/Components/ProductCard/ProductPrice.js +1 -1
  143. package/dist/esm/Components/ProfileCard/ProfileCard.js +1 -1
  144. package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +1 -1
  145. package/dist/esm/Components/RadioButton/RadioButton.js +1 -1
  146. package/dist/esm/Components/Reorder/Reorder.js +1 -1
  147. package/dist/esm/Components/ScrollbarBox/ScrollbarBox.js +9 -0
  148. package/dist/esm/Components/SearchSelect/SearchSelect.js +5 -4
  149. package/dist/esm/Components/Select/Select.styles.js +3 -2
  150. package/dist/esm/Components/SelectSearch/SelectSearch.js +3 -3
  151. package/dist/esm/Components/SelectV2/SelectV2.js +5 -11
  152. package/dist/esm/Components/SideBar/SecondaryBar.js +1 -1
  153. package/dist/esm/Components/StageProgress/StageProgress.js +2 -9
  154. package/dist/esm/Components/Table/Table.js +17 -24
  155. package/dist/esm/Components/Table/components/TableActions.js +2 -2
  156. package/dist/esm/Components/Table/components/TableBody.js +42 -13
  157. package/dist/esm/Components/Table/components/TableGroupRow.js +1 -1
  158. package/dist/esm/Components/Table/components/TableHeader.js +21 -8
  159. package/dist/esm/Components/Table/components/TableSearch.js +1 -1
  160. package/dist/esm/Components/Table/filters/ActiveFilters.js +2 -18
  161. package/dist/esm/Components/Table/settings/ManageColumns.js +3 -17
  162. package/dist/esm/Components/Table/settings/TableSettings.js +5 -11
  163. package/dist/esm/Components/Table/variants/TableVariantContext.js +13 -0
  164. package/dist/esm/Components/Table/variants/classic.js +43 -0
  165. package/dist/esm/Components/Table/variants/index.js +9 -0
  166. package/dist/esm/Components/Table/variants/pillInk.js +18 -0
  167. package/dist/esm/Components/Table/variants/studio.js +46 -0
  168. package/dist/esm/Components/Table/variants/tokens.js +1 -0
  169. package/dist/esm/Components/Timeline/Timeline.js +2 -2
  170. package/dist/esm/Components/Toaster/Toaster.js +1 -1
  171. package/dist/esm/Components/Trail/TrailWorks.js +1 -1
  172. package/dist/esm/Components/UpgradeButton/UpgradeButton.js +3 -3
  173. package/dist/esm/Constants/Sidebar.js +3 -2
  174. package/dist/esm/Theme/chakra/Menu.styles.js +11 -5
  175. package/dist/esm/Theme/chakra/Popover.styles.js +11 -6
  176. package/dist/esm/Theme/chakra/Switch.styles.js +7 -9
  177. package/dist/esm/Theme/chakra/createBrandTheme.js +3 -16
  178. package/dist/esm/Theme/provider/PixelizeThemeProvider.js +18 -20
  179. package/dist/esm/Theme/provider/ThemeSwitcher.js +13 -20
  180. package/dist/esm/Theme/tokens/brands/emerald/palette.light.js +5 -4
  181. package/dist/esm/Theme/tokens/brands/lavender/palette.light.js +5 -116
  182. package/dist/esm/Theme/tokens/brands/meadow/palette.light.js +5 -4
  183. package/dist/esm/Theme/tokens/brands/neutrals.js +116 -0
  184. package/dist/esm/Theme/tokens/brands/radiant/palette.light.js +5 -4
  185. package/dist/esm/Theme/tokens/brands/rosewood/palette.light.js +5 -4
  186. package/dist/esm/Theme/tokens/brands/skyline/palette.light.js +5 -4
  187. package/dist/esm/Theme/tokens/brands/slate/palette.light.js +6 -9
  188. package/dist/esm/Theme/tokens/brands/storefront/palette.light.js +5 -4
  189. package/dist/esm/Theme/tokens/builders/brandInk.js +103 -0
  190. package/dist/esm/Theme/tokens/builders/chartColorsFromTheme.js +1 -1
  191. package/dist/esm/Theme/tokens/builders/gradientInk.js +22 -0
  192. package/dist/esm/Theme/tokens/builders/index.js +3 -0
  193. package/dist/esm/Theme/tokens/builders/outlineRung.js +70 -4
  194. package/dist/esm/Theme/tokens/builders/placeholderInk.js +29 -0
  195. package/dist/esm/Theme/tokens/builders/resolvedRungs.js +7 -2
  196. package/dist/esm/Theme/tokens/builders/scrollbar.js +52 -0
  197. package/dist/esm/Theme/tokens/builders/surfaceRungs.js +20 -5
  198. package/dist/esm/index.js +5 -1
  199. package/dist/index.d.ts +10 -2
  200. package/dist/index.js +17 -3
  201. package/package.json +4 -2
@@ -1,4 +1,5 @@
1
1
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
2
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
3
  const PRIMARY_500 = "#8B3FC8";
3
4
  const SECONDARY_ANCHOR = "#1e0f30";
4
5
  const primary = {
@@ -28,56 +29,6 @@ const secondary = {
28
29
  opacity: buildPrimaryOpacity(SECONDARY_ANCHOR),
29
30
  };
30
31
  const tertiary = { ...secondary };
31
- const semantic = {
32
- success: {
33
- 50: "#e9f8ef",
34
- 100: "#bbe9cc",
35
- 200: "#9adeb4",
36
- 300: "#6ccf92",
37
- 400: "#4fc67d",
38
- 500: "#23b85c",
39
- 600: "#20a754",
40
- 700: "#198341",
41
- 800: "#136533",
42
- 900: "#0f4d27",
43
- },
44
- error: {
45
- 50: "#feedeb",
46
- 100: "#fbc6c2",
47
- 200: "#f9aaa4",
48
- 300: "#f6837b",
49
- 400: "#f56b61",
50
- 500: "#f2463a",
51
- 600: "#dc4035",
52
- 700: "#ac3229",
53
- 800: "#852720",
54
- 900: "#661d18",
55
- },
56
- warning: {
57
- 50: "#fff4ef",
58
- 100: "#ffddce",
59
- 200: "#ffccb7",
60
- 300: "#ffb596",
61
- 400: "#ffa781",
62
- 500: "#ff9162",
63
- 600: "#e88459",
64
- 700: "#b56746",
65
- 800: "#8c5036",
66
- 900: "#6b3d29",
67
- },
68
- info: {
69
- 50: "#eff9fc",
70
- 100: "#cdedf5",
71
- 200: "#b5e4f0",
72
- 300: "#94d7e9",
73
- 400: "#7fd0e5",
74
- 500: "#5fc4de",
75
- 600: "#56b2ea",
76
- 700: "#438b9e",
77
- 800: "#346c78",
78
- 900: "#28525d",
79
- },
80
- };
81
32
  const gray = {
82
33
  50: "#f9f7fb",
83
34
  100: "#f0eaf6",
@@ -98,51 +49,6 @@ const gray = {
98
49
  };
99
50
  // These global color scales stay unchanged — they are
100
51
  // utility palettes, not theme-specific
101
- const red = {
102
- 50: "#feedeb", 100: "#fbc6c2", 200: "#f9aaa4", 300: "#f6837b",
103
- 400: "#f56b61", 500: "#f2463a", 600: "#dc4035", 700: "#ac3229",
104
- 800: "#852720", 900: "#661d18",
105
- };
106
- const orange = {
107
- 50: "#fff4ef", 100: "#ffddce", 200: "#ffccb7", 300: "#ffb596",
108
- 400: "#ffa781", 500: "#ff9162", 600: "#e88459", 700: "#b56746",
109
- 800: "#8c5036", 900: "#6b3d29",
110
- };
111
- const yellow = {
112
- 50: "#fefbec", 100: "#fdf1c5", 200: "#fbeba9", 300: "#fae281",
113
- 400: "#f9dc69", 500: "#f7d343", 600: "#e1c03d", 700: "#af9630",
114
- 800: "#887425", 900: "#68591c",
115
- };
116
- const green = {
117
- 50: "#e9f8ef", 100: "#bbe9cc", 200: "#9adeb4", 300: "#6ccf92",
118
- 400: "#4fc67d", 500: "#23b85c", 600: "#20a754", 700: "#198341",
119
- 800: "#136533", 900: "#0f4d27",
120
- };
121
- const teal = {
122
- 50: "#eff9fc", 100: "#cdedf5", 200: "#b5e4f0", 300: "#94d7e9",
123
- 400: "#7fd0e5", 500: "#5fc4de", 600: "#56b2ea", 700: "#438b9e",
124
- 800: "#346c78", 900: "#28525d",
125
- };
126
- const blue = {
127
- 50: "#ebf8ff", 100: "#bee3f8", 200: "#90cdf4", 300: "#63b3ed",
128
- 400: "#4299e1", 500: "#3182ce", 600: "#2b6cb0", 700: "#2c5282",
129
- 800: "#2a4365", 900: "#1a365d",
130
- };
131
- const cyan = {
132
- 50: "#edfdfd", 100: "#c4f1f9", 200: "#9decf9", 300: "#76e4f7",
133
- 400: "#0bc5ea", 500: "#00b5d8", 600: "#00a3c4", 700: "#0987a0",
134
- 800: "#086f83", 900: "#065666",
135
- };
136
- const purple = {
137
- 50: "#faf5ff", 100: "#e9d8fd", 200: "#d6bcfa", 300: "#b794f4",
138
- 400: "#9f7aea", 500: "#805ad5", 600: "#6b46c1", 700: "#553c9a",
139
- 800: "#44337a", 900: "#322659",
140
- };
141
- const pink = {
142
- 50: "#fff5f7", 100: "#fed7e2", 200: "#fbb6ce", 300: "#f687b3",
143
- 400: "#ed64a6", 500: "#d53f8c", 600: "#b83280", 700: "#97266d",
144
- 800: "#702459", 900: "#521b41",
145
- };
146
52
  const backgroundColor = {
147
53
  main: "#f9f7fc",
148
54
  secondary: "#f2edf8",
@@ -208,8 +114,7 @@ const placeholder = {
208
114
  };
209
115
  const boxShadow = {
210
116
  primary: buildPrimaryShadowTint(PRIMARY_500),
211
- error: "#F2463A47",
212
- default: "#00000033",
117
+ ...sharedBoxShadow,
213
118
  };
214
119
  const sidebar = {
215
120
  background: {
@@ -281,31 +186,15 @@ const disabled = {
281
186
  800: "#625d75",
282
187
  900: "#4b4759",
283
188
  };
284
- // Two-tone brand gradient (violet → pink). Each theme overrides with its own pair.
285
- // `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
286
- // original let white drop to 3.53 there (`from` already passed at 5.76, unchanged).
287
- // Nudged one step further (4.511 -> 4.609): the first pass cleared AA by <0.02, too thin a
288
- // margin to trust against rounding/rendering variance.
289
- const gradient = { from: "#8B3FC8", to: "#df187a" };
189
+ // Single-hue gradient: white clears AA by margin, not by hundredths. See gradientTone.test.ts.
190
+ const gradient = { from: "#8b3fc8", to: "#762d9d" };
290
191
  const palette = {
291
192
  gradient,
292
193
  primary,
293
194
  secondary,
294
195
  tertiary,
295
- transparent: "transparent",
296
- black: "#000",
297
- white: "#fff",
298
- semantic,
196
+ ...neutralTokens,
299
197
  gray,
300
- red,
301
- orange,
302
- yellow,
303
- green,
304
- teal,
305
- blue,
306
- cyan,
307
- purple,
308
- pink,
309
198
  backgroundColor,
310
199
  background,
311
200
  text,
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#2d6a4f"; // was #2caa3d — deeper, forest-toned
4
5
  const primary = {
5
6
  50: "#edf7f2",
@@ -15,7 +16,8 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
19
21
  // `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
20
22
  // original let white drop to 2.49 there (`from` already passed at 6.39, unchanged).
21
23
  // Nudged one step further (4.519 -> 4.627): the first pass cleared AA by <0.02, too thin a
@@ -121,8 +123,7 @@ const palette = {
121
123
  },
122
124
  boxShadow: {
123
125
  primary: buildPrimaryShadowTint(PRIMARY_500),
124
- error: lavenderPalette.boxShadow.error,
125
- default: lavenderPalette.boxShadow.default,
126
+ ...sharedBoxShadow,
126
127
  },
127
128
  };
128
129
  export default palette;
@@ -0,0 +1,116 @@
1
+ const semantic = {
2
+ success: {
3
+ 50: "#e9f8ef",
4
+ 100: "#bbe9cc",
5
+ 200: "#9adeb4",
6
+ 300: "#6ccf92",
7
+ 400: "#4fc67d",
8
+ 500: "#23b85c",
9
+ 600: "#20a754",
10
+ 700: "#198341",
11
+ 800: "#136533",
12
+ 900: "#0f4d27",
13
+ },
14
+ error: {
15
+ 50: "#feedeb",
16
+ 100: "#fbc6c2",
17
+ 200: "#f9aaa4",
18
+ 300: "#f6837b",
19
+ 400: "#f56b61",
20
+ 500: "#f2463a",
21
+ 600: "#dc4035",
22
+ 700: "#ac3229",
23
+ 800: "#852720",
24
+ 900: "#661d18",
25
+ },
26
+ warning: {
27
+ 50: "#fff4ef",
28
+ 100: "#ffddce",
29
+ 200: "#ffccb7",
30
+ 300: "#ffb596",
31
+ 400: "#ffa781",
32
+ 500: "#ff9162",
33
+ 600: "#e88459",
34
+ 700: "#b56746",
35
+ 800: "#8c5036",
36
+ 900: "#6b3d29",
37
+ },
38
+ info: {
39
+ 50: "#eff9fc",
40
+ 100: "#cdedf5",
41
+ 200: "#b5e4f0",
42
+ 300: "#94d7e9",
43
+ 400: "#7fd0e5",
44
+ 500: "#5fc4de",
45
+ 600: "#56b2ea",
46
+ 700: "#438b9e",
47
+ 800: "#346c78",
48
+ 900: "#28525d",
49
+ },
50
+ };
51
+ const red = {
52
+ 50: "#feedeb", 100: "#fbc6c2", 200: "#f9aaa4", 300: "#f6837b",
53
+ 400: "#f56b61", 500: "#f2463a", 600: "#dc4035", 700: "#ac3229",
54
+ 800: "#852720", 900: "#661d18",
55
+ };
56
+ const orange = {
57
+ 50: "#fff4ef", 100: "#ffddce", 200: "#ffccb7", 300: "#ffb596",
58
+ 400: "#ffa781", 500: "#ff9162", 600: "#e88459", 700: "#b56746",
59
+ 800: "#8c5036", 900: "#6b3d29",
60
+ };
61
+ const yellow = {
62
+ 50: "#fefbec", 100: "#fdf1c5", 200: "#fbeba9", 300: "#fae281",
63
+ 400: "#f9dc69", 500: "#f7d343", 600: "#e1c03d", 700: "#af9630",
64
+ 800: "#887425", 900: "#68591c",
65
+ };
66
+ const green = {
67
+ 50: "#e9f8ef", 100: "#bbe9cc", 200: "#9adeb4", 300: "#6ccf92",
68
+ 400: "#4fc67d", 500: "#23b85c", 600: "#20a754", 700: "#198341",
69
+ 800: "#136533", 900: "#0f4d27",
70
+ };
71
+ const teal = {
72
+ 50: "#eff9fc", 100: "#cdedf5", 200: "#b5e4f0", 300: "#94d7e9",
73
+ 400: "#7fd0e5", 500: "#5fc4de", 600: "#56b2ea", 700: "#438b9e",
74
+ 800: "#346c78", 900: "#28525d",
75
+ };
76
+ const blue = {
77
+ 50: "#ebf8ff", 100: "#bee3f8", 200: "#90cdf4", 300: "#63b3ed",
78
+ 400: "#4299e1", 500: "#3182ce", 600: "#2b6cb0", 700: "#2c5282",
79
+ 800: "#2a4365", 900: "#1a365d",
80
+ };
81
+ const cyan = {
82
+ 50: "#edfdfd", 100: "#c4f1f9", 200: "#9decf9", 300: "#76e4f7",
83
+ 400: "#0bc5ea", 500: "#00b5d8", 600: "#00a3c4", 700: "#0987a0",
84
+ 800: "#086f83", 900: "#065666",
85
+ };
86
+ const purple = {
87
+ 50: "#faf5ff", 100: "#e9d8fd", 200: "#d6bcfa", 300: "#b794f4",
88
+ 400: "#9f7aea", 500: "#805ad5", 600: "#6b46c1", 700: "#553c9a",
89
+ 800: "#44337a", 900: "#322659",
90
+ };
91
+ const pink = {
92
+ 50: "#fff5f7", 100: "#fed7e2", 200: "#fbb6ce", 300: "#f687b3",
93
+ 400: "#ed64a6", 500: "#d53f8c", 600: "#b83280", 700: "#97266d",
94
+ 800: "#702459", 900: "#521b41",
95
+ };
96
+ /** Non-brand shadow tints. Only `primary` is brand-derived. */
97
+ export const sharedBoxShadow = {
98
+ error: "#F2463A47",
99
+ default: "#00000033",
100
+ };
101
+ /** Utility scales shared by every brand — never theme-specific. */
102
+ export const neutralTokens = {
103
+ transparent: "transparent",
104
+ black: "#000",
105
+ white: "#fff",
106
+ semantic,
107
+ red,
108
+ orange,
109
+ yellow,
110
+ green,
111
+ teal,
112
+ blue,
113
+ cyan,
114
+ purple,
115
+ pink,
116
+ };
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#cf4e3a"; // warm red (terracotta leaning)
4
5
  const primary = {
5
6
  50: "#fdf1ee",
@@ -15,7 +16,8 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
19
21
  // Stops retuned so white gradient-button text (onGradient, accentText.ts) clears AA at both
20
22
  // ends — the original pair let white drop to 4.37/2.15 against from/to. Same hue, darker.
21
23
  // Both nudged one step further (4.509/4.502 -> 4.601/4.617): the first pass cleared AA by
@@ -123,8 +125,7 @@ const palette = {
123
125
  },
124
126
  boxShadow: {
125
127
  primary: buildPrimaryShadowTint(PRIMARY_500),
126
- error: lavenderPalette.boxShadow.error,
127
- default: lavenderPalette.boxShadow.default,
128
+ ...sharedBoxShadow,
128
129
  },
129
130
  };
130
131
  export default palette;
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#d16a7e"; // muted warm rose (not neon pink)
4
5
  const primary = {
5
6
  50: "#fdf2f5",
@@ -15,7 +16,8 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
19
21
  // Stops retuned so white gradient-button text (onGradient, accentText.ts) clears AA at both
20
22
  // ends — the original pair let white drop to 3.46/2.69 against from/to. Same hue, darker.
21
23
  // Both nudged one step further (4.520/4.505 -> 4.609/4.607): the first pass cleared AA by
@@ -127,8 +129,7 @@ const palette = {
127
129
  },
128
130
  boxShadow: {
129
131
  primary: buildPrimaryShadowTint(PRIMARY_500),
130
- error: lavenderPalette.boxShadow.error,
131
- default: lavenderPalette.boxShadow.default,
132
+ ...sharedBoxShadow,
132
133
  },
133
134
  };
134
135
  export default palette;
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#1a3a6b"; // was #0088cc — deep navy
4
5
  const primary = {
5
6
  50: "#e8ecf4",
@@ -15,7 +16,8 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
19
21
  // `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
20
22
  // original let white drop to 2.14 there (`from` already passed at 11.28, unchanged).
21
23
  // Nudged one step further (4.515 -> 4.600): the first pass cleared AA by <0.02, too thin a
@@ -121,8 +123,7 @@ const palette = {
121
123
  },
122
124
  boxShadow: {
123
125
  primary: buildPrimaryShadowTint(PRIMARY_500),
124
- error: lavenderPalette.boxShadow.error,
125
- default: lavenderPalette.boxShadow.default,
126
+ ...sharedBoxShadow,
126
127
  },
127
128
  };
128
129
  export default palette;
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#6b7280"; // was #475569 — pure neutral gray, no blue cast
4
5
  const primary = {
5
6
  50: "#f9fafb",
@@ -15,12 +16,9 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
- // `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
20
- // original let white drop to 2.98 there (`from` already passed at 4.83, unchanged).
21
- // Nudged one step further (4.520 -> 4.608): the first pass cleared AA by <0.02, too thin a
22
- // margin to trust against rounding/rendering variance.
23
- gradient: { from: "#6b7280", to: "#5664f6" }, // slate gray → indigo
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
21
+ gradient: { from: "#666d7a", to: "#4a4e59" },
24
22
  primary,
25
23
  tertiary: { ...primary },
26
24
  gray: {
@@ -125,8 +123,7 @@ const palette = {
125
123
  },
126
124
  boxShadow: {
127
125
  primary: buildPrimaryShadowTint(PRIMARY_500),
128
- error: lavenderPalette.boxShadow.error,
129
- default: lavenderPalette.boxShadow.default,
126
+ ...sharedBoxShadow,
130
127
  },
131
128
  };
132
129
  export default palette;
@@ -1,5 +1,6 @@
1
- import lavenderPalette from "../lavender/palette.light.js";
1
+ import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
2
2
  import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
3
+ import { buildBrandInk } from "../../builders/brandInk.js";
3
4
  const PRIMARY_500 = "#004f4b"; // deep spruce teal — storefront/retail brand anchor
4
5
  const primary = {
5
6
  50: "#eafaf9",
@@ -15,7 +16,8 @@ const primary = {
15
16
  opacity: buildPrimaryOpacity(PRIMARY_500),
16
17
  };
17
18
  const palette = {
18
- ...lavenderPalette,
19
+ ...neutralTokens,
20
+ ...buildBrandInk(PRIMARY_500),
19
21
  // Same hue as primary, darker stop for the "to" end — mirrors emerald's gradient pattern.
20
22
  // White gradient-button text verified AA at both stops (4.98 / 6.96).
21
23
  gradient: { from: "#0c7d77", to: "#095e90" }, // spruce teal → deep blue
@@ -115,8 +117,7 @@ const palette = {
115
117
  },
116
118
  boxShadow: {
117
119
  primary: buildPrimaryShadowTint(PRIMARY_500),
118
- error: lavenderPalette.boxShadow.error,
119
- default: lavenderPalette.boxShadow.default,
120
+ ...sharedBoxShadow,
120
121
  },
121
122
  };
122
123
  export default palette;
@@ -0,0 +1,103 @@
1
+ import { buildPrimaryOpacity } from "./buildBrandTokens.js";
2
+ import { hexToHsl, relativeLuminance, withLightness } from "./color.js";
3
+ const RUNGS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
4
+ // Lavender's primary saturation. Each brand's ramps scale away from it.
5
+ const REFERENCE_SATURATION = 55.5;
6
+ const SECONDARY = {
7
+ 50: [39.4, 0.8231],
8
+ 100: [41.0, 0.61132],
9
+ 200: [37.7, 0.39479],
10
+ 300: [27.4, 0.18614],
11
+ 400: [28.4, 0.10269],
12
+ 500: [52.4, 0.00831],
13
+ 600: [55.1, 0.00573],
14
+ 700: [55.6, 0.00386],
15
+ 800: [60.0, 0.00245],
16
+ 900: [57.1, 0.00141],
17
+ };
18
+ const TEXT = {
19
+ 50: [25.9, 0.86267],
20
+ 100: [32.4, 0.63853],
21
+ 200: [32.7, 0.48344],
22
+ 300: [30.6, 0.30607],
23
+ 400: [29.2, 0.21515],
24
+ 500: [26.3, 0.10787],
25
+ 600: [26.6, 0.08786],
26
+ 700: [26.7, 0.05281],
27
+ 800: [27.4, 0.03145],
28
+ 900: [29.0, 0.01826],
29
+ };
30
+ const HEADER = {
31
+ 50: [31.3, 0.83382],
32
+ 100: [31.0, 0.59779],
33
+ 200: [30.6, 0.44729],
34
+ 300: [29.3, 0.27622],
35
+ 400: [30.0, 0.19238],
36
+ 500: [29.9, 0.10467],
37
+ 600: [29.9, 0.08682],
38
+ 700: [29.7, 0.05281],
39
+ 800: [29.1, 0.0319],
40
+ 900: [29.9, 0.01915],
41
+ };
42
+ const PLACEHOLDER = {
43
+ 50: [30.4, 0.87913],
44
+ 100: [35.4, 0.67128],
45
+ 200: [36.1, 0.53513],
46
+ 300: [34.7, 0.37333],
47
+ 400: [31.4, 0.30462],
48
+ 500: [28.2, 0.19307],
49
+ 600: [22.8, 0.15818],
50
+ 700: [22.0, 0.09196],
51
+ 800: [21.5, 0.05448],
52
+ 900: [22.3, 0.03206],
53
+ };
54
+ const DISABLED = {
55
+ 50: [33.3, 0.90353],
56
+ 100: [38.9, 0.80618],
57
+ 200: [40.7, 0.71546],
58
+ 300: [41.0, 0.60545],
59
+ 400: [39.6, 0.53328],
60
+ 500: [40.5, 0.43688],
61
+ 600: [28.2, 0.35566],
62
+ 700: [13.4, 0.20289],
63
+ 800: [11.4, 0.1171],
64
+ 900: [11.2, 0.06724],
65
+ };
66
+ // Lightness is monotonic in luminance for a fixed hue/saturation, so bisection converges.
67
+ const atLuminance = (anchor, saturation, target) => {
68
+ let low = 0;
69
+ let high = 100;
70
+ for (let i = 0; i < 30; i += 1) {
71
+ const mid = (low + high) / 2;
72
+ if (relativeLuminance(withLightness(anchor, mid, saturation)) < target)
73
+ low = mid;
74
+ else
75
+ high = mid;
76
+ }
77
+ return withLightness(anchor, (low + high) / 2, saturation);
78
+ };
79
+ const ramp = (anchor, profile) => {
80
+ const ratio = hexToHsl(anchor).s / REFERENCE_SATURATION;
81
+ const scale = {};
82
+ for (const rung of RUNGS) {
83
+ const [saturation, luminance] = profile[rung];
84
+ scale[rung] = atLuminance(anchor, Math.min(100, saturation * ratio), luminance);
85
+ }
86
+ return scale;
87
+ };
88
+ const brandRamp = (anchor, profile) => {
89
+ const scale = ramp(anchor, profile);
90
+ return { ...scale, opacity: buildPrimaryOpacity(scale[500]) };
91
+ };
92
+ /** Brand-hued ink ramps at lavender's verified luminances, so contrast carries over. */
93
+ export function buildBrandInk(primary500) {
94
+ const secondary = brandRamp(primary500, SECONDARY);
95
+ return {
96
+ secondary,
97
+ tertiary: { ...secondary },
98
+ text: ramp(primary500, TEXT),
99
+ header: ramp(primary500, HEADER),
100
+ placeholder: ramp(primary500, PLACEHOLDER),
101
+ disabled: ramp(primary500, DISABLED),
102
+ };
103
+ }
@@ -25,7 +25,7 @@ export function chartInk(colors) {
25
25
  surface,
26
26
  text: colors.text[900],
27
27
  muted: colors.text[500],
28
- grid: colors.border[500],
28
+ grid: colors.boxborder[200],
29
29
  axis: colors.text[500],
30
30
  tooltipBg: colors.backgroundColor.secondary,
31
31
  };
@@ -0,0 +1,22 @@
1
+ import { onGradient } from "./accentText.js";
2
+ import { resolveAvatarFill } from "./statusTone.js";
3
+ /**
4
+ * Sinks both stops until WHITE ink clears AA, keeping each stop's hue. Any mid-tone gradient
5
+ * otherwise flips `onGradient` to black ink, so the same element reads white-on-colour in one
6
+ * brand and black-on-pastel in the next.
7
+ */
8
+ export const inkSafeGradient = (gradient) => ({
9
+ from: resolveAvatarFill(gradient.from),
10
+ to: resolveAvatarFill(gradient.to),
11
+ });
12
+ /**
13
+ * The only correct way to paint text on a gradient: returns the stops to draw AND the ink for
14
+ * them. Calling `onGradient` on raw stops is the black-text bug — it picks ink for a backdrop
15
+ * that is then painted differently.
16
+ */
17
+ export const resolveGradient = (gradient, white, black) => {
18
+ const { from, to } = inkSafeGradient(gradient);
19
+ return { from, to, ink: onGradient(from, to, white, black) };
20
+ };
21
+ /** `linear-gradient(...)` for a resolved pair — one spelling of the CSS everywhere. */
22
+ export const gradientCss = (g, angle = "135deg") => `linear-gradient(${angle}, ${g.from} 0%, ${g.to} 100%)`;
@@ -3,3 +3,6 @@ export * from "./buildBrandTokens.js";
3
3
  export * from "./buildDarkPalette.js";
4
4
  export * from "./chartColorsFromTheme.js";
5
5
  export * from "./color.js";
6
+ export * from "./scrollbar.js";
7
+ export * from "./gradientInk.js";
8
+ export * from "./placeholderInk.js";