datocms-react-ui 2.1.4 → 3.0.1-alpha.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 (135) hide show
  1. package/dist/cjs/Button/styles.module.css.json +1 -1
  2. package/dist/cjs/ButtonGroup/Button/styles.module.css.json +1 -1
  3. package/dist/cjs/ButtonGroup/Group/styles.module.css.json +1 -1
  4. package/dist/cjs/Canvas/index.js +181 -276
  5. package/dist/cjs/Canvas/index.js.map +1 -1
  6. package/dist/cjs/Canvas/styles.module.css.json +1 -1
  7. package/dist/cjs/ContextInspector/styles.module.css.json +1 -1
  8. package/dist/cjs/Dropdown/styles.module.css.json +1 -1
  9. package/dist/cjs/FieldError/styles.module.css.json +1 -1
  10. package/dist/cjs/FieldHint/styles.module.css.json +1 -1
  11. package/dist/cjs/FormLabel/styles.module.css.json +1 -1
  12. package/dist/cjs/HotKey/styles.module.css.json +1 -1
  13. package/dist/cjs/Section/styles.module.css.json +1 -1
  14. package/dist/cjs/SelectInput/index.js +41 -22
  15. package/dist/cjs/SelectInput/index.js.map +1 -1
  16. package/dist/cjs/SidebarPanel/index.js +4 -11
  17. package/dist/cjs/SidebarPanel/index.js.map +1 -1
  18. package/dist/cjs/SidebarPanel/styles.module.css.json +1 -1
  19. package/dist/cjs/Spinner/styles.module.css.json +1 -1
  20. package/dist/cjs/SplitView/SplitViewSash/styles.module.css.json +1 -1
  21. package/dist/cjs/SwitchField/styles.module.css.json +1 -1
  22. package/dist/cjs/SwitchInput/styles.module.css.json +1 -1
  23. package/dist/cjs/TextInput/styles.module.css.json +1 -1
  24. package/dist/cjs/TextareaInput/styles.module.css.json +1 -1
  25. package/dist/cjs/Toolbar/Button/styles.module.css.json +1 -1
  26. package/dist/cjs/Toolbar/Toolbar/index.js +3 -3
  27. package/dist/cjs/Toolbar/Toolbar/styles.module.css.json +1 -1
  28. package/dist/cjs/Tooltip/TooltipContent/styles.module.css.json +1 -1
  29. package/dist/cjs/Tooltip/TooltipDelayGroup/index.js +2 -2
  30. package/dist/cjs/VerticalSplit/index.js +4 -4
  31. package/dist/cjs/VerticalSplit/styles.module.css.json +1 -1
  32. package/dist/cjs/generateStyleFromCtx/index.js +133 -2
  33. package/dist/cjs/generateStyleFromCtx/index.js.map +1 -1
  34. package/dist/cjs/icons.js +8 -8
  35. package/dist/cjs/icons.js.map +1 -1
  36. package/dist/esm/Button/styles.module.css.json +1 -1
  37. package/dist/esm/ButtonGroup/Button/styles.module.css.json +1 -1
  38. package/dist/esm/ButtonGroup/Group/styles.module.css.json +1 -1
  39. package/dist/esm/Canvas/index.d.ts +181 -276
  40. package/dist/esm/Canvas/index.js +181 -276
  41. package/dist/esm/Canvas/index.js.map +1 -1
  42. package/dist/esm/Canvas/styles.module.css.json +1 -1
  43. package/dist/esm/ContextInspector/styles.module.css.json +1 -1
  44. package/dist/esm/Dropdown/styles.module.css.json +1 -1
  45. package/dist/esm/FieldError/styles.module.css.json +1 -1
  46. package/dist/esm/FieldHint/styles.module.css.json +1 -1
  47. package/dist/esm/FormLabel/styles.module.css.json +1 -1
  48. package/dist/esm/HotKey/styles.module.css.json +1 -1
  49. package/dist/esm/Section/styles.module.css.json +1 -1
  50. package/dist/esm/SelectInput/index.js +41 -22
  51. package/dist/esm/SelectInput/index.js.map +1 -1
  52. package/dist/esm/SidebarPanel/index.d.ts +2 -2
  53. package/dist/esm/SidebarPanel/index.js +4 -11
  54. package/dist/esm/SidebarPanel/index.js.map +1 -1
  55. package/dist/esm/SidebarPanel/styles.module.css.json +1 -1
  56. package/dist/esm/Spinner/styles.module.css.json +1 -1
  57. package/dist/esm/SplitView/SplitViewSash/styles.module.css.json +1 -1
  58. package/dist/esm/SwitchField/styles.module.css.json +1 -1
  59. package/dist/esm/SwitchInput/styles.module.css.json +1 -1
  60. package/dist/esm/TextInput/styles.module.css.json +1 -1
  61. package/dist/esm/TextareaInput/styles.module.css.json +1 -1
  62. package/dist/esm/Toolbar/Button/styles.module.css.json +1 -1
  63. package/dist/esm/Toolbar/Toolbar/index.d.ts +3 -3
  64. package/dist/esm/Toolbar/Toolbar/index.js +3 -3
  65. package/dist/esm/Toolbar/Toolbar/styles.module.css.json +1 -1
  66. package/dist/esm/Tooltip/TooltipContent/styles.module.css.json +1 -1
  67. package/dist/esm/Tooltip/TooltipDelayGroup/index.d.ts +2 -2
  68. package/dist/esm/Tooltip/TooltipDelayGroup/index.js +2 -2
  69. package/dist/esm/VerticalSplit/index.d.ts +4 -4
  70. package/dist/esm/VerticalSplit/index.js +4 -4
  71. package/dist/esm/VerticalSplit/styles.module.css.json +1 -1
  72. package/dist/esm/generateStyleFromCtx/index.js +133 -2
  73. package/dist/esm/generateStyleFromCtx/index.js.map +1 -1
  74. package/dist/esm/icons.js +8 -8
  75. package/dist/esm/icons.js.map +1 -1
  76. package/dist/types/Canvas/index.d.ts +181 -276
  77. package/dist/types/SidebarPanel/index.d.ts +2 -2
  78. package/dist/types/Toolbar/Toolbar/index.d.ts +3 -3
  79. package/dist/types/Tooltip/TooltipDelayGroup/index.d.ts +2 -2
  80. package/dist/types/VerticalSplit/index.d.ts +4 -4
  81. package/package.json +3 -3
  82. package/src/Button/styles.module.css +19 -19
  83. package/src/Button/styles.module.css.json +1 -1
  84. package/src/ButtonGroup/Button/styles.module.css +15 -17
  85. package/src/ButtonGroup/Button/styles.module.css.json +1 -1
  86. package/src/ButtonGroup/Group/styles.module.css +1 -1
  87. package/src/ButtonGroup/Group/styles.module.css.json +1 -1
  88. package/src/Canvas/index.tsx +181 -276
  89. package/src/Canvas/styles.module.css +75 -16
  90. package/src/Canvas/styles.module.css.json +1 -1
  91. package/src/ContextInspector/styles.module.css +10 -10
  92. package/src/ContextInspector/styles.module.css.json +1 -1
  93. package/src/Dropdown/styles.module.css +30 -28
  94. package/src/Dropdown/styles.module.css.json +1 -1
  95. package/src/FieldError/styles.module.css +1 -1
  96. package/src/FieldError/styles.module.css.json +1 -1
  97. package/src/FieldHint/styles.module.css +1 -1
  98. package/src/FieldHint/styles.module.css.json +1 -1
  99. package/src/FormLabel/styles.module.css +2 -2
  100. package/src/FormLabel/styles.module.css.json +1 -1
  101. package/src/HotKey/styles.module.css +1 -1
  102. package/src/HotKey/styles.module.css.json +1 -1
  103. package/src/Section/styles.module.css +8 -8
  104. package/src/Section/styles.module.css.json +1 -1
  105. package/src/SelectInput/index.tsx +53 -26
  106. package/src/SidebarPanel/index.tsx +4 -29
  107. package/src/SidebarPanel/styles.module.css +6 -6
  108. package/src/SidebarPanel/styles.module.css.json +1 -1
  109. package/src/Spinner/styles.module.css +1 -1
  110. package/src/Spinner/styles.module.css.json +1 -1
  111. package/src/SplitView/SplitViewSash/styles.module.css +7 -7
  112. package/src/SplitView/SplitViewSash/styles.module.css.json +1 -1
  113. package/src/SwitchField/styles.module.css +1 -1
  114. package/src/SwitchField/styles.module.css.json +1 -1
  115. package/src/SwitchInput/styles.module.css +16 -13
  116. package/src/SwitchInput/styles.module.css.json +1 -1
  117. package/src/TextInput/styles.module.css +13 -11
  118. package/src/TextInput/styles.module.css.json +1 -1
  119. package/src/TextareaInput/styles.module.css +13 -11
  120. package/src/TextareaInput/styles.module.css.json +1 -1
  121. package/src/Toolbar/Button/styles.module.css +4 -4
  122. package/src/Toolbar/Button/styles.module.css.json +1 -1
  123. package/src/Toolbar/Toolbar/index.tsx +3 -3
  124. package/src/Toolbar/Toolbar/styles.module.css +2 -2
  125. package/src/Toolbar/Toolbar/styles.module.css.json +1 -1
  126. package/src/Tooltip/TooltipContent/styles.module.css +2 -2
  127. package/src/Tooltip/TooltipContent/styles.module.css.json +1 -1
  128. package/src/Tooltip/TooltipDelayGroup/index.tsx +2 -2
  129. package/src/VerticalSplit/index.tsx +4 -4
  130. package/src/VerticalSplit/styles.module.css +7 -11
  131. package/src/VerticalSplit/styles.module.css.json +1 -1
  132. package/src/generateStyleFromCtx/index.ts +153 -0
  133. package/src/icons.tsx +8 -0
  134. package/styles.css +29 -1
  135. package/types.json +517 -389
@@ -9,283 +9,188 @@ export declare type CanvasProps = {
9
9
  children: ReactNode;
10
10
  };
11
11
  /**
12
- * @example Color palette CSS variables
12
+ * @example Semantic color token CSS variables
13
13
  *
14
- * Within the `Canvas` component, a color palette is made available as a set of
15
- * CSS variables, allowing you to conform to the theme of the current
16
- * environment:
14
+ * Inside `Canvas`, the host exposes a full semantic color palette as CSS
15
+ * custom properties. Components should reference these tokens directly
16
+ * they adapt to the user's active theme (including dark mode)
17
+ * automatically.
18
+ *
19
+ * ### How to read a token name
20
+ *
21
+ * ```
22
+ * --color--{property} // standalone (one -- after color)
23
+ * --color--{context}--{property} // context pair (two -- after color)
24
+ * ```
25
+ *
26
+ * **Properties** — `surface` (backgrounds), `ink` (text/icons),
27
+ * `border` (1px lines), `outline` (focus rings), plus `fill` / `track`
28
+ * for progress bars.
29
+ *
30
+ * **Standalone** tokens work on any neutral page. **Contexts** are
31
+ * self-contained environments: always pair a `surface` with the `ink`,
32
+ * `border`, and hover states from the *same* context. Never mix — e.g.
33
+ * don't put `--color--primary--ink` on `--color--danger--surface`.
34
+ *
35
+ * Non-color tokens `--shadow--elevated` / `--shadow--float` /
36
+ * `--shadow--ambient` are ready-made `box-shadow` composites.
17
37
  *
18
38
  * ```js
19
39
  * <Canvas ctx={ctx}>
20
- * <Section title="Text colors">
21
- * <table>
22
- * <tbody>
23
- * <tr>
24
- * <td>
25
- * <code>--base-body-color</code>
26
- * </td>
27
- * <td width="30%">
28
- * <div
29
- * style={{
30
- * width: '30px',
31
- * height: '30px',
32
- * background: 'var(--base-body-color)',
33
- * }}
34
- * />
35
- * </td>
40
+ * <Section title="Standalone — use on any neutral page">
41
+ * <table><tbody>
42
+ * {[
43
+ * ['--color--surface', 'Default page background'],
44
+ * ['--color--surface-hover', 'Hovered row / list item'],
45
+ * ['--color--surface-muted', 'Muted section / card background'],
46
+ * ['--color--ink', 'Primary text'],
47
+ * ['--color--ink-subtle', 'Secondary text / captions'],
48
+ * ['--color--ink-hover', 'Text under hover'],
49
+ * ['--color--ink-muted', 'De-emphasized text'],
50
+ * ['--color--ink-placeholder', 'Input placeholder text'],
51
+ * ['--color--ink-primary', 'Brand-highlighted text / icons'],
52
+ * ['--color--ink-accent', 'Links / accent text'],
53
+ * ['--color--ink-disabled', 'Disabled text'],
54
+ * ['--color--border', 'Default 1px border'],
55
+ * ['--color--border-hover', 'Border under hover'],
56
+ * ].map(([t, d]) => (
57
+ * <tr key={t}>
58
+ * <td><code>{t}</code></td>
59
+ * <td style={{ color: 'var(--color--ink-subtle)' }}>{d}</td>
60
+ * <td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td>
36
61
  * </tr>
37
- * <tr>
38
- * <td>
39
- * <code>--light-body-color</code>
40
- * </td>
41
- * <td width="30%">
42
- * <div
43
- * style={{
44
- * width: '30px',
45
- * height: '30px',
46
- * background: 'var(--light-body-color)',
47
- * }}
48
- * />
49
- * </td>
50
- * </tr>
51
- * <tr>
52
- * <td>
53
- * <code>--placeholder-body-color</code>
54
- * </td>
55
- * <td width="30%">
56
- * <div
57
- * style={{
58
- * width: '30px',
59
- * height: '30px',
60
- * background: 'var(--placeholder-body-color)',
61
- * }}
62
- * />
63
- * </td>
64
- * </tr>
65
- * </tbody>
66
- * </table>
62
+ * ))}
63
+ * </tbody></table>
67
64
  * </Section>
68
- * <Section title="UI colors">
69
- * <table>
70
- * <tbody>
71
- * <tr>
72
- * <td>
73
- * <code>--light-bg-color</code>
74
- * </td>
75
- * <td width="30%">
76
- * <div
77
- * style={{
78
- * width: '30px',
79
- * height: '30px',
80
- * background: 'var(--light-bg-color)',
81
- * }}
82
- * />
83
- * </td>
84
- * </tr>
85
- * <tr>
86
- * <td>
87
- * <code>--lighter-bg-color</code>
88
- * </td>
89
- * <td width="30%">
90
- * <div
91
- * style={{
92
- * width: '30px',
93
- * height: '30px',
94
- * background: 'var(--lighter-bg-color)',
95
- * }}
96
- * />
97
- * </td>
98
- * </tr>
99
- * <tr>
100
- * <td>
101
- * <code>--disabled-bg-color</code>
102
- * </td>
103
- * <td width="30%">
104
- * <div
105
- * style={{
106
- * width: '30px',
107
- * height: '30px',
108
- * background: 'var(--disabled-bg-color)',
109
- * }}
110
- * />
111
- * </td>
112
- * </tr>
113
- * <tr>
114
- * <td>
115
- * <code>--border-color</code>
116
- * </td>
117
- * <td width="30%">
118
- * <div
119
- * style={{
120
- * width: '30px',
121
- * height: '30px',
122
- * background: 'var(--border-color)',
123
- * }}
124
- * />
125
- * </td>
126
- * </tr>
127
- * <tr>
128
- * <td>
129
- * <code>--darker-border-color</code>
130
- * </td>
131
- * <td width="30%">
132
- * <div
133
- * style={{
134
- * width: '30px',
135
- * height: '30px',
136
- * background: 'var(--darker-border-color)',
137
- * }}
138
- * />
139
- * </td>
140
- * </tr>
141
- * <tr>
142
- * <td>
143
- * <code>--alert-color</code>
144
- * </td>
145
- * <td width="30%">
146
- * <div
147
- * style={{
148
- * width: '30px',
149
- * height: '30px',
150
- * background: 'var(--alert-color)',
151
- * }}
152
- * />
153
- * </td>
154
- * </tr>
155
- * <tr>
156
- * <td>
157
- * <code>--warning-color</code>
158
- * </td>
159
- * <td width="30%">
160
- * <div
161
- * style={{
162
- * width: '30px',
163
- * height: '30px',
164
- * background: 'var(--warning-color)',
165
- * }}
166
- * />
167
- * </td>
168
- * </tr>
169
- * <tr>
170
- * <td>
171
- * <code>--notice-color</code>
172
- * </td>
173
- * <td width="30%">
174
- * <div
175
- * style={{
176
- * width: '30px',
177
- * height: '30px',
178
- * background: 'var(--notice-color)',
179
- * }}
180
- * />
181
- * </td>
182
- * </tr>
183
- * <tr>
184
- * <td>
185
- * <code>--warning-bg-color</code>
186
- * </td>
187
- * <td width="30%">
188
- * <div
189
- * style={{
190
- * width: '30px',
191
- * height: '30px',
192
- * background: 'var(--warning-bg-color)',
193
- * }}
194
- * />
195
- * </td>
196
- * </tr>
197
- * <tr>
198
- * <td>
199
- * <code>--add-color</code>
200
- * </td>
201
- * <td width="30%">
202
- * <div
203
- * style={{
204
- * width: '30px',
205
- * height: '30px',
206
- * background: 'var(--add-color)',
207
- * }}
208
- * />
209
- * </td>
210
- * </tr>
211
- * <tr>
212
- * <td>
213
- * <code>--remove-color</code>
214
- * </td>
215
- * <td width="30%">
216
- * <div
217
- * style={{
218
- * width: '30px',
219
- * height: '30px',
220
- * background: 'var(--remove-color)',
221
- * }}
222
- * />
223
- * </td>
224
- * </tr>
225
- * </tbody>
226
- * </table>
65
+ *
66
+ * <Section title="Context: raised — modals, dropdowns, popovers">
67
+ * <table><tbody>
68
+ * {['--color--raised--surface', '--color--raised--surface-hover', '--color--raised--surface-active']
69
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
70
+ * </tbody></table>
227
71
  * </Section>
228
- * <Section title="Project-specific colors">
229
- * <table>
230
- * <tbody>
231
- * <tr>
232
- * <td>
233
- * <code>--accent-color</code>
234
- * </td>
235
- * <td width="30%">
236
- * <div
237
- * style={{
238
- * width: '30px',
239
- * height: '30px',
240
- * background: 'var(--accent-color)',
241
- * }}
242
- * />
243
- * </td>
244
- * </tr>
245
- * <tr>
246
- * <td>
247
- * <code>--primary-color</code>
248
- * </td>
249
- * <td width="30%">
250
- * <div
251
- * style={{
252
- * width: '30px',
253
- * height: '30px',
254
- * background: 'var(--primary-color)',
255
- * }}
256
- * />
257
- * </td>
258
- * </tr>
259
- * <tr>
260
- * <td>
261
- * <code>--light-color</code>
262
- * </td>
263
- * <td width="30%">
264
- * <div
265
- * style={{
266
- * width: '30px',
267
- * height: '30px',
268
- * background: 'var(--light-color)',
269
- * }}
270
- * />
271
- * </td>
272
- * </tr>
273
- * <tr>
274
- * <td>
275
- * <code>--dark-color</code>
276
- * </td>
277
- * <td width="30%">
278
- * <div
279
- * style={{
280
- * width: '30px',
281
- * height: '30px',
282
- * background: 'var(--dark-color)',
283
- * }}
284
- * />
285
- * </td>
286
- * </tr>
287
- * </tbody>
288
- * </table>
72
+ *
73
+ * <Section title="Context: primary — main call-to-action buttons, badges, nav">
74
+ * <table><tbody>
75
+ * {['--color--primary--surface', '--color--primary--surface-hover', '--color--primary--surface-active', '--color--primary--surface-muted', '--color--primary--ink', '--color--primary--border']
76
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
77
+ * </tbody></table>
78
+ * </Section>
79
+ *
80
+ * <Section title="Context: tinted — subtle brand-tinted surfaces">
81
+ * <table><tbody>
82
+ * {['--color--tinted--surface', '--color--tinted--surface-hover', '--color--tinted--surface-active', '--color--tinted--ink']
83
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
84
+ * </tbody></table>
85
+ * </Section>
86
+ *
87
+ * <Section title="Context: accent, selected, disabled, danger, enterprise">
88
+ * <table><tbody>
89
+ * {['--color--accent--surface', '--color--accent--ink',
90
+ * '--color--selected--surface', '--color--selected--ink', '--color--selected--border',
91
+ * '--color--disabled--surface', '--color--disabled--ink',
92
+ * '--color--danger--surface', '--color--danger--ink',
93
+ * '--color--enterprise--surface']
94
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
95
+ * </tbody></table>
96
+ * </Section>
97
+ *
98
+ * <Section title="Context: focus — focus rings and outlines">
99
+ * <table><tbody>
100
+ * {['--color--focus--border', '--color--focus--outline']
101
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
102
+ * </tbody></table>
103
+ * </Section>
104
+ *
105
+ * <Section title="Feedback — validation and form states">
106
+ * <table><tbody>
107
+ * {['--color--feedback-fail--ink', '--color--feedback-fail--border', '--color--feedback-fail--outline',
108
+ * '--color--feedback-warning--ink', '--color--feedback-warning--surface', '--color--feedback-warning--border',
109
+ * '--color--feedback-success--ink', '--color--feedback-success--border']
110
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
111
+ * </tbody></table>
112
+ * </Section>
113
+ *
114
+ * <Section title="Context: highlight — rich text inline highlights">
115
+ * <table><tbody>
116
+ * {['--color--highlight--surface']
117
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
118
+ * </tbody></table>
119
+ * </Section>
120
+ *
121
+ * <Section title="Diffs — content versioning (added / removed / changed)">
122
+ * <table><tbody>
123
+ * {['--color--diff-added--surface', '--color--diff-removed--surface', '--color--diff-changed--surface',
124
+ * '--color--diff-added--surface-subtle', '--color--diff-removed--surface-subtle', '--color--diff-changed--surface-subtle',
125
+ * '--color--diff-added--outline-subtle', '--color--diff-removed--outline-subtle', '--color--diff-changed--outline-subtle',
126
+ * '--color--diff-changed--border', '--color--diff-changed--border-negative']
127
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
128
+ * </tbody></table>
129
+ * </Section>
130
+ *
131
+ * <Section title="Status — publishing workflow badges (ink-only)">
132
+ * <table><tbody>
133
+ * {['--color--status-draft--ink', '--color--status-outdated--ink', '--color--status-published--ink']
134
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td><span style={{ color: `var(${t})`, fontWeight: 'bold' }}>Sample text</span></td></tr>))}
135
+ * </tbody></table>
136
+ * </Section>
137
+ *
138
+ * <Section title="Backdrop & overlay — scrims and floating UI">
139
+ * <table><tbody>
140
+ * {['--color--backdrop--surface', '--color--backdrop--ink',
141
+ * '--color--overlay--surface', '--color--overlay--surface-subtle', '--color--overlay--ink']
142
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
143
+ * </tbody></table>
144
+ * </Section>
145
+ *
146
+ * <Section title="Stacked — dark layered UI (uploaders, media players)">
147
+ * <p>Stacked gives you three layers of depth (base → surface → raised) plus buttons, borders and a translucent fill. Use it when a dark inline panel needs internal hierarchy.</p>
148
+ * <table><tbody>
149
+ * {['--color--stacked--surface-base', '--color--stacked--surface', '--color--stacked--surface-raised',
150
+ * '--color--stacked--surface-hover', '--color--stacked--surface-translucent',
151
+ * '--color--stacked--surface-button', '--color--stacked--surface-button-active',
152
+ * '--color--stacked--ink', '--color--stacked--ink-subtle', '--color--stacked--border']
153
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
154
+ * </tbody></table>
155
+ * </Section>
156
+ *
157
+ * <Section title="Progress — bar track and fill">
158
+ * <table><tbody>
159
+ * {['--color--progress--track', '--color--progress--fill', '--color--progress--fill-hover']
160
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
161
+ * </tbody></table>
162
+ * </Section>
163
+ *
164
+ * <Section title="Tooltip — small dark floating labels">
165
+ * <table><tbody>
166
+ * {['--color--tooltip--surface', '--color--tooltip--surface-hover', '--color--tooltip--ink', '--color--tooltip--ink-subtle']
167
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
168
+ * </tbody></table>
169
+ * </Section>
170
+ *
171
+ * <Section title="Code — dark code blocks, logs, error traces">
172
+ * <table><tbody>
173
+ * {['--color--code--surface', '--color--code--ink']
174
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
175
+ * </tbody></table>
176
+ * </Section>
177
+ *
178
+ * <Section title="Shadow colors and scrollbar">
179
+ * <table><tbody>
180
+ * {['--color--shadow-subtle', '--color--shadow', '--color--shadow-strong', '--color--scrollbar']
181
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
182
+ * </tbody></table>
183
+ * </Section>
184
+ *
185
+ * <Section title="Shadow composites — drop-in box-shadow values">
186
+ * <div style={{ display: 'flex', gap: 'var(--spacing-l)', padding: 'var(--spacing-l)' }}>
187
+ * {['--shadow--elevated', '--shadow--float', '--shadow--ambient'].map((t) => (
188
+ * <div key={t} style={{ textAlign: 'center' }}>
189
+ * <div style={{ width: '80px', height: '80px', background: 'var(--color--surface)', borderRadius: '4px', boxShadow: `var(${t})` }} />
190
+ * <code style={{ display: 'block', marginTop: 'var(--spacing-s)', fontSize: 'var(--font-size-xs)' }}>{t}</code>
191
+ * </div>
192
+ * ))}
193
+ * </div>
289
194
  * </Section>
290
195
  * </Canvas>;
291
196
  * ```
@@ -418,7 +323,7 @@ export declare type CanvasProps = {
418
323
  * <td>
419
324
  * <div
420
325
  * style={{
421
- * background: 'var(--accent-color)',
326
+ * background: 'var(--color--accent--surface)',
422
327
  * width: 'var(--spacing-s)',
423
328
  * height: 'var(--spacing-s)',
424
329
  * }}
@@ -432,7 +337,7 @@ export declare type CanvasProps = {
432
337
  * <td>
433
338
  * <div
434
339
  * style={{
435
- * background: 'var(--accent-color)',
340
+ * background: 'var(--color--accent--surface)',
436
341
  * width: 'var(--spacing-m)',
437
342
  * height: 'var(--spacing-m)',
438
343
  * }}
@@ -446,7 +351,7 @@ export declare type CanvasProps = {
446
351
  * <td>
447
352
  * <div
448
353
  * style={{
449
- * background: 'var(--accent-color)',
354
+ * background: 'var(--color--accent--surface)',
450
355
  * width: 'var(--spacing-l)',
451
356
  * height: 'var(--spacing-l)',
452
357
  * }}
@@ -460,7 +365,7 @@ export declare type CanvasProps = {
460
365
  * <td>
461
366
  * <div
462
367
  * style={{
463
- * background: 'var(--accent-color)',
368
+ * background: 'var(--color--accent--surface)',
464
369
  * width: 'var(--spacing-xl)',
465
370
  * height: 'var(--spacing-xl)',
466
371
  * }}
@@ -474,7 +379,7 @@ export declare type CanvasProps = {
474
379
  * <td>
475
380
  * <div
476
381
  * style={{
477
- * background: 'var(--accent-color)',
382
+ * background: 'var(--color--accent--surface)',
478
383
  * width: 'var(--spacing-xxl)',
479
384
  * height: 'var(--spacing-xxl)',
480
385
  * }}
@@ -488,7 +393,7 @@ export declare type CanvasProps = {
488
393
  * <td>
489
394
  * <div
490
395
  * style={{
491
- * background: 'var(--accent-color)',
396
+ * background: 'var(--color--accent--surface)',
492
397
  * width: 'var(--spacing-xxxl)',
493
398
  * height: 'var(--spacing-xxxl)',
494
399
  * }}