@lostgradient/cinder 0.27.1 → 0.28.1

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 (261) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/components.json +1 -1
  3. package/dist/_internal/code-highlighter-context.d.ts +28 -0
  4. package/dist/cli/index.js +12 -8
  5. package/dist/components/approval-card/index.js +4 -4
  6. package/dist/components/button/button.css +25 -0
  7. package/dist/components/calendar/calendar.css +14 -0
  8. package/dist/components/capability-gate/capability-gate.css +5 -0
  9. package/dist/components/checkbox/checkbox.css +19 -0
  10. package/dist/components/chip/chip.css +14 -0
  11. package/dist/components/code-block/code-block.d.svelte.ts +1 -1
  12. package/dist/components/code-block/code-block.examples.json +1 -1
  13. package/dist/components/code-block/code-block.schema.js +3 -3
  14. package/dist/components/code-block/code-block.svelte.d.ts +1 -1
  15. package/dist/components/code-block/code-block.types.d.ts +14 -12
  16. package/dist/components/code-block/index.js +2 -2
  17. package/dist/components/color-picker/color-picker.css +2 -0
  18. package/dist/components/combobox/combobox.css +9 -1
  19. package/dist/components/command-palette/command-palette.css +7 -5
  20. package/dist/components/file-upload/file-upload.css +2 -1
  21. package/dist/components/guidance-region/index.css +1 -1
  22. package/dist/components/image/image.examples.json +1 -1
  23. package/dist/components/input/input.css +20 -6
  24. package/dist/components/json-schema-editor/index.js +5 -5
  25. package/dist/components/json-schema-editor/json-view-highlighter.d.ts +14 -0
  26. package/dist/components/key-value-editor/index.css +1 -1
  27. package/dist/components/modal-region/index.css +1 -1
  28. package/dist/components/multi-select/multi-select.css +9 -0
  29. package/dist/components/pagination/pagination.css +12 -0
  30. package/dist/components/pin-input/pin-input.css +9 -1
  31. package/dist/components/radio-group/radio-group.css +16 -0
  32. package/dist/components/run-step-timeline/index.js +2 -2
  33. package/dist/components/schema-form/index.js +2 -2
  34. package/dist/components/schema-form/schema-form.css +9 -0
  35. package/dist/components/segmented-control/segmented-control.css +3 -3
  36. package/dist/components/selection-popover/selection-popover.css +7 -1
  37. package/dist/components/tag-input/tag-input.css +10 -1
  38. package/dist/components/terminal-frame/index.js +2 -2
  39. package/dist/components/terminal-frame/terminal-frame.schema.js +2 -2
  40. package/dist/components/terminal-frame/terminal-frame.types.d.ts +8 -0
  41. package/dist/components/textarea/textarea.css +1 -1
  42. package/dist/components/toggle/toggle.css +16 -0
  43. package/dist/components/tree/tree.examples.json +1 -1
  44. package/dist/components/virtual-list/index.js +2 -2
  45. package/dist/components/virtual-list/virtual-list.css +42 -9
  46. package/dist/highlighters/shiki/default.d.ts +13 -1
  47. package/dist/highlighters/shiki/default.js +2 -2
  48. package/dist/highlighters/shiki/index.d.ts +20 -12
  49. package/dist/highlighters/shiki/index.js +2 -2
  50. package/dist/index.browser.css +1 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +23 -23
  53. package/dist/scripts/knowledge/index.d.ts +5 -1
  54. package/dist/server/components/approval-card/index.js +1 -1
  55. package/dist/server/components/code-block/index.js +1 -1
  56. package/dist/server/components/color-field/index.js +2 -2
  57. package/dist/server/components/color-picker/index.js +2 -2
  58. package/dist/server/components/json-schema-editor/index.js +2 -2
  59. package/dist/server/components/run-step-timeline/index.js +1 -1
  60. package/dist/server/components/terminal-frame/index.js +1 -1
  61. package/dist/server/components/virtual-list/index.js +1 -1
  62. package/dist/server/github-dark-e7nywpbe.js +3 -0
  63. package/dist/server/github-light-bqtmm1zq.js +3 -0
  64. package/dist/server/highlighters/shiki/default.js +2 -2
  65. package/dist/server/highlighters/shiki/index.js +2 -2
  66. package/dist/server/index.js +6 -6
  67. package/dist/server/{index.server-4qyyw4y5.js → index.server-043cfznf.js} +1 -1
  68. package/dist/server/{index.server-p46tn4eb.js → index.server-09tjs48p.js} +2 -2
  69. package/dist/server/index.server-0hyvdf74.js +8 -0
  70. package/dist/server/{index.server-dxgkh9tk.js → index.server-17thvpd3.js} +1 -1
  71. package/dist/server/index.server-19z6hqd6.js +4 -0
  72. package/dist/server/index.server-31020qgk.js +3 -0
  73. package/dist/server/{index.server-w3nqzde5.js → index.server-45wmvjrn.js} +3 -3
  74. package/dist/server/{index.server-3tkgm2gn.js → index.server-6mb7w5g4.js} +2 -2
  75. package/dist/server/{index.server-2vxmn7x1.js → index.server-c5yajkkc.js} +4 -4
  76. package/dist/server/index.server-e6fknxd9.js +4 -0
  77. package/dist/server/index.server-fev4kwm0.js +4 -0
  78. package/dist/server/index.server-k4vjk75r.js +4 -0
  79. package/dist/server/index.server-mjbtd1gs.js +7 -0
  80. package/dist/server/{index.server-2bfkhzzq.js → index.server-rkp4py5n.js} +2 -2
  81. package/dist/server/index.server-wdz9tsq4.js +3 -0
  82. package/dist/server/index.server-zj9909hd.js +4 -0
  83. package/dist/server/json-68twtta3.js +3 -0
  84. package/dist/server/tokens/registry.generated.js +1 -1
  85. package/dist/server/tokens/runtime/index.js +92 -0
  86. package/dist/styles/check-token-contrast-test-values.d.ts +1 -3
  87. package/dist/styles/token-contrast-test-readers.d.ts +1 -1
  88. package/dist/tokens/registry.generated.js +2 -2
  89. package/dist/tokens/resolved/dark-reduced-motion.json +104 -43
  90. package/dist/tokens/resolved/dark.json +104 -43
  91. package/dist/tokens/resolved/light-reduced-motion.json +104 -43
  92. package/dist/tokens/resolved/light.json +104 -43
  93. package/dist/tokens/runtime/authoring-catalogue.d.ts +19 -0
  94. package/dist/tokens/runtime/authoring-catalogue.generated.d.ts +8 -0
  95. package/dist/tokens/runtime/authoring-palette.d.ts +25 -0
  96. package/dist/tokens/runtime/authoring-profiles.d.ts +48 -0
  97. package/dist/tokens/runtime/authoring-provenance.d.ts +31 -0
  98. package/dist/tokens/runtime/authoring-types.d.ts +182 -0
  99. package/dist/tokens/runtime/base-corpus.d.ts +29 -0
  100. package/dist/tokens/runtime/base-corpus.generated.d.ts +8 -0
  101. package/dist/tokens/runtime/context-order.d.ts +60 -0
  102. package/dist/tokens/runtime/context-stack.d.ts +11 -0
  103. package/dist/tokens/runtime/contrast/color-difference.d.ts +16 -0
  104. package/dist/{styles/color-contrast-utilities.d.ts → tokens/runtime/contrast/color-math.d.ts} +2 -17
  105. package/dist/tokens/runtime/contrast/color-mix.d.ts +3 -0
  106. package/dist/tokens/runtime/contrast/css-color.d.ts +29 -0
  107. package/dist/tokens/runtime/contrast/index.d.ts +7 -0
  108. package/dist/tokens/runtime/contrast/measure.d.ts +45 -0
  109. package/dist/tokens/runtime/contrast/pairings.d.ts +36 -0
  110. package/dist/tokens/runtime/contrast/thresholds.d.ts +47 -0
  111. package/dist/tokens/runtime/corpus-documents.d.ts +36 -0
  112. package/dist/tokens/runtime/corpus-validation.d.ts +10 -0
  113. package/dist/tokens/runtime/corpus.d.ts +35 -0
  114. package/dist/tokens/runtime/css-configuration.d.ts +1 -0
  115. package/dist/tokens/runtime/css-stylelint.d.ts +2 -0
  116. package/dist/tokens/runtime/css-support.d.ts +110 -0
  117. package/dist/tokens/runtime/evaluate.d.ts +95 -0
  118. package/dist/tokens/runtime/evaluated-provenance.d.ts +36 -0
  119. package/dist/tokens/runtime/index.d.ts +38 -0
  120. package/dist/tokens/runtime/index.js +95 -0
  121. package/dist/tokens/runtime/package-version.generated.d.ts +9 -0
  122. package/dist/tokens/runtime/projection.d.ts +32 -0
  123. package/dist/tokens/runtime/registry.d.ts +125 -0
  124. package/dist/tokens/runtime/resolve-extends.d.ts +30 -0
  125. package/dist/tokens/runtime/resolve-references.d.ts +49 -0
  126. package/dist/tokens/runtime/resolve-shared.d.ts +34 -0
  127. package/dist/tokens/runtime/resolve.d.ts +44 -0
  128. package/dist/tokens/runtime/resolver-order.d.ts +89 -0
  129. package/dist/tokens/runtime/source-digest.d.ts +20 -0
  130. package/dist/tokens/runtime/stylesheet-skeleton.d.ts +31 -0
  131. package/dist/tokens/runtime/theme-runtime.test-support.d.ts +24 -0
  132. package/dist/tokens/runtime/theme-sources.d.ts +46 -0
  133. package/dist/tokens/runtime/theme-stylesheet.d.ts +31 -0
  134. package/dist/tokens/runtime/types.d.ts +115 -0
  135. package/dist/tokens/runtime/validate-resolver.d.ts +31 -0
  136. package/dist/tokens/runtime/validate-schema.d.ts +22 -0
  137. package/dist/tokens/runtime/validate-tokens.d.ts +25 -0
  138. package/dist/tokens/runtime/validate-values.d.ts +33 -0
  139. package/dist/tokens/runtime/validate.d.ts +3 -0
  140. package/dist/tokens/runtime/value-color-parse.d.ts +128 -0
  141. package/dist/tokens/runtime/value-color.d.ts +85 -0
  142. package/dist/tokens/runtime/value-entry.d.ts +3 -0
  143. package/dist/tokens/runtime/value-formatters.d.ts +59 -0
  144. package/dist/tokens/sets/colors.tokens.json +65 -13
  145. package/dist/tokens/sets/foundation.tokens.json +23 -0
  146. package/dist/tokens/sets/semantic.tokens.json +136 -30
  147. package/dist/utilities/highlighter.d.ts +5 -5
  148. package/dist/utilities/retrying-loader-cache.d.ts +3 -6
  149. package/package.json +15 -3
  150. package/src/_internal/code-highlighter-context.ts +41 -0
  151. package/src/components/button/button.css +25 -0
  152. package/src/components/calendar/calendar.css +14 -0
  153. package/src/components/capability-gate/capability-gate.css +5 -0
  154. package/src/components/checkbox/checkbox.css +19 -0
  155. package/src/components/chip/chip.css +14 -0
  156. package/src/components/code-block/code-block.examples.json +1 -1
  157. package/src/components/code-block/code-block.schema.json +2 -2
  158. package/src/components/code-block/code-block.schema.ts +2 -2
  159. package/src/components/code-block/code-block.svelte +15 -19
  160. package/src/components/code-block/code-block.types.ts +14 -12
  161. package/src/components/color-picker/color-picker.css +2 -0
  162. package/src/components/combobox/combobox.css +9 -1
  163. package/src/components/command-palette/command-palette.css +7 -5
  164. package/src/components/file-upload/file-upload.css +2 -1
  165. package/src/components/image/image.examples.json +1 -1
  166. package/src/components/input/input.css +20 -6
  167. package/src/components/json-schema-editor/json-view-highlighter.ts +23 -0
  168. package/src/components/json-schema-editor/json-view.svelte +2 -0
  169. package/src/components/multi-select/multi-select.css +9 -0
  170. package/src/components/pagination/pagination.css +12 -0
  171. package/src/components/pin-input/pin-input.css +9 -1
  172. package/src/components/radio-group/radio-group.css +16 -0
  173. package/src/components/schema-form/schema-form.css +9 -0
  174. package/src/components/segmented-control/segmented-control.css +3 -3
  175. package/src/components/selection-popover/selection-popover.css +7 -1
  176. package/src/components/tag-input/tag-input.css +10 -1
  177. package/src/components/terminal-frame/terminal-frame.schema.json +5 -0
  178. package/src/components/terminal-frame/terminal-frame.schema.ts +6 -0
  179. package/src/components/terminal-frame/terminal-frame.svelte +6 -2
  180. package/src/components/terminal-frame/terminal-frame.types.ts +8 -0
  181. package/src/components/textarea/textarea.css +1 -1
  182. package/src/components/toggle/toggle.css +16 -0
  183. package/src/components/tree/tree.examples.json +1 -1
  184. package/src/components/virtual-list/virtual-list.css +42 -9
  185. package/src/components/virtual-list/virtual-list.svelte +54 -20
  186. package/src/highlighters/shiki/default.ts +13 -1
  187. package/src/highlighters/shiki/index.ts +20 -12
  188. package/src/index.ts +5 -0
  189. package/src/styles/foundation.css +33 -1
  190. package/src/styles/tokens-base.css +4 -4
  191. package/src/tokens/registry.generated.json +3 -3
  192. package/src/tokens/resolved/dark-reduced-motion.json +104 -43
  193. package/src/tokens/resolved/dark.json +104 -43
  194. package/src/tokens/resolved/light-reduced-motion.json +104 -43
  195. package/src/tokens/resolved/light.json +104 -43
  196. package/src/tokens/runtime/authoring-catalogue.generated.ts +19300 -0
  197. package/src/tokens/runtime/authoring-catalogue.ts +256 -0
  198. package/src/tokens/runtime/authoring-palette.ts +100 -0
  199. package/src/tokens/runtime/authoring-profiles.ts +288 -0
  200. package/src/tokens/runtime/authoring-provenance.ts +290 -0
  201. package/src/tokens/runtime/authoring-types.ts +199 -0
  202. package/src/tokens/runtime/base-corpus.generated.ts +10 -0
  203. package/src/tokens/runtime/base-corpus.ts +78 -0
  204. package/src/tokens/runtime/context-order.ts +182 -0
  205. package/src/tokens/runtime/context-stack.ts +52 -0
  206. package/src/tokens/runtime/contrast/color-difference.ts +114 -0
  207. package/src/tokens/runtime/contrast/color-math.ts +89 -0
  208. package/src/tokens/runtime/contrast/color-mix.ts +20 -0
  209. package/src/tokens/runtime/contrast/css-color.ts +312 -0
  210. package/src/tokens/runtime/contrast/index.ts +7 -0
  211. package/src/tokens/runtime/contrast/measure.ts +185 -0
  212. package/src/tokens/runtime/contrast/pairings.ts +324 -0
  213. package/src/tokens/runtime/contrast/thresholds.ts +81 -0
  214. package/src/tokens/runtime/corpus-documents.ts +289 -0
  215. package/src/tokens/runtime/corpus-validation.ts +336 -0
  216. package/src/tokens/runtime/corpus.ts +179 -0
  217. package/src/tokens/runtime/css-configuration.ts +1 -0
  218. package/src/tokens/runtime/css-stylelint.ts +15 -0
  219. package/src/tokens/runtime/css-support.ts +407 -0
  220. package/src/tokens/runtime/evaluate.ts +262 -0
  221. package/src/tokens/runtime/evaluated-provenance.ts +116 -0
  222. package/src/tokens/runtime/format-validator.generated.d.ts +18 -0
  223. package/src/tokens/runtime/format-validator.generated.js +13029 -0
  224. package/src/tokens/runtime/index.ts +78 -0
  225. package/src/tokens/runtime/package-version.generated.ts +9 -0
  226. package/src/tokens/runtime/projection.ts +65 -0
  227. package/src/tokens/runtime/registry.ts +365 -0
  228. package/src/tokens/runtime/resolve-extends.ts +211 -0
  229. package/src/tokens/runtime/resolve-references.ts +313 -0
  230. package/src/tokens/runtime/resolve-shared.ts +186 -0
  231. package/src/tokens/runtime/resolve.ts +246 -0
  232. package/src/tokens/runtime/resolver-order.ts +326 -0
  233. package/src/tokens/runtime/resolver-validator.generated.d.ts +18 -0
  234. package/src/tokens/runtime/resolver-validator.generated.js +15492 -0
  235. package/src/tokens/runtime/source-digest.ts +49 -0
  236. package/src/tokens/runtime/stylesheet-skeleton.ts +123 -0
  237. package/src/tokens/runtime/theme-sources.ts +121 -0
  238. package/src/tokens/runtime/theme-stylesheet.ts +177 -0
  239. package/src/tokens/runtime/types.ts +140 -0
  240. package/src/tokens/runtime/validate-resolver.ts +338 -0
  241. package/src/tokens/runtime/validate-schema.ts +269 -0
  242. package/src/tokens/runtime/validate-tokens.ts +181 -0
  243. package/src/tokens/runtime/validate-values.ts +396 -0
  244. package/src/tokens/runtime/validate.ts +57 -0
  245. package/src/tokens/runtime/value-color-parse.ts +309 -0
  246. package/src/tokens/runtime/value-color.ts +217 -0
  247. package/src/tokens/runtime/value-entry.ts +52 -0
  248. package/src/tokens/runtime/value-formatters.ts +414 -0
  249. package/src/tokens/sets/colors.tokens.json +65 -13
  250. package/src/tokens/sets/foundation.tokens.json +23 -0
  251. package/src/tokens/sets/semantic.tokens.json +136 -30
  252. package/src/utilities/highlighter.ts +5 -5
  253. package/src/utilities/retrying-loader-cache.ts +3 -6
  254. package/dist/components/code-block/code-block-default-highlighter.d.ts +0 -40
  255. package/dist/server/index.server-298z43yn.js +0 -4
  256. package/dist/server/index.server-3h11wjyh.js +0 -8
  257. package/dist/server/index.server-a3aerbfr.js +0 -4
  258. package/dist/server/index.server-kge3zp6n.js +0 -4
  259. package/dist/server/index.server-syf81nwz.js +0 -6
  260. package/dist/server/index.server-zs08f5te.js +0 -3
  261. package/src/components/code-block/code-block-default-highlighter.ts +0 -63
@@ -13,6 +13,7 @@
13
13
  "cssProperty": "--cinder-space-0",
14
14
  "public": true,
15
15
  "category": "spacing",
16
+ "scale": "spacing",
16
17
  "cssRecipe": null
17
18
  }
18
19
  }
@@ -28,6 +29,7 @@
28
29
  "cssProperty": "--cinder-space-0-5",
29
30
  "public": true,
30
31
  "category": "spacing",
32
+ "scale": "spacing",
31
33
  "cssRecipe": null
32
34
  }
33
35
  }
@@ -43,6 +45,7 @@
43
45
  "cssProperty": "--cinder-space-1",
44
46
  "public": true,
45
47
  "category": "spacing",
48
+ "scale": "spacing",
46
49
  "cssRecipe": null
47
50
  }
48
51
  }
@@ -58,6 +61,7 @@
58
61
  "cssProperty": "--cinder-space-1-5",
59
62
  "public": true,
60
63
  "category": "spacing",
64
+ "scale": "spacing",
61
65
  "cssRecipe": null
62
66
  }
63
67
  }
@@ -73,6 +77,7 @@
73
77
  "cssProperty": "--cinder-space-2",
74
78
  "public": true,
75
79
  "category": "spacing",
80
+ "scale": "spacing",
76
81
  "cssRecipe": null
77
82
  }
78
83
  }
@@ -88,6 +93,7 @@
88
93
  "cssProperty": "--cinder-space-2-5",
89
94
  "public": true,
90
95
  "category": "spacing",
96
+ "scale": "spacing",
91
97
  "cssRecipe": null
92
98
  }
93
99
  }
@@ -103,6 +109,7 @@
103
109
  "cssProperty": "--cinder-space-3",
104
110
  "public": true,
105
111
  "category": "spacing",
112
+ "scale": "spacing",
106
113
  "cssRecipe": null
107
114
  }
108
115
  }
@@ -118,6 +125,7 @@
118
125
  "cssProperty": "--cinder-space-3-5",
119
126
  "public": true,
120
127
  "category": "spacing",
128
+ "scale": "spacing",
121
129
  "cssRecipe": null
122
130
  }
123
131
  }
@@ -133,6 +141,7 @@
133
141
  "cssProperty": "--cinder-space-4",
134
142
  "public": true,
135
143
  "category": "spacing",
144
+ "scale": "spacing",
136
145
  "cssRecipe": null
137
146
  }
138
147
  }
@@ -148,6 +157,7 @@
148
157
  "cssProperty": "--cinder-space-5",
149
158
  "public": true,
150
159
  "category": "spacing",
160
+ "scale": "spacing",
151
161
  "cssRecipe": null
152
162
  }
153
163
  }
@@ -163,6 +173,7 @@
163
173
  "cssProperty": "--cinder-space-6",
164
174
  "public": true,
165
175
  "category": "spacing",
176
+ "scale": "spacing",
166
177
  "cssRecipe": null
167
178
  }
168
179
  }
@@ -178,6 +189,7 @@
178
189
  "cssProperty": "--cinder-space-7",
179
190
  "public": true,
180
191
  "category": "spacing",
192
+ "scale": "spacing",
181
193
  "cssRecipe": null
182
194
  }
183
195
  }
@@ -193,6 +205,7 @@
193
205
  "cssProperty": "--cinder-space-8",
194
206
  "public": true,
195
207
  "category": "spacing",
208
+ "scale": "spacing",
196
209
  "cssRecipe": null
197
210
  }
198
211
  }
@@ -208,6 +221,7 @@
208
221
  "cssProperty": "--cinder-space-10",
209
222
  "public": true,
210
223
  "category": "spacing",
224
+ "scale": "spacing",
211
225
  "cssRecipe": null
212
226
  }
213
227
  }
@@ -223,6 +237,7 @@
223
237
  "cssProperty": "--cinder-space-12",
224
238
  "public": true,
225
239
  "category": "spacing",
240
+ "scale": "spacing",
226
241
  "cssRecipe": null
227
242
  }
228
243
  }
@@ -238,6 +253,7 @@
238
253
  "cssProperty": "--cinder-space-16",
239
254
  "public": true,
240
255
  "category": "spacing",
256
+ "scale": "spacing",
241
257
  "cssRecipe": null
242
258
  }
243
259
  }
@@ -253,6 +269,7 @@
253
269
  "cssProperty": "--cinder-space-20",
254
270
  "public": true,
255
271
  "category": "spacing",
272
+ "scale": "spacing",
256
273
  "cssRecipe": null
257
274
  }
258
275
  }
@@ -268,6 +285,7 @@
268
285
  "cssProperty": "--cinder-space-24",
269
286
  "public": true,
270
287
  "category": "spacing",
288
+ "scale": "spacing",
271
289
  "cssRecipe": null
272
290
  }
273
291
  }
@@ -283,6 +301,7 @@
283
301
  "cssProperty": "--cinder-space-32",
284
302
  "public": true,
285
303
  "category": "spacing",
304
+ "scale": "spacing",
286
305
  "cssRecipe": null
287
306
  }
288
307
  }
@@ -302,6 +321,7 @@
302
321
  "cssProperty": "--cinder-radius-sm",
303
322
  "public": true,
304
323
  "category": "radius",
324
+ "scale": "radius",
305
325
  "cssRecipe": null
306
326
  }
307
327
  }
@@ -317,6 +337,7 @@
317
337
  "cssProperty": "--cinder-radius-md",
318
338
  "public": true,
319
339
  "category": "radius",
340
+ "scale": "radius",
320
341
  "cssRecipe": null
321
342
  }
322
343
  }
@@ -332,6 +353,7 @@
332
353
  "cssProperty": "--cinder-radius-lg",
333
354
  "public": true,
334
355
  "category": "radius",
356
+ "scale": "radius",
335
357
  "cssRecipe": null
336
358
  }
337
359
  }
@@ -347,6 +369,7 @@
347
369
  "cssProperty": "--cinder-radius-full",
348
370
  "public": true,
349
371
  "category": "radius",
372
+ "scale": "radius",
350
373
  "cssRecipe": null
351
374
  }
352
375
  }
@@ -15,7 +15,11 @@
15
15
  "public": true,
16
16
  "category": "color",
17
17
  "contrastPairs": ["text.default"],
18
- "cssRecipe": "light-dark(oklch(99.4% 0.002 255), oklch(21% 0.04 245))"
18
+ "cssRecipe": "light-dark(oklch(99.4% 0.002 255), oklch(21% 0.04 245))",
19
+ "palette": {
20
+ "family": "neutral",
21
+ "role": "surface-base"
22
+ }
19
23
  }
20
24
  }
21
25
  },
@@ -32,7 +36,11 @@
32
36
  "public": true,
33
37
  "category": "color",
34
38
  "contrastPairs": ["text.default"],
35
- "cssRecipe": "light-dark(oklch(100% 0 255), oklch(28% 0.045 245))"
39
+ "cssRecipe": "light-dark(oklch(100% 0 255), oklch(28% 0.045 245))",
40
+ "palette": {
41
+ "family": "neutral",
42
+ "role": "surface-raised"
43
+ }
36
44
  }
37
45
  }
38
46
  },
@@ -78,7 +86,11 @@
78
86
  "cssProperty": "--cinder-surface-inset",
79
87
  "public": true,
80
88
  "category": "color",
81
- "cssRecipe": "light-dark(oklch(96% 0.005 255), oklch(11% 0.03 245))"
89
+ "cssRecipe": "light-dark(oklch(96% 0.005 255), oklch(11% 0.03 245))",
90
+ "palette": {
91
+ "family": "neutral",
92
+ "role": "surface-inset"
93
+ }
82
94
  }
83
95
  }
84
96
  },
@@ -154,7 +166,11 @@
154
166
  "cssProperty": "--cinder-surface-canvas",
155
167
  "public": true,
156
168
  "category": "color",
157
- "cssRecipe": "light-dark(oklch(98.4% 0.003 255), oklch(15% 0.035 245))"
169
+ "cssRecipe": "light-dark(oklch(98.4% 0.003 255), oklch(15% 0.035 245))",
170
+ "palette": {
171
+ "family": "neutral",
172
+ "role": "surface-canvas"
173
+ }
158
174
  }
159
175
  }
160
176
  }
@@ -190,7 +206,11 @@
190
206
  "cssProperty": "--cinder-border-ink",
191
207
  "public": true,
192
208
  "category": "color",
193
- "cssRecipe": "light-dark(oklch(20% 0.02 255), oklch(86% 0.065 250))"
209
+ "cssRecipe": "light-dark(oklch(20% 0.02 255), oklch(86% 0.065 250))",
210
+ "palette": {
211
+ "family": "neutral",
212
+ "role": "border-ink"
213
+ }
194
214
  }
195
215
  }
196
216
  },
@@ -222,7 +242,11 @@
222
242
  "cssProperty": "--cinder-border-faint",
223
243
  "public": true,
224
244
  "category": "color",
225
- "cssRecipe": "light-dark(oklch(92% 0.003 255), oklch(33% 0.03 245))"
245
+ "cssRecipe": "light-dark(oklch(92% 0.003 255), oklch(33% 0.03 245))",
246
+ "palette": {
247
+ "family": "neutral",
248
+ "role": "border-faint"
249
+ }
226
250
  }
227
251
  }
228
252
  },
@@ -288,7 +312,11 @@
288
312
  "cssProperty": "--cinder-text-muted",
289
313
  "public": true,
290
314
  "category": "color",
291
- "cssRecipe": "light-dark(oklch(32% 0.014 245), oklch(82% 0.02 245))"
315
+ "cssRecipe": "light-dark(oklch(32% 0.014 245), oklch(82% 0.02 245))",
316
+ "palette": {
317
+ "family": "neutral",
318
+ "role": "text-muted"
319
+ }
292
320
  }
293
321
  }
294
322
  },
@@ -303,7 +331,11 @@
303
331
  "cssProperty": "--cinder-text-subtle",
304
332
  "public": true,
305
333
  "category": "color",
306
- "cssRecipe": "light-dark(oklch(42% 0.012 245), oklch(72% 0.02 245))"
334
+ "cssRecipe": "light-dark(oklch(42% 0.012 245), oklch(72% 0.02 245))",
335
+ "palette": {
336
+ "family": "neutral",
337
+ "role": "text-subtle"
338
+ }
307
339
  }
308
340
  }
309
341
  },
@@ -318,7 +350,11 @@
318
350
  "cssProperty": "--cinder-text-disabled",
319
351
  "public": true,
320
352
  "category": "color",
321
- "cssRecipe": "light-dark(oklch(52% 0.01 245), oklch(64% 0.02 245))"
353
+ "cssRecipe": "light-dark(oklch(52% 0.01 245), oklch(64% 0.02 245))",
354
+ "palette": {
355
+ "family": "neutral",
356
+ "role": "text-disabled"
357
+ }
322
358
  }
323
359
  }
324
360
  },
@@ -349,7 +385,12 @@
349
385
  "cssProperty": "--cinder-text-default",
350
386
  "public": true,
351
387
  "category": "color",
352
- "cssRecipe": "light-dark(oklch(20% 0.018 245), oklch(92% 0.02 245))"
388
+ "cssRecipe": "light-dark(oklch(20% 0.018 245), oklch(92% 0.02 245))",
389
+ "palette": {
390
+ "family": "neutral",
391
+ "role": "text-default",
392
+ "anchor": true
393
+ }
353
394
  }
354
395
  }
355
396
  }
@@ -367,7 +408,11 @@
367
408
  "cssProperty": "--cinder-fill-disabled",
368
409
  "public": true,
369
410
  "category": "color",
370
- "cssRecipe": "light-dark(oklch(86% 0.006 255), oklch(30% 0.015 245))"
411
+ "cssRecipe": "light-dark(oklch(86% 0.006 255), oklch(30% 0.015 245))",
412
+ "palette": {
413
+ "family": "neutral",
414
+ "role": "fill-disabled"
415
+ }
371
416
  }
372
417
  }
373
418
  }
@@ -403,7 +448,11 @@
403
448
  "cssProperty": "--cinder-accent-text",
404
449
  "public": true,
405
450
  "category": "color",
406
- "cssRecipe": "light-dark(oklch(45% 0.22 270), oklch(72% 0.14 270))"
451
+ "cssRecipe": "light-dark(oklch(45% 0.22 270), oklch(72% 0.14 270))",
452
+ "palette": {
453
+ "family": "accent",
454
+ "role": "text"
455
+ }
407
456
  }
408
457
  }
409
458
  },
@@ -436,7 +485,12 @@
436
485
  "cssProperty": "--cinder-accent-solid",
437
486
  "public": true,
438
487
  "category": "color",
439
- "cssRecipe": "light-dark(oklch(50% 0.22 270), oklch(72% 0.14 270))"
488
+ "cssRecipe": "light-dark(oklch(50% 0.22 270), oklch(72% 0.14 270))",
489
+ "palette": {
490
+ "family": "accent",
491
+ "role": "solid",
492
+ "anchor": true
493
+ }
440
494
  }
441
495
  }
442
496
  },
@@ -529,23 +583,23 @@
529
583
  "offset": {
530
584
  "$type": "dimension",
531
585
  "$value": {
532
- "value": 2,
586
+ "value": 0,
533
587
  "unit": "px"
534
588
  },
535
- "$description": "Focus ring offset from the control edge.",
589
+ "$description": "Focus ring offset from the control edge. Zero: the ring sits directly on the control edge with no offset band, so focus reads as one tight 2px line rather than a 4px double band (COR-1498). Filled controls add a private 2px gap instead; see `ring.offset-color`. Emitted as `0px`, not a bare `0`, because the ring recipes add it to `--cinder-ring-width` inside `calc()`, where a unitless zero is a number and invalidates the sum.",
536
590
  "$extensions": {
537
591
  "com.lostgradient.cinder": {
538
592
  "cssProperty": "--cinder-ring-offset",
539
593
  "public": true,
540
594
  "category": "size",
541
- "cssRecipe": null
595
+ "cssRecipe": "0px"
542
596
  }
543
597
  }
544
598
  },
545
599
  "offset-color": {
546
600
  "$type": "color",
547
601
  "$value": "{surface.raised}",
548
- "$description": "Focus ring offset band color. The ring is a two-stop box-shadow and box-shadow cannot paint a transparent gap, so the offset band has to be some real color. Pinned to `surface.raised` (the top of the ramp) so the band disappears into raised surfaces, where controls overwhelmingly live, and reads as a light halo on recessed tiers.",
602
+ "$description": "Color of the gap band between a focus ring and the control. Filled controls (a solid accent, danger or status fill on the focused element) paint a 2px gap in this color before the ring, so the accent-hued ring sits on the page instead of on a same-hue fill. Unfilled controls use `ring.offset`, which is zero, so they paint no gap. box-shadow cannot paint a transparent gap, so the band needs a real color; it is pinned to `surface.raised`, where controls overwhelmingly live.",
549
603
  "$extensions": {
550
604
  "com.lostgradient.cinder": {
551
605
  "cssProperty": "--cinder-ring-offset-color",
@@ -577,7 +631,7 @@
577
631
  "colorSpace": "oklch",
578
632
  "components": [0.15, 0.035, 245]
579
633
  },
580
- "$description": "Ring color tuned for use on solid accent/fill surfaces (FloatingAction primary variant). Light arm is a near-black that contrasts both the accent fill and the page background; dark arm is a near-white that contrasts the bright dark-mode accent and the dark page background.",
634
+ "$description": "Ring color used by the FloatingAction primary variant, whose ring sits directly on its accent fill. Light arm is a near-black and dark arm a near-white, both strongly contrasting the page background. Against the fill itself it measures about 3:1 in light mode and about 2.5:1 in dark mode, so other filled controls use a `ring.offset-color` gap and the standard ring instead (focus-ring-policy.md).",
581
635
  "$extensions": {
582
636
  "com.lostgradient.cinder": {
583
637
  "cssProperty": "--cinder-ring-on-accent",
@@ -961,7 +1015,12 @@
961
1015
  "cssProperty": "--cinder-status-success-solid",
962
1016
  "public": true,
963
1017
  "category": "color",
964
- "cssRecipe": "light-dark(oklch(50% 0.157 145), oklch(78% 0.14 145))"
1018
+ "cssRecipe": "light-dark(oklch(50% 0.157 145), oklch(78% 0.14 145))",
1019
+ "palette": {
1020
+ "family": "success",
1021
+ "role": "solid",
1022
+ "anchor": true
1023
+ }
965
1024
  }
966
1025
  }
967
1026
  },
@@ -977,7 +1036,11 @@
977
1036
  "cssProperty": "--cinder-status-success-solid-active",
978
1037
  "public": true,
979
1038
  "category": "color",
980
- "cssRecipe": "light-dark(oklch(35% 0.1 145), oklch(62% 0.14 145))"
1039
+ "cssRecipe": "light-dark(oklch(35% 0.1 145), oklch(62% 0.14 145))",
1040
+ "palette": {
1041
+ "family": "success",
1042
+ "role": "solid-active"
1043
+ }
981
1044
  }
982
1045
  }
983
1046
  },
@@ -993,7 +1056,11 @@
993
1056
  "cssProperty": "--cinder-status-success-solid-hover",
994
1057
  "public": true,
995
1058
  "category": "color",
996
- "cssRecipe": "light-dark(oklch(42% 0.12 145), oklch(70% 0.14 145))"
1059
+ "cssRecipe": "light-dark(oklch(42% 0.12 145), oklch(70% 0.14 145))",
1060
+ "palette": {
1061
+ "family": "success",
1062
+ "role": "solid-hover"
1063
+ }
997
1064
  }
998
1065
  }
999
1066
  }
@@ -1029,7 +1096,12 @@
1029
1096
  "cssProperty": "--cinder-status-warning-solid",
1030
1097
  "public": true,
1031
1098
  "category": "color",
1032
- "cssRecipe": "light-dark(oklch(54% 0.113 75), oklch(82% 0.156 75))"
1099
+ "cssRecipe": "light-dark(oklch(54% 0.113 75), oklch(82% 0.156 75))",
1100
+ "palette": {
1101
+ "family": "warning",
1102
+ "role": "solid",
1103
+ "anchor": true
1104
+ }
1033
1105
  }
1034
1106
  }
1035
1107
  },
@@ -1045,7 +1117,11 @@
1045
1117
  "cssProperty": "--cinder-status-warning-solid-active",
1046
1118
  "public": true,
1047
1119
  "category": "color",
1048
- "cssRecipe": "light-dark(oklch(38% 0.07 75), oklch(66% 0.13 75))"
1120
+ "cssRecipe": "light-dark(oklch(38% 0.07 75), oklch(66% 0.13 75))",
1121
+ "palette": {
1122
+ "family": "warning",
1123
+ "role": "solid-active"
1124
+ }
1049
1125
  }
1050
1126
  }
1051
1127
  },
@@ -1061,7 +1137,11 @@
1061
1137
  "cssProperty": "--cinder-status-warning-solid-hover",
1062
1138
  "public": true,
1063
1139
  "category": "color",
1064
- "cssRecipe": "light-dark(oklch(42% 0.08 75), oklch(74% 0.156 75))"
1140
+ "cssRecipe": "light-dark(oklch(42% 0.08 75), oklch(74% 0.156 75))",
1141
+ "palette": {
1142
+ "family": "warning",
1143
+ "role": "solid-hover"
1144
+ }
1065
1145
  }
1066
1146
  }
1067
1147
  }
@@ -1097,7 +1177,12 @@
1097
1177
  "cssProperty": "--cinder-status-danger-solid",
1098
1178
  "public": true,
1099
1179
  "category": "color",
1100
- "cssRecipe": "light-dark(oklch(50% 0.202 25), oklch(72% 0.172 25))"
1180
+ "cssRecipe": "light-dark(oklch(50% 0.202 25), oklch(72% 0.172 25))",
1181
+ "palette": {
1182
+ "family": "danger",
1183
+ "role": "solid",
1184
+ "anchor": true
1185
+ }
1101
1186
  }
1102
1187
  }
1103
1188
  },
@@ -1113,7 +1198,11 @@
1113
1198
  "cssProperty": "--cinder-status-danger-solid-active",
1114
1199
  "public": true,
1115
1200
  "category": "color",
1116
- "cssRecipe": "light-dark(oklch(35% 0.142 25), oklch(60% 0.172 25))"
1201
+ "cssRecipe": "light-dark(oklch(35% 0.142 25), oklch(60% 0.172 25))",
1202
+ "palette": {
1203
+ "family": "danger",
1204
+ "role": "solid-active"
1205
+ }
1117
1206
  }
1118
1207
  }
1119
1208
  },
@@ -1129,7 +1218,11 @@
1129
1218
  "cssProperty": "--cinder-status-danger-solid-hover",
1130
1219
  "public": true,
1131
1220
  "category": "color",
1132
- "cssRecipe": "light-dark(oklch(42% 0.171 25), oklch(64% 0.172 25))"
1221
+ "cssRecipe": "light-dark(oklch(42% 0.171 25), oklch(64% 0.172 25))",
1222
+ "palette": {
1223
+ "family": "danger",
1224
+ "role": "solid-hover"
1225
+ }
1133
1226
  }
1134
1227
  }
1135
1228
  }
@@ -1165,7 +1258,12 @@
1165
1258
  "cssProperty": "--cinder-status-info-solid",
1166
1259
  "public": true,
1167
1260
  "category": "color",
1168
- "cssRecipe": "light-dark(oklch(50% 0.098 230), oklch(78% 0.13 230))"
1261
+ "cssRecipe": "light-dark(oklch(50% 0.098 230), oklch(78% 0.13 230))",
1262
+ "palette": {
1263
+ "family": "info",
1264
+ "role": "solid",
1265
+ "anchor": true
1266
+ }
1169
1267
  }
1170
1268
  }
1171
1269
  },
@@ -1181,7 +1279,11 @@
1181
1279
  "cssProperty": "--cinder-status-info-solid-active",
1182
1280
  "public": true,
1183
1281
  "category": "color",
1184
- "cssRecipe": "light-dark(oklch(35% 0.065 230), oklch(62% 0.12 230))"
1282
+ "cssRecipe": "light-dark(oklch(35% 0.065 230), oklch(62% 0.12 230))",
1283
+ "palette": {
1284
+ "family": "info",
1285
+ "role": "solid-active"
1286
+ }
1185
1287
  }
1186
1288
  }
1187
1289
  },
@@ -1197,7 +1299,11 @@
1197
1299
  "cssProperty": "--cinder-status-info-solid-hover",
1198
1300
  "public": true,
1199
1301
  "category": "color",
1200
- "cssRecipe": "light-dark(oklch(42% 0.079 230), oklch(70% 0.13 230))"
1302
+ "cssRecipe": "light-dark(oklch(42% 0.079 230), oklch(70% 0.13 230))",
1303
+ "palette": {
1304
+ "family": "info",
1305
+ "role": "solid-hover"
1306
+ }
1201
1307
  }
1202
1308
  }
1203
1309
  }
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * The `Highlighter` contract for `<CodeBlock>`.
3
3
  *
4
- * `<CodeBlock>` highlights automatically when a `language` is set by
5
- * lazy-loading the bundled `@lostgradient/cinder` adapter on the
6
- * client. Consumers who want a different highlighter (a non-default theme, a
7
- * non-Shiki engine, a pre-configured `shikiHighlighter()` instance) implement
8
- * this type and pass the function to `<CodeBlock highlighter={...} />`.
4
+ * `<CodeBlock>` imports no highlighter of its own. A consumer supplies one —
5
+ * a `shikiHighlighter()` instance over the grammars it needs,
6
+ * `fullShikiHighlighter()` for every grammar Shiki ships, or any function of
7
+ * this type — either per block through `<CodeBlock highlighter={...} />` or
8
+ * for a whole subtree through `setCodeHighlighterContext(highlighter)`.
9
9
  *
10
10
  * This file holds the canonical type so plain `.ts` consumers and `.svelte`
11
11
  * components can both `import type` it without going through a component
@@ -8,12 +8,9 @@
8
8
  * chunk-load failure, etc.) would lock the cached rejection in forever
9
9
  * and every subsequent call would replay the failure.
10
10
  *
11
- * Used by the bundled Shiki adapter (to wrap `import('shiki')`) and by
12
- * `<CodeBlock>`'s default-highlighter seam (to wrap the dynamic import of the
13
- * Shiki adapter module). Lives in `utilities/` so the default-highlighter seam
14
- * can reuse it WITHOUT a static import edge to the Shiki adapter — keeping the
15
- * adapter out of CodeBlock's static import graph (see
16
- * `code-block.bundle-boundary.test.ts`).
11
+ * Used by the Shiki adapter (to wrap its lazy Shiki imports) and by the JSON
12
+ * Schema interpreter. Lives in `utilities/` so a module can reuse it without
13
+ * an import edge to the Shiki adapter.
17
14
  */
18
15
  export function createRetryingLoaderCache<T>(loader: () => Promise<T>): () => Promise<T> {
19
16
  let cached: Promise<T> | undefined;
@@ -1,40 +0,0 @@
1
- /**
2
- * The lazy default-highlighter seam for `<CodeBlock>`.
3
- *
4
- * `<CodeBlock>` highlights automatically when a `language` is set and no
5
- * explicit `highlighter` prop is passed. Rather than statically importing the
6
- * Shiki adapter (which would pull Shiki into every consumer's entry chunk and
7
- * break SSR-bundle safety), CodeBlock calls {@link loadDefaultHighlighter}
8
- * from inside a client-only `$effect`. That defers BOTH the Shiki module
9
- * import AND this module's `shikiHighlighter()` factory call until a block
10
- * actually needs highlighting.
11
- *
12
- * This is also the single mock seam for CodeBlock's unit tests: tests
13
- * `mock.module()` THIS exact module specifier, never the public
14
- * `@lostgradient/cinder` subpath (which CodeBlock does not import
15
- * directly). Mocking here is what makes the "default import is NOT invoked
16
- * when an explicit `highlighter` is provided" assertion real instead of
17
- * false-confidence.
18
- *
19
- * Lifecycle:
20
- *
21
- * - The Shiki adapter import is wrapped in `createRetryingLoaderCache`, so
22
- * it loads at most once, concurrent callers share one in-flight promise,
23
- * and a REJECTED load is evicted so a later highlight retries (a transient
24
- * chunk-load failure does not poison the cache forever).
25
- * - The `shikiHighlighter()` instance is memoized on first successful load.
26
- * The instance itself lazy-imports `shiki` on its first highlight call and
27
- * applies the adapter's default dual-theme (`github-light` / `github-dark`),
28
- * so the default path re-themes with cinder's light/dark switch.
29
- */
30
- import type { Highlighter } from '../../utilities/highlighter.ts';
31
- /**
32
- * Resolve the bundled default highlighter, loading the Shiki adapter lazily
33
- * on the first call and memoizing the resulting {@link Highlighter} instance.
34
- *
35
- * Returns the same instance on every subsequent call. The instance applies
36
- * the Shiki adapter's default options, whose output escapes the code text
37
- * (the only safety claim cinder makes for the `{@html}` boundary — see the
38
- * `@security` note on {@link Highlighter}).
39
- */
40
- export declare function loadDefaultHighlighter(): Promise<Highlighter>;