@zonsh/ui 0.0.0 → 0.2.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 (388) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -1
  3. package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
  4. package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
  5. package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
  6. package/assets/illustrations/drawing/bracket-construction.svg +77 -0
  7. package/assets/illustrations/drawing/crescent-dark.svg +28 -0
  8. package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
  9. package/assets/illustrations/drawing/crescent-guides.svg +33 -0
  10. package/assets/illustrations/drawing/crescent.svg +28 -0
  11. package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
  12. package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
  13. package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
  14. package/assets/illustrations/drawing/eclipse.svg +187 -0
  15. package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
  16. package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
  17. package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
  18. package/assets/illustrations/drawing/elevation-guides.svg +31 -0
  19. package/assets/illustrations/drawing/horizon-dark.svg +30 -0
  20. package/assets/illustrations/drawing/horizon.svg +30 -0
  21. package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
  22. package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
  23. package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
  24. package/assets/illustrations/drawing/nib-study.svg +107 -0
  25. package/assets/illustrations/editorial/assistant-640.webp +0 -0
  26. package/assets/illustrations/editorial/assistant.webp +0 -0
  27. package/assets/illustrations/editorial/automation-640.webp +0 -0
  28. package/assets/illustrations/editorial/automation.webp +0 -0
  29. package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
  30. package/assets/illustrations/editorial/bracket-left.webp +0 -0
  31. package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
  32. package/assets/illustrations/editorial/bracket-right.webp +0 -0
  33. package/assets/illustrations/editorial/custom-software-640.webp +0 -0
  34. package/assets/illustrations/editorial/custom-software.webp +0 -0
  35. package/assets/illustrations/editorial/digitalization-640.webp +0 -0
  36. package/assets/illustrations/editorial/digitalization.webp +0 -0
  37. package/assets/illustrations/editorial/integration-640.webp +0 -0
  38. package/assets/illustrations/editorial/integration.webp +0 -0
  39. package/assets/illustrations/editorial/problem-640.webp +0 -0
  40. package/assets/illustrations/editorial/problem.webp +0 -0
  41. package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
  42. package/assets/illustrations/editorial/process-analysis.webp +0 -0
  43. package/assets/illustrations/editorial/process-concept-640.webp +0 -0
  44. package/assets/illustrations/editorial/process-concept.webp +0 -0
  45. package/assets/illustrations/editorial/process-development-640.webp +0 -0
  46. package/assets/illustrations/editorial/process-development.webp +0 -0
  47. package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
  48. package/assets/illustrations/editorial/process-discovery.webp +0 -0
  49. package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
  50. package/assets/illustrations/editorial/process-maintenance.webp +0 -0
  51. package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
  52. package/assets/illustrations/editorial/process-prototype.webp +0 -0
  53. package/assets/illustrations/editorial/process-testing-640.webp +0 -0
  54. package/assets/illustrations/editorial/process-testing.webp +0 -0
  55. package/assets/illustrations/iso/automation-dark.svg +6 -0
  56. package/assets/illustrations/iso/automation.svg +6 -0
  57. package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
  58. package/assets/illustrations/iso/bar-chart.svg +6 -0
  59. package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
  60. package/assets/illustrations/iso/brackets-classic.svg +6 -0
  61. package/assets/illustrations/iso/brackets-dark.svg +6 -0
  62. package/assets/illustrations/iso/brackets.svg +6 -0
  63. package/assets/illustrations/iso/city-dark.svg +6 -0
  64. package/assets/illustrations/iso/city.svg +6 -0
  65. package/assets/illustrations/iso/conveyor-dark.svg +6 -0
  66. package/assets/illustrations/iso/conveyor.svg +6 -0
  67. package/assets/illustrations/iso/database-dark.svg +6 -0
  68. package/assets/illustrations/iso/database.svg +6 -0
  69. package/assets/illustrations/iso/documents-dark.svg +6 -0
  70. package/assets/illustrations/iso/documents.svg +6 -0
  71. package/assets/illustrations/iso/inbox-dark.svg +6 -0
  72. package/assets/illustrations/iso/inbox.svg +6 -0
  73. package/assets/illustrations/iso/laptop-dark.svg +6 -0
  74. package/assets/illustrations/iso/laptop.svg +6 -0
  75. package/assets/illustrations/iso/monitor-dark.svg +6 -0
  76. package/assets/illustrations/iso/monitor.svg +6 -0
  77. package/assets/illustrations/iso/pipeline-dark.svg +6 -0
  78. package/assets/illustrations/iso/pipeline.svg +6 -0
  79. package/assets/illustrations/iso/platform-dark.svg +6 -0
  80. package/assets/illustrations/iso/platform.svg +6 -0
  81. package/assets/illustrations/iso/server-dark.svg +6 -0
  82. package/assets/illustrations/iso/server.svg +6 -0
  83. package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
  84. package/assets/illustrations/iso/spreadsheet.svg +6 -0
  85. package/assets/illustrations/iso/timeline-dark.svg +6 -0
  86. package/assets/illustrations/iso/timeline.svg +6 -0
  87. package/assets/illustrations/sheet/construction.svg +115 -0
  88. package/assets/illustrations/sheet/crescent.svg +40 -0
  89. package/assets/illustrations/sheet/limb.svg +42 -0
  90. package/assets/illustrations/sheet/stress-axis.svg +119 -0
  91. package/assets/illustrations/sheet/totality.svg +215 -0
  92. package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
  93. package/assets/logo-left.svg +1 -0
  94. package/assets/logo-right.svg +1 -0
  95. package/assets/logo.svg +1 -0
  96. package/dist/components/_overlay.d.ts +47 -0
  97. package/dist/components/_overlay.js +59 -0
  98. package/dist/components/accordion.d.ts +32 -0
  99. package/dist/components/accordion.js +39 -0
  100. package/dist/components/alert-dialog.d.ts +45 -0
  101. package/dist/components/alert-dialog.js +56 -0
  102. package/dist/components/alert.d.ts +35 -0
  103. package/dist/components/alert.js +42 -0
  104. package/dist/components/ascii-field.d.ts +34 -0
  105. package/dist/components/ascii-field.js +410 -0
  106. package/dist/components/aspect-ratio.d.ts +14 -0
  107. package/dist/components/aspect-ratio.js +17 -0
  108. package/dist/components/avatar.d.ts +42 -0
  109. package/dist/components/avatar.js +55 -0
  110. package/dist/components/badge.d.ts +70 -0
  111. package/dist/components/badge.js +62 -0
  112. package/dist/components/breadcrumb.d.ts +22 -0
  113. package/dist/components/breadcrumb.js +32 -0
  114. package/dist/components/button-group.d.ts +30 -0
  115. package/dist/components/button-group.js +47 -0
  116. package/dist/components/button.d.ts +53 -0
  117. package/dist/components/button.js +130 -0
  118. package/dist/components/calendar.d.ts +26 -0
  119. package/dist/components/calendar.js +164 -0
  120. package/dist/components/card.d.ts +42 -0
  121. package/dist/components/card.js +76 -0
  122. package/dist/components/carousel.d.ts +90 -0
  123. package/dist/components/carousel.js +213 -0
  124. package/dist/components/chart.d.ts +180 -0
  125. package/dist/components/chart.js +286 -0
  126. package/dist/components/checkbox.d.ts +23 -0
  127. package/dist/components/checkbox.js +43 -0
  128. package/dist/components/code-block.d.ts +45 -0
  129. package/dist/components/code-block.js +58 -0
  130. package/dist/components/code-highlight.d.ts +13 -0
  131. package/dist/components/code-highlight.js +107 -0
  132. package/dist/components/collapsible.d.ts +20 -0
  133. package/dist/components/collapsible.js +32 -0
  134. package/dist/components/color-picker.d.ts +85 -0
  135. package/dist/components/color-picker.js +407 -0
  136. package/dist/components/combobox.d.ts +81 -0
  137. package/dist/components/combobox.js +100 -0
  138. package/dist/components/command.d.ts +112 -0
  139. package/dist/components/command.js +212 -0
  140. package/dist/components/context-menu.d.ts +29 -0
  141. package/dist/components/context-menu.js +35 -0
  142. package/dist/components/conversation.d.ts +27 -0
  143. package/dist/components/conversation.js +293 -0
  144. package/dist/components/copy-button.d.ts +46 -0
  145. package/dist/components/copy-button.js +118 -0
  146. package/dist/components/data-table.d.ts +175 -0
  147. package/dist/components/data-table.js +302 -0
  148. package/dist/components/date-picker.d.ts +91 -0
  149. package/dist/components/date-picker.js +207 -0
  150. package/dist/components/dialog.d.ts +48 -0
  151. package/dist/components/dialog.js +92 -0
  152. package/dist/components/direction.d.ts +16 -0
  153. package/dist/components/direction.js +18 -0
  154. package/dist/components/drawer.d.ts +60 -0
  155. package/dist/components/drawer.js +76 -0
  156. package/dist/components/empty.d.ts +31 -0
  157. package/dist/components/empty.js +50 -0
  158. package/dist/components/feature-list.d.ts +54 -0
  159. package/dist/components/feature-list.js +43 -0
  160. package/dist/components/field.d.ts +15 -0
  161. package/dist/components/field.js +36 -0
  162. package/dist/components/file-drop.d.ts +55 -0
  163. package/dist/components/file-drop.js +197 -0
  164. package/dist/components/filter-bar.d.ts +106 -0
  165. package/dist/components/filter-bar.js +296 -0
  166. package/dist/components/form.d.ts +33 -0
  167. package/dist/components/form.js +34 -0
  168. package/dist/components/graph.d.ts +105 -0
  169. package/dist/components/graph.js +786 -0
  170. package/dist/components/illustration.d.ts +85 -0
  171. package/dist/components/illustration.js +165 -0
  172. package/dist/components/input-group.d.ts +127 -0
  173. package/dist/components/input-group.js +292 -0
  174. package/dist/components/input.d.ts +16 -0
  175. package/dist/components/input.js +25 -0
  176. package/dist/components/item.d.ts +64 -0
  177. package/dist/components/item.js +116 -0
  178. package/dist/components/kbd.d.ts +33 -0
  179. package/dist/components/kbd.js +38 -0
  180. package/dist/components/label.d.ts +12 -0
  181. package/dist/components/label.js +24 -0
  182. package/dist/components/layout.d.ts +136 -0
  183. package/dist/components/layout.js +162 -0
  184. package/dist/components/logo.d.ts +54 -0
  185. package/dist/components/logo.js +96 -0
  186. package/dist/components/menu.d.ts +60 -0
  187. package/dist/components/menu.js +138 -0
  188. package/dist/components/menubar.d.ts +62 -0
  189. package/dist/components/menubar.js +223 -0
  190. package/dist/components/message.d.ts +42 -0
  191. package/dist/components/message.js +56 -0
  192. package/dist/components/meter.d.ts +31 -0
  193. package/dist/components/meter.js +25 -0
  194. package/dist/components/native-select.d.ts +26 -0
  195. package/dist/components/native-select.js +35 -0
  196. package/dist/components/navigation-menu.d.ts +42 -0
  197. package/dist/components/navigation-menu.js +97 -0
  198. package/dist/components/number-field.d.ts +36 -0
  199. package/dist/components/number-field.js +153 -0
  200. package/dist/components/otp-field.d.ts +35 -0
  201. package/dist/components/otp-field.js +94 -0
  202. package/dist/components/pagination.d.ts +31 -0
  203. package/dist/components/pagination.js +70 -0
  204. package/dist/components/pdf-viewer.d.ts +69 -0
  205. package/dist/components/pdf-viewer.js +929 -0
  206. package/dist/components/popover.d.ts +33 -0
  207. package/dist/components/popover.js +48 -0
  208. package/dist/components/preview-card.d.ts +25 -0
  209. package/dist/components/preview-card.js +22 -0
  210. package/dist/components/progress.d.ts +27 -0
  211. package/dist/components/progress.js +23 -0
  212. package/dist/components/prompt-input.d.ts +131 -0
  213. package/dist/components/prompt-input.js +403 -0
  214. package/dist/components/quote.d.ts +22 -0
  215. package/dist/components/quote.js +15 -0
  216. package/dist/components/radio-group.d.ts +18 -0
  217. package/dist/components/radio-group.js +34 -0
  218. package/dist/components/reasoning.d.ts +31 -0
  219. package/dist/components/reasoning.js +70 -0
  220. package/dist/components/resizable.d.ts +38 -0
  221. package/dist/components/resizable.js +41 -0
  222. package/dist/components/response.d.ts +30 -0
  223. package/dist/components/response.js +538 -0
  224. package/dist/components/scroll-area.d.ts +33 -0
  225. package/dist/components/scroll-area.js +31 -0
  226. package/dist/components/select.d.ts +35 -0
  227. package/dist/components/select.js +60 -0
  228. package/dist/components/separator.d.ts +14 -0
  229. package/dist/components/separator.js +17 -0
  230. package/dist/components/sidebar.d.ts +147 -0
  231. package/dist/components/sidebar.js +489 -0
  232. package/dist/components/site-header.d.ts +59 -0
  233. package/dist/components/site-header.js +67 -0
  234. package/dist/components/skeleton.d.ts +31 -0
  235. package/dist/components/skeleton.js +29 -0
  236. package/dist/components/slider.d.ts +24 -0
  237. package/dist/components/slider.js +129 -0
  238. package/dist/components/sources.d.ts +25 -0
  239. package/dist/components/sources.js +35 -0
  240. package/dist/components/spinner.d.ts +36 -0
  241. package/dist/components/spinner.js +72 -0
  242. package/dist/components/suggestions.d.ts +20 -0
  243. package/dist/components/suggestions.js +18 -0
  244. package/dist/components/switch.d.ts +14 -0
  245. package/dist/components/switch.js +26 -0
  246. package/dist/components/table.d.ts +162 -0
  247. package/dist/components/table.js +758 -0
  248. package/dist/components/tabs.d.ts +25 -0
  249. package/dist/components/tabs.js +162 -0
  250. package/dist/components/tag.d.ts +41 -0
  251. package/dist/components/tag.js +88 -0
  252. package/dist/components/tags-input.d.ts +40 -0
  253. package/dist/components/tags-input.js +239 -0
  254. package/dist/components/textarea.d.ts +13 -0
  255. package/dist/components/textarea.js +16 -0
  256. package/dist/components/theme.d.ts +41 -0
  257. package/dist/components/theme.js +112 -0
  258. package/dist/components/time-field.d.ts +51 -0
  259. package/dist/components/time-field.js +437 -0
  260. package/dist/components/timeline.d.ts +76 -0
  261. package/dist/components/timeline.js +99 -0
  262. package/dist/components/toast.d.ts +72 -0
  263. package/dist/components/toast.js +196 -0
  264. package/dist/components/toggle-group.d.ts +41 -0
  265. package/dist/components/toggle-group.js +140 -0
  266. package/dist/components/toggle.d.ts +23 -0
  267. package/dist/components/toggle.js +35 -0
  268. package/dist/components/tool-call.d.ts +52 -0
  269. package/dist/components/tool-call.js +57 -0
  270. package/dist/components/toolbar.d.ts +17 -0
  271. package/dist/components/toolbar.js +34 -0
  272. package/dist/components/tooltip.d.ts +42 -0
  273. package/dist/components/tooltip.js +47 -0
  274. package/dist/components/tree.d.ts +75 -0
  275. package/dist/components/tree.js +636 -0
  276. package/dist/components/typography.d.ts +134 -0
  277. package/dist/components/typography.js +176 -0
  278. package/dist/components/video-player.d.ts +276 -0
  279. package/dist/components/video-player.js +1352 -0
  280. package/dist/components/whiteboard.d.ts +80 -0
  281. package/dist/components/whiteboard.js +389 -0
  282. package/dist/index.d.ts +85 -0
  283. package/dist/index.js +86 -0
  284. package/dist/lib/cn.d.ts +20 -0
  285. package/dist/lib/cn.js +38 -0
  286. package/dist/lib/code-highlight.d.ts +31 -0
  287. package/dist/lib/code-highlight.js +24 -0
  288. package/dist/lib/code-theme.d.ts +19 -0
  289. package/dist/lib/code-theme.js +140 -0
  290. package/dist/lib/collapse-row.d.ts +9 -0
  291. package/dist/lib/collapse-row.js +129 -0
  292. package/dist/lib/digit-roll.d.ts +21 -0
  293. package/dist/lib/digit-roll.js +31 -0
  294. package/dist/lib/editorial-assets.d.ts +16 -0
  295. package/dist/lib/editorial-assets.js +56 -0
  296. package/dist/lib/figure/catalog.d.ts +127 -0
  297. package/dist/lib/figure/catalog.js +130 -0
  298. package/dist/lib/figure/figures/automation.d.ts +7 -0
  299. package/dist/lib/figure/figures/automation.js +143 -0
  300. package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
  301. package/dist/lib/figure/figures/bar-chart.js +99 -0
  302. package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
  303. package/dist/lib/figure/figures/brackets-classic.js +170 -0
  304. package/dist/lib/figure/figures/brackets.d.ts +8 -0
  305. package/dist/lib/figure/figures/brackets.js +84 -0
  306. package/dist/lib/figure/figures/city.d.ts +7 -0
  307. package/dist/lib/figure/figures/city.js +93 -0
  308. package/dist/lib/figure/figures/conveyor.d.ts +7 -0
  309. package/dist/lib/figure/figures/conveyor.js +97 -0
  310. package/dist/lib/figure/figures/database.d.ts +7 -0
  311. package/dist/lib/figure/figures/database.js +65 -0
  312. package/dist/lib/figure/figures/documents.d.ts +7 -0
  313. package/dist/lib/figure/figures/documents.js +83 -0
  314. package/dist/lib/figure/figures/inbox.d.ts +7 -0
  315. package/dist/lib/figure/figures/inbox.js +92 -0
  316. package/dist/lib/figure/figures/laptop.d.ts +7 -0
  317. package/dist/lib/figure/figures/laptop.js +67 -0
  318. package/dist/lib/figure/figures/monitor.d.ts +7 -0
  319. package/dist/lib/figure/figures/monitor.js +59 -0
  320. package/dist/lib/figure/figures/pipeline.d.ts +8 -0
  321. package/dist/lib/figure/figures/pipeline.js +117 -0
  322. package/dist/lib/figure/figures/platform.d.ts +7 -0
  323. package/dist/lib/figure/figures/platform.js +117 -0
  324. package/dist/lib/figure/figures/server.d.ts +7 -0
  325. package/dist/lib/figure/figures/server.js +115 -0
  326. package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
  327. package/dist/lib/figure/figures/spreadsheet.js +87 -0
  328. package/dist/lib/figure/figures/timeline.d.ts +7 -0
  329. package/dist/lib/figure/figures/timeline.js +65 -0
  330. package/dist/lib/figure/kernel.d.ts +152 -0
  331. package/dist/lib/figure/kernel.js +576 -0
  332. package/dist/lib/figure/parts.d.ts +42 -0
  333. package/dist/lib/figure/parts.js +126 -0
  334. package/dist/lib/form-reset.d.ts +11 -0
  335. package/dist/lib/form-reset.js +22 -0
  336. package/dist/lib/glide.d.ts +53 -0
  337. package/dist/lib/glide.js +138 -0
  338. package/dist/lib/graph-layout.d.ts +58 -0
  339. package/dist/lib/graph-layout.js +200 -0
  340. package/dist/lib/illustration-drawings.d.ts +89 -0
  341. package/dist/lib/illustration-drawings.js +539 -0
  342. package/dist/lib/illustration-info.d.ts +37 -0
  343. package/dist/lib/illustration-info.js +22 -0
  344. package/dist/lib/illustration-library.d.ts +87 -0
  345. package/dist/lib/illustration-library.js +352 -0
  346. package/dist/lib/logo-geometry.d.ts +29 -0
  347. package/dist/lib/logo-geometry.js +67 -0
  348. package/dist/lib/markdown-guard.d.ts +16 -0
  349. package/dist/lib/markdown-guard.js +123 -0
  350. package/dist/lib/merge-refs.d.ts +10 -0
  351. package/dist/lib/merge-refs.js +26 -0
  352. package/dist/lib/motion.d.ts +6 -0
  353. package/dist/lib/motion.js +12 -0
  354. package/dist/lib/pdf-worker.d.ts +1 -0
  355. package/dist/lib/pdf-worker.js +6 -0
  356. package/dist/lib/pdf.d.ts +19 -0
  357. package/dist/lib/pdf.js +58 -0
  358. package/dist/lib/platform.d.ts +33 -0
  359. package/dist/lib/platform.js +68 -0
  360. package/dist/lib/room.d.ts +25 -0
  361. package/dist/lib/room.js +46 -0
  362. package/dist/lib/table-fit.d.ts +143 -0
  363. package/dist/lib/table-fit.js +577 -0
  364. package/dist/lib/theme-script.d.ts +18 -0
  365. package/dist/lib/theme-script.js +29 -0
  366. package/dist/styles/expressive.css +188 -0
  367. package/dist/styles/fonts.css +145 -0
  368. package/dist/styles/index.css +206 -0
  369. package/dist/styles/material.css +313 -0
  370. package/dist/styles/parts/ai.css +360 -0
  371. package/dist/styles/parts/brand.css +75 -0
  372. package/dist/styles/parts/controls.css +725 -0
  373. package/dist/styles/parts/data.css +222 -0
  374. package/dist/styles/parts/editorial.css +120 -0
  375. package/dist/styles/parts/feedback.css +273 -0
  376. package/dist/styles/parts/foundations.css +166 -0
  377. package/dist/styles/parts/graph.css +214 -0
  378. package/dist/styles/parts/inputs.css +261 -0
  379. package/dist/styles/parts/isometric.css +124 -0
  380. package/dist/styles/parts/navigation.css +232 -0
  381. package/dist/styles/parts/overlays.css +250 -0
  382. package/dist/styles/parts/pdf.css +154 -0
  383. package/dist/styles/parts/react-flow.css +519 -0
  384. package/dist/styles/parts/whiteboard.css +855 -0
  385. package/dist/styles/tokens.css +290 -0
  386. package/dist/vite.d.ts +116 -0
  387. package/dist/vite.js +129 -0
  388. package/package.json +188 -5
@@ -0,0 +1,166 @@
1
+ /* foundations components — owned by the foundations group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
2
+
3
+ /*
4
+ * Prose — rich text from Markdown or a CMS. Descendant and sibling selectors are the reason
5
+ * this lives in CSS. Selectors are wrapped in :where() so any utility on a child still wins,
6
+ * and the block sits in the components layer so utilities on the wrapper win too.
7
+ */
8
+ @layer components {
9
+ .ep-prose {
10
+ max-width: 68ch;
11
+ font-family: var(--font-body);
12
+ font-size: 17px;
13
+ line-height: 1.6;
14
+ color: var(--foreground-soft);
15
+ /* A word longer than the column (a URL, a long compound) breaks rather than running out of it. */
16
+ overflow-wrap: break-word;
17
+
18
+ /* Flow spacing between blocks: direct children, and blocks inside quotes and list items. */
19
+ & > :where(* + *),
20
+ & :where(blockquote, li, figure) > :where(* + *) {
21
+ margin-top: 20px;
22
+ }
23
+
24
+ & :where(h2, h3, h4) {
25
+ font-family: var(--font-heading);
26
+ font-weight: 300;
27
+ font-kerning: normal;
28
+ letter-spacing: -0.02em;
29
+ text-wrap: balance;
30
+ color: var(--foreground);
31
+ }
32
+ & :where(h2) {
33
+ font-size: 30px;
34
+ line-height: 1.1;
35
+ @media (width >= 48rem) {
36
+ font-size: 36px;
37
+ }
38
+ }
39
+ & :where(h3) {
40
+ font-size: 24px;
41
+ line-height: 1.15;
42
+ }
43
+ & :where(h4) {
44
+ font-size: 20px;
45
+ line-height: 1.25;
46
+ }
47
+ & :where(* + h2) {
48
+ margin-top: 64px;
49
+ }
50
+ & :where(* + h3) {
51
+ margin-top: 48px;
52
+ }
53
+ & :where(* + h4) {
54
+ margin-top: 32px;
55
+ }
56
+ & :where(h2 + *, h3 + *) {
57
+ margin-top: 16px;
58
+ }
59
+ & :where(h4 + *) {
60
+ margin-top: 12px;
61
+ }
62
+
63
+ & :where(p, li) {
64
+ text-wrap: pretty;
65
+ }
66
+ & :where(strong, b) {
67
+ font-weight: 500;
68
+ color: var(--foreground);
69
+ }
70
+
71
+ & :where(a) {
72
+ @apply link;
73
+ }
74
+
75
+ & :where(ul, ol) {
76
+ padding-inline-start: 24px;
77
+ }
78
+ & :where(ul) {
79
+ list-style-type: disc;
80
+ }
81
+ & :where(ol) {
82
+ list-style-type: decimal;
83
+ }
84
+ & :where(li) {
85
+ padding-inline-start: 4px;
86
+ }
87
+ & :where(li + li, li > ul, li > ol) {
88
+ margin-top: 8px;
89
+ }
90
+ & :where(li)::marker {
91
+ color: var(--muted-foreground);
92
+ font-family: var(--font-mono);
93
+ font-size: 0.85em;
94
+ }
95
+
96
+ /* Code reads left to right on a right-to-left page too, its brackets kept with it. */
97
+ & :where(code, kbd, samp) {
98
+ direction: ltr;
99
+ unicode-bidi: isolate;
100
+ font-family: var(--font-mono);
101
+ font-size: 0.9em;
102
+ color: var(--foreground);
103
+ }
104
+ & :where(pre) {
105
+ direction: ltr;
106
+ overflow-x: auto;
107
+ font-family: var(--font-mono);
108
+ font-size: 14px;
109
+ line-height: 1.6;
110
+ color: var(--foreground);
111
+ }
112
+ & :where(pre code) {
113
+ font-size: inherit;
114
+ }
115
+
116
+ & :where(blockquote) {
117
+ padding-inline-start: 24px;
118
+ border-inline-start: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
119
+ color: var(--foreground);
120
+ }
121
+
122
+ & :where(hr) {
123
+ margin-block: 48px;
124
+ border: 0;
125
+ border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
126
+ }
127
+ & :where(hr + *) {
128
+ margin-top: 0;
129
+ }
130
+
131
+ & :where(img, video, figure) {
132
+ max-width: 100%;
133
+ }
134
+ & :where(figcaption) {
135
+ margin-top: 12px;
136
+ font-size: 15px;
137
+ color: var(--muted-foreground);
138
+ }
139
+ }
140
+ }
141
+
142
+ /*
143
+ * CodeBlock's syntax colours (with `highlight`, inside CodeHighlightProvider). The zon code theme
144
+ * names these properties instead of colours, so it follows light, dark and a forced local theme:
145
+ * they are set on the block (and on Shiki's own `pre.shiki` output), where the tones resolve. One tone per kind of token; comments and
146
+ * punctuation recede to the greys; added and removed diff lines take the status colours. Each is
147
+ * mixed 18% toward the ink, so 13px code clears 4.5:1 on the card in light and dark alike.
148
+ * Override any of them on a block or an ancestor.
149
+ */
150
+ @layer components {
151
+ :is([data-slot="code-block"], pre.shiki) {
152
+ --code-foreground: var(--foreground);
153
+ --code-comment: color-mix(in oklab, var(--muted-foreground) 82%, var(--foreground));
154
+ --code-punctuation: var(--foreground-soft);
155
+ --code-keyword: color-mix(in oklab, var(--tone-violet) 82%, var(--foreground));
156
+ --code-string: color-mix(in oklab, var(--tone-lime) 82%, var(--foreground));
157
+ --code-string-expression: color-mix(in oklab, var(--tone-aqua) 82%, var(--foreground));
158
+ --code-constant: color-mix(in oklab, var(--tone-orange) 82%, var(--foreground));
159
+ --code-function: color-mix(in oklab, var(--tone-blue) 82%, var(--foreground));
160
+ --code-type: color-mix(in oklab, var(--tone-aqua) 82%, var(--foreground));
161
+ --code-tag: color-mix(in oklab, var(--tone-magenta) 82%, var(--foreground));
162
+ --code-attribute: color-mix(in oklab, var(--tone-blue) 82%, var(--foreground));
163
+ --code-inserted: color-mix(in oklab, var(--success) 82%, var(--foreground));
164
+ --code-deleted: color-mix(in oklab, var(--destructive) 82%, var(--foreground));
165
+ }
166
+ }
@@ -0,0 +1,214 @@
1
+ /* Graph — React Flow in the zon material. The base styles are in react-flow.css; this file is
2
+ the look: tokens for the canvas, the nodes' shapes, edges, labels, handles and the map, and
3
+ the highlight that lights a node's connections and dims the rest. */
4
+
5
+ @layer components {
6
+ [data-slot="graph"] .react-flow {
7
+ --xy-background-color: transparent;
8
+ --xy-background-pattern-dots-color: var(--field-edge);
9
+ --xy-background-pattern-lines-color: color-mix(in oklab, var(--border) 55%, transparent);
10
+ --xy-edge-stroke: var(--muted-foreground);
11
+ --xy-edge-stroke-selected: var(--foreground);
12
+ --xy-connectionline-stroke: var(--foreground);
13
+ --xy-connectionline-stroke-width: 1.5;
14
+ --xy-selection-background-color: color-mix(in oklab, var(--foreground) 4%, transparent);
15
+ --xy-selection-border: 1px dashed var(--control-focus);
16
+ --xy-minimap-background-color: var(--background);
17
+ --xy-minimap-mask-background-color: color-mix(in oklab, var(--background) 70%, transparent);
18
+ --xy-minimap-mask-stroke-color: var(--field-edge);
19
+ --xy-minimap-node-background-color: var(--field-edge);
20
+ color: var(--foreground);
21
+ font-family: var(--font-body);
22
+ }
23
+
24
+ /* ── Nodes ───────────────────────────────────────────────────────────────── */
25
+
26
+ [data-slot="graph"] .react-flow__node {
27
+ border-radius: var(--radius-button);
28
+ /* Focus and selection are drawn on the node's own shape (below), not this box. */
29
+ outline: none;
30
+ }
31
+ [data-slot="graph-node"],
32
+ [data-slot="graph-group"],
33
+ [data-slot="graph-edge-label"] {
34
+ transition: opacity var(--duration) var(--ease);
35
+ }
36
+ [data-slot="graph-node"][data-dim],
37
+ [data-slot="graph-edge-label"][data-dim] {
38
+ opacity: 0.26;
39
+ }
40
+
41
+ /* Selected, or reached with the keyboard: the 2px focus edge on what the node is. */
42
+ [data-slot="graph"] .react-flow__node:is(.selected, :focus-visible) > [data-slot="graph-node"]:is([data-kind="task"], [data-kind="entity"]),
43
+ [data-slot="graph"] .react-flow__node:is(.selected, :focus-visible) [data-slot="graph-shape"],
44
+ [data-slot="graph"] .react-flow__node:is(.selected, :focus-visible) [data-slot="graph-avatar"],
45
+ [data-slot="graph"] .react-flow__node:is(.selected, :focus-visible) > [data-slot="graph-group"] {
46
+ outline: 2px solid var(--control-focus);
47
+ outline-offset: 0;
48
+ }
49
+ [data-slot="graph"] .react-flow__node:is(.selected, :focus-visible) > [data-slot="graph-node"][data-kind="note"] {
50
+ outline: 2px solid var(--control-focus);
51
+ outline-offset: 4px;
52
+ }
53
+
54
+ /* Lit: the node the pointer or the selection is on. */
55
+ [data-slot="graph-node"][data-lit]:is([data-kind="task"], [data-kind="entity"]) {
56
+ border-color: var(--control-focus);
57
+ }
58
+
59
+ /* Events: circles. Start a thin ring, end a thick one, an intermediate event a double ring. */
60
+ [data-slot="graph-node"]:is([data-kind="start"], [data-kind="end"], [data-kind="event"]) [data-slot="graph-shape"] {
61
+ border-radius: 50%;
62
+ background: var(--background);
63
+ border: 1.5px solid var(--muted-foreground);
64
+ }
65
+ [data-slot="graph-node"][data-kind="end"] [data-slot="graph-shape"] {
66
+ border: 3.5px solid var(--foreground);
67
+ }
68
+ [data-slot="graph-node"][data-kind="event"] [data-slot="graph-shape"] {
69
+ box-shadow:
70
+ inset 0 0 0 2.5px var(--background),
71
+ inset 0 0 0 4px var(--muted-foreground);
72
+ }
73
+
74
+ /* Gateways: a diamond, its kind as a mono glyph (× exclusive, + parallel, ○ inclusive). */
75
+ [data-slot="graph-node"][data-kind="gateway"] [data-slot="graph-shape"] {
76
+ position: relative;
77
+ isolation: isolate;
78
+ border-radius: var(--radius-item);
79
+ }
80
+ [data-slot="graph-node"][data-kind="gateway"] [data-slot="graph-shape"]::before {
81
+ content: "";
82
+ position: absolute;
83
+ inset: 6px;
84
+ z-index: -1;
85
+ rotate: 45deg;
86
+ border-radius: var(--radius-checkbox);
87
+ background: var(--background);
88
+ border: 1.5px solid var(--muted-foreground);
89
+ }
90
+
91
+ /* An annotation: the BPMN text bracket, open to the right. */
92
+ [data-slot="graph-node"][data-kind="note"] {
93
+ position: relative;
94
+ }
95
+ [data-slot="graph-node"][data-kind="note"]::before {
96
+ content: "";
97
+ position: absolute;
98
+ inset: 0 auto 0 0;
99
+ width: 10px;
100
+ border: 1.5px solid var(--muted-foreground);
101
+ border-right: 0;
102
+ }
103
+
104
+ [data-slot="graph-avatar"] {
105
+ transition: outline-color var(--duration) var(--ease);
106
+ }
107
+
108
+ /* ── Handles: where a connection starts and lands. Shown only while editing. ── */
109
+
110
+ [data-slot="graph"] .react-flow__handle {
111
+ width: 9px;
112
+ height: 9px;
113
+ min-width: 0;
114
+ min-height: 0;
115
+ border-radius: 50%;
116
+ background: var(--background);
117
+ border: 1.5px solid var(--muted-foreground);
118
+ opacity: 0;
119
+ transition:
120
+ opacity var(--duration) var(--ease),
121
+ border-color var(--duration) var(--ease);
122
+ }
123
+ [data-slot="graph"]:not([data-editable]) .react-flow__handle {
124
+ pointer-events: none;
125
+ }
126
+ [data-slot="graph"][data-editable] .react-flow__node:is(:hover, .selected) .react-flow__handle,
127
+ [data-slot="graph"][data-editable] .react-flow__handle.connectingfrom,
128
+ [data-slot="graph"][data-editable] .react-flow__handle.connectingto {
129
+ opacity: 1;
130
+ }
131
+ [data-slot="graph"] .react-flow__handle:hover,
132
+ [data-slot="graph"] .react-flow__handle.valid {
133
+ border-color: var(--foreground);
134
+ }
135
+
136
+ /* ── Edges ───────────────────────────────────────────────────────────────── */
137
+
138
+ [data-slot="graph"] .zon-graph-edge {
139
+ stroke: var(--muted-foreground);
140
+ stroke-width: 1.25;
141
+ stroke-linecap: round;
142
+ transition:
143
+ stroke var(--duration) var(--ease),
144
+ stroke-width var(--duration) var(--ease),
145
+ opacity var(--duration) var(--ease);
146
+ }
147
+ [data-slot="graph"] .zon-graph-edge[data-kind="relation"] {
148
+ stroke: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
149
+ }
150
+ [data-slot="graph"] .zon-graph-edge[data-kind="message"] {
151
+ stroke-dasharray: 5 4;
152
+ }
153
+ [data-slot="graph"] .zon-graph-edge[data-kind="association"] {
154
+ stroke-dasharray: 1.5 4;
155
+ }
156
+ [data-slot="graph"] .zon-graph-edge[data-lit] {
157
+ stroke: var(--foreground);
158
+ stroke-width: 1.75;
159
+ }
160
+ [data-slot="graph"] .zon-graph-edge[data-dim] {
161
+ opacity: 0.18;
162
+ }
163
+ [data-slot="graph"] .react-flow__edge.animated .zon-graph-edge {
164
+ stroke-dasharray: 5 4;
165
+ animation: ep-graph-flow 0.6s linear infinite;
166
+ }
167
+ @keyframes ep-graph-flow {
168
+ to {
169
+ stroke-dashoffset: -9;
170
+ }
171
+ }
172
+ @media (prefers-reduced-motion: reduce) {
173
+ [data-slot="graph"] .react-flow__edge.animated .zon-graph-edge {
174
+ animation: none;
175
+ }
176
+ }
177
+ [data-slot="graph"] .react-flow__edge:focus-visible .zon-graph-edge {
178
+ stroke: var(--foreground);
179
+ stroke-width: 2;
180
+ }
181
+
182
+ .zon-graph-arrow[data-tone="rest"] {
183
+ fill: var(--muted-foreground);
184
+ }
185
+ .zon-graph-arrow[data-tone="lit"] {
186
+ fill: var(--foreground);
187
+ }
188
+
189
+ [data-slot="graph-edge-label"] {
190
+ padding: 3px 6px;
191
+ border-radius: var(--radius-checkbox);
192
+ background: var(--background);
193
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--border) 70%, transparent);
194
+ color: var(--muted-foreground);
195
+ font-family: var(--font-mono);
196
+ font-size: 11px;
197
+ line-height: 1;
198
+ white-space: nowrap;
199
+ }
200
+ [data-slot="graph-edge-label"][data-lit] {
201
+ color: var(--foreground);
202
+ box-shadow: 0 0 0 1px var(--control-focus);
203
+ }
204
+
205
+ /* ── The map ─────────────────────────────────────────────────────────────── */
206
+
207
+ [data-slot="graph"] .react-flow__minimap {
208
+ overflow: hidden;
209
+ border-radius: var(--radius-button);
210
+ box-shadow:
211
+ 0 0 0 1px var(--field-edge),
212
+ 0 4px 16px #0000000f;
213
+ }
214
+ }
@@ -0,0 +1,261 @@
1
+ /* inputs & dates components — owned by the inputs group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
2
+
3
+ @layer components {
4
+ /* ── Calendar: day cells ─────────────────────────────────────────────────────
5
+ * The cell (td) carries the range band; the button inside carries the state.
6
+ * States are data attributes set from react-day-picker's modifiers in calendar.tsx. */
7
+
8
+ [data-slot="calendar-day"] {
9
+ position: relative;
10
+ width: var(--control-h);
11
+ height: var(--control-h);
12
+ padding: 0;
13
+ text-align: center;
14
+ /* Read-only calendars (no `mode`) render the number straight into the cell. */
15
+ color: var(--foreground);
16
+ font-family: var(--font-body);
17
+ font-size: 14px;
18
+ line-height: 1;
19
+ font-variant-numeric: tabular-nums;
20
+ }
21
+ [data-slot="calendar-day"][data-outside] {
22
+ color: var(--muted-foreground);
23
+ }
24
+ [data-slot="calendar-day"][data-disabled]:not(:has(button)) {
25
+ color: var(--muted-foreground);
26
+ text-decoration-line: line-through;
27
+ opacity: 0.55;
28
+ }
29
+ [data-slot="calendar-day"][data-today]:not(:has(button))::after {
30
+ content: "";
31
+ position: absolute;
32
+ bottom: 5px;
33
+ left: 50%;
34
+ width: 4px;
35
+ height: 4px;
36
+ border-radius: 9999px;
37
+ background-color: currentColor;
38
+ translate: -50% 0;
39
+ }
40
+
41
+ /* The band behind a range's middle days: the hover fill, square, rounded only where a week
42
+ row starts or ends. */
43
+ [data-slot="calendar-day"][data-range-middle] {
44
+ background-color: var(--control-hover);
45
+ }
46
+ td[data-slot="calendar-day"][data-range-middle]:first-of-type {
47
+ border-start-start-radius: var(--radius-item);
48
+ border-end-start-radius: var(--radius-item);
49
+ }
50
+ td[data-slot="calendar-day"][data-range-middle]:last-of-type {
51
+ border-start-end-radius: var(--radius-item);
52
+ border-end-end-radius: var(--radius-item);
53
+ }
54
+
55
+ [data-slot="calendar-day-button"] {
56
+ position: relative;
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ width: 100%;
61
+ height: 100%;
62
+ border: 1px solid transparent;
63
+ border-radius: var(--radius-item);
64
+ background-color: transparent;
65
+ color: var(--foreground);
66
+ font-family: var(--font-body);
67
+ font-size: 14px;
68
+ line-height: 1;
69
+ font-variant-numeric: tabular-nums;
70
+ cursor: pointer;
71
+ transition:
72
+ background-color var(--duration) var(--ease),
73
+ color var(--duration) var(--ease),
74
+ box-shadow var(--duration) var(--ease);
75
+ }
76
+
77
+ /* Hover lifts the day like a row: the raised treatment on the hover fill. */
78
+ @media (hover: hover) {
79
+ [data-slot="calendar-day-button"]:not(
80
+ :disabled,
81
+ [aria-disabled="true"],
82
+ [data-selected-single],
83
+ [data-range-start],
84
+ [data-range-end]
85
+ ):hover {
86
+ color: var(--foreground);
87
+ background-color: var(--control-hover);
88
+ background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
89
+ box-shadow:
90
+ 0 0 0 1px var(--control-edge),
91
+ inset 0 1px 0 var(--control-highlight),
92
+ inset 0 0 0 1px var(--control-inner-edge);
93
+ }
94
+ }
95
+
96
+ [data-slot="calendar-day-button"]:focus-visible {
97
+ z-index: 2;
98
+ outline: 2px solid var(--control-focus);
99
+ outline-offset: 0;
100
+ }
101
+
102
+ /* Today: a small dot under the number, in the day's own ink. */
103
+ [data-slot="calendar-day-button"][data-today]::after {
104
+ content: "";
105
+ position: absolute;
106
+ bottom: 5px;
107
+ left: 50%;
108
+ width: 4px;
109
+ height: 4px;
110
+ border-radius: 9999px;
111
+ background-color: currentColor;
112
+ translate: -50% 0;
113
+ }
114
+
115
+ /* Outside days are muted; disabled days are muted and struck through. */
116
+ [data-slot="calendar-day-button"][data-outside] {
117
+ color: var(--muted-foreground);
118
+ }
119
+ [data-slot="calendar-day-button"][data-disabled] {
120
+ color: var(--muted-foreground);
121
+ text-decoration-line: line-through;
122
+ text-decoration-color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
123
+ opacity: 0.55;
124
+ cursor: not-allowed;
125
+ }
126
+
127
+ /* Range middle: on the band, inner corners collapsed. */
128
+ [data-slot="calendar-day-button"][data-range-middle] {
129
+ border-radius: 0;
130
+ color: var(--foreground);
131
+ }
132
+ [data-slot="calendar-day-button"][data-range-middle][data-outside] {
133
+ color: var(--muted-foreground);
134
+ }
135
+ td:first-of-type > [data-slot="calendar-day-button"][data-range-middle] {
136
+ border-start-start-radius: var(--radius-item);
137
+ border-end-start-radius: var(--radius-item);
138
+ }
139
+ td:last-of-type > [data-slot="calendar-day-button"][data-range-middle] {
140
+ border-start-end-radius: var(--radius-item);
141
+ border-end-end-radius: var(--radius-item);
142
+ }
143
+
144
+ /* Selected (single, multiple, and a range's two ends): the layered primary fill. */
145
+ [data-slot="calendar-day-button"][data-selected-single],
146
+ [data-slot="calendar-day-button"][data-range-start],
147
+ [data-slot="calendar-day-button"][data-range-end] {
148
+ z-index: 1;
149
+ color: var(--primary-text);
150
+ text-shadow: var(--primary-text-shadow);
151
+ background-color: var(--primary-fill);
152
+ background-image: linear-gradient(#ffffff0f, transparent 55%);
153
+ box-shadow: var(--primary-shadow);
154
+ text-decoration-line: none;
155
+ opacity: 1;
156
+ }
157
+ @media (hover: hover) {
158
+ [data-slot="calendar-day-button"]:is([data-selected-single], [data-range-start], [data-range-end]):hover {
159
+ background-color: var(--primary-fill-hover);
160
+ }
161
+ }
162
+
163
+ /* A range's ends collapse the corners that face the band, except at the edge of a week. */
164
+ td:not(:last-of-type) > [data-slot="calendar-day-button"][data-range-start]:not([data-range-end]) {
165
+ border-start-end-radius: 0;
166
+ border-end-end-radius: 0;
167
+ }
168
+ td:not(:first-of-type) > [data-slot="calendar-day-button"][data-range-end]:not([data-range-start]) {
169
+ border-start-start-radius: 0;
170
+ border-end-start-radius: 0;
171
+ }
172
+
173
+ /* ── NumberField and TimeField: the digit roll ─────────────────────────────
174
+ * On a step (steppers, arrow keys, wheel) the digits that changed roll: up, the new digit
175
+ * rises from below and the old one leaves upward; down, the reverse (--roll-dir 1 / -1).
176
+ * A digit that appears or disappears (9 → 10) grows or shrinks its 1ch slot, so the centred
177
+ * value never jumps. Mono, tabular digits keep every slot the same width as the input's.
178
+ * Drawn by DigitRoll (lib/digit-roll.tsx): over a NumberField's input, or a TimeField segment. */
179
+
180
+ :is([data-slot="number-field-roll"], [data-slot="time-field-roll"]) [data-roll] {
181
+ display: inline-grid;
182
+ width: 1ch;
183
+ height: 1lh;
184
+ overflow: hidden;
185
+
186
+ & > * {
187
+ grid-area: 1 / 1;
188
+ text-align: center;
189
+ }
190
+ & > [data-old] {
191
+ animation: ep-roll-out var(--duration) var(--ease) both;
192
+ }
193
+ & > [data-new] {
194
+ animation: ep-roll-in var(--duration) var(--ease) both;
195
+ }
196
+ &[data-grow] {
197
+ animation: ep-roll-grow var(--duration) var(--ease) both;
198
+ }
199
+ &[data-shrink] {
200
+ animation: ep-roll-shrink var(--duration) var(--ease) both;
201
+ }
202
+ }
203
+
204
+ @keyframes ep-roll-out {
205
+ to {
206
+ translate: 0 calc(var(--roll-dir) * -100%);
207
+ opacity: 0;
208
+ }
209
+ }
210
+ @keyframes ep-roll-in {
211
+ from {
212
+ translate: 0 calc(var(--roll-dir) * 100%);
213
+ opacity: 0;
214
+ }
215
+ }
216
+ @keyframes ep-roll-grow {
217
+ from {
218
+ width: 0;
219
+ }
220
+ }
221
+ @keyframes ep-roll-shrink {
222
+ to {
223
+ width: 0;
224
+ }
225
+ }
226
+ }
227
+
228
+ /* ── Forced colours: the chosen days ─────────────────────────────────────────
229
+ * A contrast theme (Windows) replaces fills with the page colour and drops shadows, which is how
230
+ * a calendar draws its selected day, a range and today's dot, and a DatePicker its current preset.
231
+ * Those take Highlight instead, as the selected rows of a list do; the other days keep the forced
232
+ * colours (and so their focus ring), and today's dot keeps the day's own ink. Unlayered, to win
233
+ * over the day states above whatever their specificity. */
234
+ @media (forced-colors: active) {
235
+ [data-slot="calendar-day-button"]:is(
236
+ [data-selected-single],
237
+ [data-range-start],
238
+ [data-range-middle],
239
+ [data-range-end]
240
+ ),
241
+ [data-slot="date-picker-preset"][data-current] {
242
+ forced-color-adjust: none;
243
+ color: HighlightText;
244
+ background: Highlight;
245
+ border-color: Highlight;
246
+ box-shadow: none;
247
+ text-shadow: none;
248
+ }
249
+ [data-slot="calendar-day-button"]:is(
250
+ [data-selected-single],
251
+ [data-range-start],
252
+ [data-range-middle],
253
+ [data-range-end]
254
+ ):focus-visible,
255
+ [data-slot="date-picker-preset"][data-current]:focus-visible {
256
+ outline-color: CanvasText;
257
+ }
258
+ :is([data-slot="calendar-day"], [data-slot="calendar-day-button"])[data-today]::after {
259
+ forced-color-adjust: none;
260
+ }
261
+ }