@ngrok/mantle 0.94.0 → 0.95.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 (615) hide show
  1. package/README.md +11 -2
  2. package/dist/CaretDown-MgTrjdYK.js +1 -0
  3. package/dist/CaretLeft-CZIqCyEF.js +1 -0
  4. package/dist/CaretRight-BKz4JHCI.js +1 -0
  5. package/dist/Check-C5a1hX4x.js +1 -0
  6. package/dist/CheckCircle-Bi4tSau6.js +1 -0
  7. package/dist/CircleNotch-BKE0NAIr.js +1 -0
  8. package/dist/Copy-BYWMO6PW.js +1 -0
  9. package/dist/Desktop-BaSlSeg2.js +1 -0
  10. package/dist/Eye-C38LQkZ_.js +1 -0
  11. package/dist/EyeClosed-BvOq-W8o.js +1 -0
  12. package/dist/FileText-CqAezJDn.js +1 -0
  13. package/dist/Info-weHV1B4q.js +1 -0
  14. package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
  15. package/dist/Megaphone-Cir2KHXa.js +1 -0
  16. package/dist/Minus-KBzmC4_K.js +1 -0
  17. package/dist/Moon-hn_oivM6.js +1 -0
  18. package/dist/Plus-D90-H9Ei.js +1 -0
  19. package/dist/Question-BhvEyO0K.js +1 -0
  20. package/dist/SidebarSimple-BXKgNz4l.js +1 -0
  21. package/dist/SortAscending-CEk4rgu_.js +1 -0
  22. package/dist/SortDescending-C0cE7hpU.js +1 -0
  23. package/dist/Sun-C3SaXdLl.js +1 -0
  24. package/dist/Terminal-aKZ6Y9Lk.js +1 -0
  25. package/dist/Warning-DTwF27_O.js +1 -0
  26. package/dist/WarningDiamond-BwpdVJ34.js +1 -0
  27. package/dist/X-BPGjP4b6.js +1 -0
  28. package/dist/accordion-BmDXs1-q.js +1 -0
  29. package/dist/accordion-NpJz3Uer.js +1 -0
  30. package/dist/accordion-parts.d.ts +268 -0
  31. package/dist/accordion-parts.js +1 -0
  32. package/dist/accordion.d.ts +8 -359
  33. package/dist/accordion.js +1 -1
  34. package/dist/agent.json +464 -92
  35. package/dist/alert-DCGSrVTa.js +1 -0
  36. package/dist/{alert-HffaioZM.d.ts → alert-Dz541Ve9.d.ts} +10 -196
  37. package/dist/alert-center-Bb39SBqJ.js +1 -0
  38. package/dist/alert-center-CGBbqO-y.d.ts +391 -0
  39. package/dist/alert-center-parts.d.ts +6 -0
  40. package/dist/alert-center-parts.js +1 -0
  41. package/dist/alert-center.d.ts +9 -590
  42. package/dist/alert-center.js +1 -1
  43. package/dist/alert-dialog-CtKnvX5N.js +1 -0
  44. package/dist/alert-dialog-parts.d.ts +569 -0
  45. package/dist/alert-dialog-parts.js +1 -0
  46. package/dist/alert-dialog.d.ts +3 -1054
  47. package/dist/alert-dialog.js +1 -1
  48. package/dist/alert-parts.d.ts +6 -0
  49. package/dist/alert-parts.js +1 -0
  50. package/dist/alert.d.ts +43 -1
  51. package/dist/alert.js +1 -1
  52. package/dist/anchor-DW5_Gb-1.js +1 -0
  53. package/dist/anchor.d.ts +6 -6
  54. package/dist/anchor.js +1 -1
  55. package/dist/app-layout-D7kwv9su.js +1 -0
  56. package/dist/app-layout-k6UjK30v.d.ts +1167 -0
  57. package/dist/app-layout-parts.d.ts +6 -0
  58. package/dist/app-layout-parts.js +1 -0
  59. package/dist/app-layout.d.ts +98 -1883
  60. package/dist/app-layout.js +1 -1
  61. package/dist/area-chart-C6lKu7Un.d.ts +390 -0
  62. package/dist/area-chart-SAaGaZFD.js +1 -0
  63. package/dist/area-chart-parts.d.ts +6 -0
  64. package/dist/area-chart-parts.js +1 -0
  65. package/dist/area-chart.d.ts +6 -581
  66. package/dist/area-chart.js +1 -1
  67. package/dist/avatar-BMZ81f_5.js +1 -0
  68. package/dist/avatar-Ti8GKSnS.d.ts +201 -0
  69. package/dist/avatar-parts.d.ts +6 -0
  70. package/dist/avatar-parts.js +1 -0
  71. package/dist/avatar.d.ts +5 -277
  72. package/dist/avatar.js +1 -1
  73. package/dist/badge.d.ts +10 -9
  74. package/dist/badge.js +1 -1
  75. package/dist/bar-chart-C0Ra1ZpG.js +1 -0
  76. package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
  77. package/dist/bar-chart-parts.d.ts +6 -0
  78. package/dist/bar-chart-parts.js +1 -0
  79. package/dist/bar-chart.d.ts +4 -583
  80. package/dist/bar-chart.js +1 -1
  81. package/dist/behaviors-BW8RjkkS.js +1 -0
  82. package/dist/behaviors-BbOq5SFv.js +1 -0
  83. package/dist/behaviors-C7R7ZIoN.js +1 -0
  84. package/dist/behaviors-CHF5PT3C.js +1 -0
  85. package/dist/behaviors-CSZQSSfL.js +1 -0
  86. package/dist/behaviors-CcjvGa0d.js +1 -0
  87. package/dist/behaviors-CnarRd47.js +1 -0
  88. package/dist/behaviors-CoNi6Rd-.js +1 -0
  89. package/dist/behaviors-D9VIyDk1.js +1 -0
  90. package/dist/behaviors-DHVC34f9.js +1 -0
  91. package/dist/behaviors-DkCIgQ8w.js +1 -0
  92. package/dist/behaviors-Mkc_HjTB.js +1 -0
  93. package/dist/breadcrumb-CAzq3SlR.js +1 -0
  94. package/dist/breadcrumb-parts.d.ts +287 -0
  95. package/dist/breadcrumb-parts.js +1 -0
  96. package/dist/breadcrumb.d.ts +65 -555
  97. package/dist/breadcrumb.js +1 -1
  98. package/dist/browser-only-CokCtIvB.js +1 -0
  99. package/dist/browser-only-ymFoM3Ya.js +1 -0
  100. package/dist/browser-only.js +1 -1
  101. package/dist/button-Bqm7U0OC.js +1 -0
  102. package/dist/{button-K0pKc3GN.d.ts → button-C6-6TecO.d.ts} +5 -5
  103. package/dist/{button-BGwOPjGV.d.ts → button-CL17Dxza.d.ts} +28 -25
  104. package/dist/button-CRCiBPEF.js +1 -0
  105. package/dist/{button-Cgf2IcEC.d.ts → button-CRMoQyum.d.ts} +27 -28
  106. package/dist/button-Cr2iY2cI.js +1 -0
  107. package/dist/button-DhoE-BbZ.js +1 -0
  108. package/dist/button.d.ts +3 -3
  109. package/dist/button.js +1 -1
  110. package/dist/calendar-DQtapcSC.js +1 -0
  111. package/dist/calendar.d.ts +1 -1
  112. package/dist/calendar.js +1 -1
  113. package/dist/card-DbtGVKyo.d.ts +129 -0
  114. package/dist/card-parts.d.ts +6 -0
  115. package/dist/card-parts.js +1 -0
  116. package/dist/card.d.ts +3 -228
  117. package/dist/card.js +1 -1
  118. package/dist/centered-layout-parts.d.ts +169 -0
  119. package/dist/centered-layout-parts.js +1 -0
  120. package/dist/centered-layout.d.ts +3 -300
  121. package/dist/centered-layout.js +1 -1
  122. package/dist/chart-B0n2xyYi.js +1 -0
  123. package/dist/chart-BPsMxs1f.js +1 -0
  124. package/dist/chart-BmZoTjRu.js +1 -0
  125. package/dist/chart-Bybyh2Dc.js +1 -0
  126. package/dist/chart-CACfdGlp.d.ts +86 -0
  127. package/dist/chart-CBQJUTIX.js +1 -0
  128. package/dist/chart-Cb0MBaZx.js +1 -0
  129. package/dist/chart-CmMcfDmv.js +1 -0
  130. package/dist/chart-Dlp9FidW.js +2 -0
  131. package/dist/{chart-jitNqimS.d.ts → chart-XvStK-oM.d.ts} +23 -99
  132. package/dist/chart-wTwYzUMJ.js +1 -0
  133. package/dist/checkbox-DH7WFfuR.js +1 -0
  134. package/dist/checkbox-DsVXD96X.js +1 -0
  135. package/dist/checkbox-TX74-Iep.js +1 -0
  136. package/dist/checkbox-group-parts.d.ts +197 -0
  137. package/dist/checkbox-group-parts.js +1 -0
  138. package/dist/checkbox.d.ts +60 -9
  139. package/dist/checkbox.js +1 -1
  140. package/dist/choice-BekuLm-b.d.ts +217 -0
  141. package/dist/choice-DGI8VNR9.d.ts +1 -0
  142. package/dist/choice-PDT386cc.js +1 -0
  143. package/dist/choice-parts.d.ts +7 -0
  144. package/dist/choice-parts.js +1 -0
  145. package/dist/choice.d.ts +63 -1
  146. package/dist/choice.js +1 -1
  147. package/dist/code-UKPv6LVP.js +1 -0
  148. package/dist/{code-block-W3kWPxCJ.js → code-block-B-xD4_RW.js} +1 -1
  149. package/dist/code-block-B7XPzZnp.js +1 -0
  150. package/dist/code-block-BXXceNVo.js +1 -0
  151. package/dist/code-block-C7uzLs8t.js +1 -0
  152. package/dist/{code-block-BGdV4Yty.d.ts → code-block-Cs1Lcmdr.d.ts} +82 -253
  153. package/dist/code-block-Erv7wuWW.d.ts +173 -0
  154. package/dist/code-block-parts.d.ts +380 -0
  155. package/dist/code-block-parts.js +1 -0
  156. package/dist/code-block.d.ts +66 -693
  157. package/dist/code-block.js +6 -6
  158. package/dist/code-block_highlight-utils.d.ts +2 -1
  159. package/dist/code-block_highlight-utils.js +1 -1
  160. package/dist/code.d.ts +4 -4
  161. package/dist/code.js +1 -1
  162. package/dist/combobox-6LXe1cLx.js +1 -0
  163. package/dist/combobox-parts.d.ts +303 -0
  164. package/dist/combobox-parts.js +1 -0
  165. package/dist/combobox.d.ts +5 -468
  166. package/dist/combobox.js +1 -1
  167. package/dist/command-B8L-zjGt.js +1 -0
  168. package/dist/command-CCMWCjAK.js +1 -0
  169. package/dist/command-VKj84zAX.d.ts +859 -0
  170. package/dist/command-cbgO9CiG.js +1 -0
  171. package/dist/command-parts.d.ts +6 -0
  172. package/dist/command-parts.js +1 -0
  173. package/dist/command.d.ts +91 -1135
  174. package/dist/command.js +1 -1
  175. package/dist/compose-refs-BdRUneoc.js +1 -0
  176. package/dist/compose-refs-Ce1vWUz0.js +1 -0
  177. package/dist/cx-CfAFHj5_.js +73 -0
  178. package/dist/cx-DhYnQ07J.js +1 -0
  179. package/dist/cx.d.ts +23 -17
  180. package/dist/cx.js +1 -1
  181. package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
  182. package/dist/data-table-C-FgaN3_.js +1 -0
  183. package/dist/data-table-Cw9dUo1w.js +1 -0
  184. package/dist/data-table-CwqrMtp0.js +1 -0
  185. package/dist/data-table-GUbt8mzo.d.ts +38 -0
  186. package/dist/data-table-parts.d.ts +763 -0
  187. package/dist/data-table-parts.js +1 -0
  188. package/dist/data-table.d.ts +21 -1217
  189. package/dist/data-table.js +1 -1
  190. package/dist/description-list-CjcKOOnr.d.ts +110 -0
  191. package/dist/description-list-parts.d.ts +6 -0
  192. package/dist/description-list-parts.js +1 -0
  193. package/dist/description-list.d.ts +3 -183
  194. package/dist/description-list.js +1 -1
  195. package/dist/dialog-4Ed3U7hz.js +1 -0
  196. package/dist/dialog-BDb_obii.d.ts +166 -0
  197. package/dist/dialog-BaR9D58J.js +1 -0
  198. package/dist/dialog-BkNxAcol.d.ts +467 -0
  199. package/dist/dialog-DSYuhFD5.js +1 -0
  200. package/dist/dialog-fXMCxM9W.js +1 -0
  201. package/dist/dialog-parts.d.ts +6 -0
  202. package/dist/dialog-parts.js +1 -0
  203. package/dist/dialog.d.ts +88 -2
  204. package/dist/dialog.js +1 -1
  205. package/dist/dropdown-menu-BuluRn0Z.js +1 -0
  206. package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
  207. package/dist/dropdown-menu-parts.d.ts +6 -0
  208. package/dist/dropdown-menu-parts.js +1 -0
  209. package/dist/dropdown-menu.d.ts +57 -1
  210. package/dist/dropdown-menu.js +1 -1
  211. package/dist/empty-parts.d.ts +120 -0
  212. package/dist/empty-parts.js +1 -0
  213. package/dist/empty.d.ts +2 -216
  214. package/dist/empty.js +1 -1
  215. package/dist/field-BRYypbjO.js +1 -0
  216. package/dist/field-BVMx7HoG.js +1 -0
  217. package/dist/field-BwCq1b9R.js +1 -0
  218. package/dist/field-CYAaNexp.js +1 -0
  219. package/dist/field-DRHAcM1s.js +1 -0
  220. package/dist/field-parts.d.ts +767 -0
  221. package/dist/field-parts.js +1 -0
  222. package/dist/field.d.ts +21 -1201
  223. package/dist/field.js +1 -1
  224. package/dist/flag.d.ts +3 -3
  225. package/dist/flag.js +1 -1
  226. package/dist/float-C_vwTtzU.js +1 -0
  227. package/dist/float-JmSzKDHd.js +1 -0
  228. package/dist/float-OhVY3cf4.js +1 -0
  229. package/dist/hooks-B-Cd15iL.js +1 -0
  230. package/dist/hooks-BP_uqBsI.js +1 -0
  231. package/dist/hooks-BeLOGKwE.js +1 -0
  232. package/dist/hooks-BsOjpTgs.js +1 -0
  233. package/dist/hooks-BybaGF7O.js +1 -0
  234. package/dist/hooks-C9b-2wGy.js +1 -0
  235. package/dist/hooks-CMmpICCH.js +1 -0
  236. package/dist/hooks-CUYIUcp6.js +1 -0
  237. package/dist/hooks-DKbOd_pQ.js +1 -0
  238. package/dist/hooks-DejuqCNF.js +1 -0
  239. package/dist/hooks-GsDfo7Zl.js +1 -0
  240. package/dist/hooks-PsYFJkz2.js +1 -0
  241. package/dist/hooks-lDz_S9UG.js +1 -0
  242. package/dist/hooks.d.ts +126 -17
  243. package/dist/hooks.js +1 -1
  244. package/dist/hover-card-BEC5EQiH.js +1 -0
  245. package/dist/hover-card-parts.d.ts +160 -0
  246. package/dist/hover-card-parts.js +1 -0
  247. package/dist/hover-card.d.ts +9 -281
  248. package/dist/hover-card.js +1 -1
  249. package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
  250. package/dist/icon-0RoVrpGj.js +1 -0
  251. package/dist/icon-BSGMvJ0W.js +1 -0
  252. package/dist/icon-DIiKxRTh.js +1 -0
  253. package/dist/{icon-DXDyhy2N.d.ts → icon-Dqn_LLrR.d.ts} +2 -2
  254. package/dist/{icon-NYvyyRMG.d.ts → icon-KTcDR4--.d.ts} +2 -2
  255. package/dist/icon.d.ts +3 -3
  256. package/dist/icon.js +1 -1
  257. package/dist/icons-CVgj9Whd.js +1 -0
  258. package/dist/icons-D_4cZaL1.js +1 -0
  259. package/dist/icons-DucrvIOa.js +1 -0
  260. package/dist/icons.d.ts +2 -2
  261. package/dist/icons.js +1 -1
  262. package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
  263. package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
  264. package/dist/input-83xaPZWK.js +1 -0
  265. package/dist/input-B78ah4AB.js +1 -0
  266. package/dist/{input-q8o5uMhW.d.ts → input-Bvpu3ruQ.d.ts} +2 -2
  267. package/dist/input.d.ts +5 -5
  268. package/dist/input.js +1 -1
  269. package/dist/kbd-Bz_Rbpv8.js +1 -0
  270. package/dist/kbd.d.ts +5 -5
  271. package/dist/kbd.js +1 -1
  272. package/dist/{label-r2sJcSQ4.d.ts → label-DZpKu3Pu.d.ts} +8 -8
  273. package/dist/label-DmkAp9xI.js +1 -0
  274. package/dist/label.d.ts +1 -1
  275. package/dist/label.js +1 -1
  276. package/dist/layer-container-DDOZJ0fn.js +1 -0
  277. package/dist/layer-container.d.ts +11 -3
  278. package/dist/layer-container.js +1 -1
  279. package/dist/line-chart-CBL7eCqF.js +1 -0
  280. package/dist/line-chart-CIDFDkyb.d.ts +380 -0
  281. package/dist/line-chart-parts.d.ts +6 -0
  282. package/dist/line-chart-parts.js +1 -0
  283. package/dist/line-chart.d.ts +5 -569
  284. package/dist/line-chart.js +1 -1
  285. package/dist/list-CC3Pi__V.js +1 -0
  286. package/dist/list-Cx4KNfgC.d.ts +286 -0
  287. package/dist/list-FiFQJ0BU.js +1 -0
  288. package/dist/list-parts.d.ts +6 -0
  289. package/dist/list-parts.js +1 -0
  290. package/dist/list.d.ts +9 -406
  291. package/dist/list.js +1 -1
  292. package/dist/live-region-78gbKwlB.js +1 -0
  293. package/dist/live-region.d.ts +2 -2
  294. package/dist/live-region.js +1 -1
  295. package/dist/llms.txt +50 -26
  296. package/dist/main-9d96oUPG.js +1 -0
  297. package/dist/main.d.ts +1 -1
  298. package/dist/main.js +1 -1
  299. package/dist/mantle.css +1304 -910
  300. package/dist/media-object-parts.d.ts +65 -0
  301. package/dist/media-object-parts.js +1 -0
  302. package/dist/media-object.d.ts +5 -121
  303. package/dist/media-object.js +1 -1
  304. package/dist/migrations/0017-select-owned-behavior.yml +117 -0
  305. package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
  306. package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
  307. package/dist/migrations/0020-native-floats.yml +823 -0
  308. package/dist/migrations/0021-native-radio-group.yml +397 -0
  309. package/dist/migrations/0024-command-owned-behavior.yml +66 -0
  310. package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
  311. package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
  312. package/dist/migrations/0030-between-variant.yml +1954 -0
  313. package/dist/multi-select-parts.d.ts +487 -0
  314. package/dist/multi-select-parts.js +1 -0
  315. package/dist/multi-select-qC0BuYKD.js +1 -0
  316. package/dist/multi-select.d.ts +6 -803
  317. package/dist/multi-select.js +1 -1
  318. package/dist/otp-input-LPdkb_Fg.js +1 -0
  319. package/dist/otp-input-parts.d.ts +211 -0
  320. package/dist/otp-input-parts.js +1 -0
  321. package/dist/otp-input-zl6MVio6.js +1 -0
  322. package/dist/otp-input.d.ts +11 -252
  323. package/dist/otp-input.js +1 -1
  324. package/dist/overlay-prompt-BIzMQvx7.js +1 -0
  325. package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
  326. package/dist/overlay-prompt.d.ts +57 -0
  327. package/dist/overlay-prompt.js +1 -0
  328. package/dist/pagination-B2ESEbMI.d.ts +171 -0
  329. package/dist/pagination-CxaLKZcE.js +1 -0
  330. package/dist/pagination-Df1gTCN-.js +1 -0
  331. package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
  332. package/dist/pagination-cursor-pagination-parts.js +1 -0
  333. package/dist/pagination.d.ts +39 -304
  334. package/dist/pagination.js +1 -1
  335. package/dist/popover-DOd6zLvE.d.ts +226 -0
  336. package/dist/popover-DWvHbepV.js +1 -0
  337. package/dist/popover-parts.d.ts +6 -0
  338. package/dist/popover-parts.js +1 -0
  339. package/dist/popover.d.ts +60 -2
  340. package/dist/popover.js +1 -1
  341. package/dist/position-Cv3XpSur.d.ts +5 -0
  342. package/dist/progress-BE0c8GW8.js +1 -0
  343. package/dist/progress-ZhFJhv9u.js +1 -0
  344. package/dist/progress-bar-parts.d.ts +86 -0
  345. package/dist/progress-bar-parts.js +1 -0
  346. package/dist/progress-donut-parts.d.ts +94 -0
  347. package/dist/progress-donut-parts.js +1 -0
  348. package/dist/progress-mJQMhxMX.js +1 -0
  349. package/dist/progress-zDpT3TY4.d.ts +2 -0
  350. package/dist/progress.d.ts +4 -268
  351. package/dist/progress.js +1 -1
  352. package/dist/qr-code-0zh10iIE.d.ts +148 -0
  353. package/dist/qr-code-BOOubA9x.js +1 -0
  354. package/dist/qr-code-D8tBKtjP.js +1 -0
  355. package/dist/qr-code-DzJjumoc.d.ts +46 -0
  356. package/dist/qr-code-encoder.browser.d.ts +15 -0
  357. package/dist/qr-code-encoder.browser.js +1 -0
  358. package/dist/qr-code-encoder.d.ts +15 -0
  359. package/dist/qr-code-encoder.js +1 -0
  360. package/dist/qr-code-parts.d.ts +6 -0
  361. package/dist/qr-code-parts.js +1 -0
  362. package/dist/qr-code.d.ts +4 -227
  363. package/dist/qr-code.js +1 -1
  364. package/dist/query-C0e5VYNp.d.ts +440 -0
  365. package/dist/query-V5NifJGs.js +1 -0
  366. package/dist/query-filter.d.ts +6 -6
  367. package/dist/query-filter.js +1 -1
  368. package/dist/query-parts.d.ts +6 -0
  369. package/dist/query-parts.js +1 -0
  370. package/dist/query.d.ts +5 -634
  371. package/dist/query.js +1 -1
  372. package/dist/radio-group-B9jtIbV1.d.ts +39 -0
  373. package/dist/radio-group-BliblUqe.js +1 -0
  374. package/dist/radio-group-f3ThXQCx.js +1 -0
  375. package/dist/radio-group-parts.d.ts +249 -0
  376. package/dist/radio-group-parts.js +1 -0
  377. package/dist/radio-group-zA5DjlLg.js +1 -0
  378. package/dist/radio-group.d.ts +7 -399
  379. package/dist/radio-group.js +1 -1
  380. package/dist/sandbar-Cm2yMjEZ.js +1 -0
  381. package/dist/sandbar-DU4wpKRc.d.ts +345 -0
  382. package/dist/sandbar-parts.d.ts +6 -0
  383. package/dist/sandbar-parts.js +1 -0
  384. package/dist/sandbar.d.ts +6 -441
  385. package/dist/sandbar.js +1 -1
  386. package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
  387. package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
  388. package/dist/sandboxed-on-click.d.ts +1 -1
  389. package/dist/sandboxed-on-click.js +1 -1
  390. package/dist/scatter-plot-1vFxkpjT.js +1 -0
  391. package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
  392. package/dist/scatter-plot-parts.d.ts +6 -0
  393. package/dist/scatter-plot-parts.js +1 -0
  394. package/dist/scatter-plot.d.ts +5 -575
  395. package/dist/scatter-plot.js +1 -1
  396. package/dist/segmented-control-DuiDPKDZ.js +1 -0
  397. package/dist/segmented-control-parts.d.ts +72 -0
  398. package/dist/segmented-control-parts.js +1 -0
  399. package/dist/segmented-control.d.ts +4 -100
  400. package/dist/segmented-control.js +1 -1
  401. package/dist/select-08IEtypH.js +1 -0
  402. package/dist/select-DM2wWfOO.d.ts +478 -0
  403. package/dist/select-parts.d.ts +6 -0
  404. package/dist/select-parts.js +1 -0
  405. package/dist/select.d.ts +63 -1
  406. package/dist/select.js +1 -1
  407. package/dist/selectable-list-Ax5F2Gz1.js +1 -0
  408. package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
  409. package/dist/selectable-list-GcpbbRM1.js +1 -0
  410. package/dist/selectable-list-parts.d.ts +6 -0
  411. package/dist/selectable-list-parts.js +1 -0
  412. package/dist/selectable-list.d.ts +7 -647
  413. package/dist/selectable-list.js +1 -1
  414. package/dist/separator-BB1ohsjn.js +1 -0
  415. package/dist/{separator-QfH0ot5K.d.ts → separator-BzHNVyyv.d.ts} +2 -2
  416. package/dist/separator.d.ts +1 -1
  417. package/dist/separator.js +1 -1
  418. package/dist/sheet-5JgxVaWC.js +1 -0
  419. package/dist/sheet-parts.d.ts +732 -0
  420. package/dist/sheet-parts.js +1 -0
  421. package/dist/sheet-qYPi5MP8.js +1 -0
  422. package/dist/sheet.d.ts +11 -1208
  423. package/dist/sheet.js +1 -1
  424. package/dist/sidebar-CsC9fyPL.js +1 -0
  425. package/dist/sidebar-OBA7L42d.d.ts +1480 -0
  426. package/dist/sidebar-parts.d.ts +6 -0
  427. package/dist/sidebar-parts.js +1 -0
  428. package/dist/sidebar.d.ts +108 -2518
  429. package/dist/sidebar.js +1 -1
  430. package/dist/skeleton-DB0oQyAx.js +1 -0
  431. package/dist/skeleton.d.ts +5 -5
  432. package/dist/skeleton.js +1 -1
  433. package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
  434. package/dist/skip-to-main-link.d.ts +1 -1
  435. package/dist/skip-to-main-link.js +1 -1
  436. package/dist/slider-YlBozcPQ.js +1 -0
  437. package/dist/slider.d.ts +150 -16
  438. package/dist/slider.js +1 -1
  439. package/dist/slot-5ZSmrISx.d.ts +19 -0
  440. package/dist/slot-BxngGBJ2.js +1 -0
  441. package/dist/slot-CBcGhRdV.js +1 -0
  442. package/dist/slot-tuk2J6bY.d.ts +50 -0
  443. package/dist/slot.d.ts +1 -1
  444. package/dist/slot.js +1 -1
  445. package/dist/source-all.css +5 -1
  446. package/dist/split-button-DvJHD7cZ.js +1 -0
  447. package/dist/split-button-parts.d.ts +178 -0
  448. package/dist/split-button-parts.js +1 -0
  449. package/dist/split-button.d.ts +2 -314
  450. package/dist/split-button.js +1 -1
  451. package/dist/strata-parts.d.ts +256 -0
  452. package/dist/strata-parts.js +1 -0
  453. package/dist/strata.d.ts +6 -495
  454. package/dist/strata.js +1 -1
  455. package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
  456. package/dist/switch-DajWYrq3.js +1 -0
  457. package/dist/switch.d.ts +37 -5
  458. package/dist/switch.js +1 -1
  459. package/dist/{table-rWiVWEgB.d.ts → table-C2KnE83u.d.ts} +6 -445
  460. package/dist/table-DJHK48-8.js +1 -0
  461. package/dist/table-parts.d.ts +6 -0
  462. package/dist/table-parts.js +1 -0
  463. package/dist/table.d.ts +81 -1
  464. package/dist/table.js +1 -1
  465. package/dist/tabs-36-4SlRo.js +1 -0
  466. package/dist/tabs-CC_HAqr4.d.ts +193 -0
  467. package/dist/tabs-DayeszXP.js +1 -0
  468. package/dist/tabs-headless-tabs-parts.d.ts +6 -0
  469. package/dist/tabs-headless-tabs-parts.js +1 -0
  470. package/dist/tabs-parts.d.ts +237 -0
  471. package/dist/tabs-parts.js +1 -0
  472. package/dist/tabs.d.ts +43 -420
  473. package/dist/tabs.js +1 -1
  474. package/dist/text-area-D29JTaZg.js +1 -0
  475. package/dist/text-area.d.ts +2 -2
  476. package/dist/text-area.js +1 -1
  477. package/dist/theme-D6rP5Fy8.js +1 -0
  478. package/dist/theme-switcher-PKMCyJxT.js +1 -0
  479. package/dist/theme-switcher.d.ts +26 -22
  480. package/dist/theme-switcher.js +1 -1
  481. package/dist/theme-xoFnLba6.js +1 -0
  482. package/dist/theme.d.ts +84 -77
  483. package/dist/theme.js +1 -1
  484. package/dist/time-zone-CpWYKHdp.js +1 -0
  485. package/dist/time-zone-DZ4hUJ8K.js +1 -0
  486. package/dist/time-zone.d.ts +190 -0
  487. package/dist/time-zone.js +1 -0
  488. package/dist/toast-BJZ__22c.js +1 -0
  489. package/dist/toast-Cb9IN-6e.d.ts +185 -0
  490. package/dist/toast-DM_oq-3E.js +1 -0
  491. package/dist/toast-parts.d.ts +6 -0
  492. package/dist/toast-parts.js +1 -0
  493. package/dist/toast.d.ts +7 -256
  494. package/dist/toast.js +1 -1
  495. package/dist/tokens.dark.json +3026 -0
  496. package/dist/tokens.json +4867 -0
  497. package/dist/tokens.resolver.json +37 -0
  498. package/dist/tooltip-D4HZn19B.js +1 -0
  499. package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
  500. package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
  501. package/dist/tooltip-parts.d.ts +7 -0
  502. package/dist/tooltip-parts.js +1 -0
  503. package/dist/tooltip.d.ts +57 -1
  504. package/dist/tooltip.js +1 -1
  505. package/dist/truncated-text-B5u2AlNg.js +1 -0
  506. package/dist/truncated-text-BoXHP-cD.js +1 -0
  507. package/dist/truncated-text.d.ts +4 -6
  508. package/dist/truncated-text.js +1 -1
  509. package/dist/types.d.ts +1 -1
  510. package/dist/types.js +1 -1
  511. package/dist/typography-C2BmSH12.d.ts +148 -0
  512. package/dist/typography-parts.d.ts +6 -0
  513. package/dist/typography-parts.js +1 -0
  514. package/dist/typography.d.ts +52 -0
  515. package/dist/typography.js +1 -0
  516. package/dist/use-combobox-OhIEVioc.d.ts +23 -0
  517. package/dist/use-float-WEqqhXBE.d.ts +18 -0
  518. package/dist/use-listbox-D4uIonSN.d.ts +1 -0
  519. package/dist/utils-BN3rwHzz.js +1 -0
  520. package/dist/utils-BlLYcYik.js +1 -0
  521. package/dist/utils-C4astHJG.js +1 -0
  522. package/dist/utils-CPSttKPD.js +1 -0
  523. package/dist/{copy-to-clipboard-DInu78k_.js → utils-Dd83caRw.js} +1 -1
  524. package/dist/utils.d.ts +1 -1
  525. package/dist/utils.js +1 -1
  526. package/dist/visually-hidden.d.ts +2 -2
  527. package/dist/visually-hidden.js +1 -1
  528. package/dist/well.d.ts +2 -2
  529. package/dist/well.js +1 -1
  530. package/dist/world-map-BDd3N_Ap.d.ts +424 -0
  531. package/dist/world-map-D3c8Pq-h.js +1 -0
  532. package/dist/world-map-parts.d.ts +6 -0
  533. package/dist/world-map-parts.js +1 -0
  534. package/dist/world-map-t9U-IMKS.js +1 -0
  535. package/dist/world-map.d.ts +80 -0
  536. package/dist/world-map.js +1 -0
  537. package/package.json +30 -19
  538. package/dist/alert-CH99Rw-R.js +0 -1
  539. package/dist/anchor-CgcbWEUs.js +0 -1
  540. package/dist/browser-only-BTSrYWLj.js +0 -1
  541. package/dist/button-69InNC_m.js +0 -1
  542. package/dist/button-BQZ6eoD3.js +0 -1
  543. package/dist/button-BWGUuWnu.js +0 -1
  544. package/dist/button-Cu9e3SM7.js +0 -1
  545. package/dist/chart-BO9EwQ60.js +0 -1
  546. package/dist/chart-CE5Uaqz9.js +0 -1
  547. package/dist/chart-DCTGGlWL.js +0 -1
  548. package/dist/chart-DudCw24t.js +0 -2
  549. package/dist/checkbox-CS504fKk.js +0 -1
  550. package/dist/choice-BwfmbepO.d.ts +0 -405
  551. package/dist/choice-uyYccm0A.js +0 -1
  552. package/dist/clsx-DUGZgXfJ.js +0 -1
  553. package/dist/clsx-Dj3RWZ2l.js +0 -1
  554. package/dist/code-DUJzSl4K.js +0 -1
  555. package/dist/compose-refs-sFdxsL7k.js +0 -1
  556. package/dist/cx-CK7o_rVv.js +0 -1
  557. package/dist/dialog-B9JAGy_x.d.ts +0 -28
  558. package/dist/dialog-CsugEt2A.js +0 -1
  559. package/dist/dialog-DD5H3EH1.d.ts +0 -942
  560. package/dist/dropdown-menu-DHdgaw4P.js +0 -1
  561. package/dist/dropdown-menu-DmDxYPde.d.ts +0 -775
  562. package/dist/field-Bihblt8U.js +0 -1
  563. package/dist/field-CPvjazWN.js +0 -1
  564. package/dist/icon-BudQMD2S.js +0 -1
  565. package/dist/icon-kK0c-POG.js +0 -1
  566. package/dist/icons-4JA-SGfv.js +0 -1
  567. package/dist/icons-CDLz5lpI.js +0 -1
  568. package/dist/icons-CSwTVV2m.js +0 -1
  569. package/dist/input-DHovzBjS.js +0 -1
  570. package/dist/input-DQyN6gN0.js +0 -1
  571. package/dist/interactive-target-BXScNeOr.js +0 -1
  572. package/dist/kbd-CLHsJ99p.js +0 -1
  573. package/dist/label-DmDwzPD8.js +0 -1
  574. package/dist/layer-container-kEQiE4zV.js +0 -1
  575. package/dist/list-CO_yLdln.js +0 -1
  576. package/dist/live-region-DQ1QLv3L.js +0 -1
  577. package/dist/main-CC1L9IsH.js +0 -1
  578. package/dist/popover-BhTFutCz.d.ts +0 -1
  579. package/dist/popover-DxOqLKxy.js +0 -1
  580. package/dist/popover-lwkwWcRW.d.ts +0 -291
  581. package/dist/primitive-Dz9Al-us.js +0 -1
  582. package/dist/radio-group-jj2abc0t.js +0 -1
  583. package/dist/radio-group-sLz5AA9I.d.ts +0 -27
  584. package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
  585. package/dist/select-BqmpVJJT.d.ts +0 -890
  586. package/dist/select-C6Su0dU0.js +0 -1
  587. package/dist/separator-DfzxVutO.js +0 -1
  588. package/dist/shake-DL6WhMXM.js +0 -1
  589. package/dist/sheet-Bd2LIhzF.js +0 -1
  590. package/dist/skeleton-DBpI-ko5.js +0 -1
  591. package/dist/slot-D12N_fZJ.d.ts +0 -67
  592. package/dist/slot-DdYN1L1C.js +0 -1
  593. package/dist/table-CFHiDBW8.js +0 -1
  594. package/dist/theme-DdZgLvKH.js +0 -1
  595. package/dist/tooltip-CpK3XTor.d.ts +0 -283
  596. package/dist/tooltip-b6oiTaWq.js +0 -1
  597. package/dist/use-breakpoint--mo7kr9d.js +0 -1
  598. package/dist/use-callback-ref-BvVyI5K1.js +0 -1
  599. package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
  600. package/dist/use-inert-siblings-CNmNuS2h.js +0 -1
  601. package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
  602. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
  603. package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
  604. package/dist/use-matches-media-query-m860lols.js +0 -1
  605. package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
  606. package/dist/use-swipe-to-dismiss-i__cTF2v.js +0 -1
  607. /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
  608. /package/dist/{radio-group-HDVxTNPi.js → sidebar-HDVxTNPi.js} +0 -0
  609. /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
  610. /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
  611. /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
  612. /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
  613. /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
  614. /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
  615. /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
package/dist/mantle.css CHANGED
@@ -1,4 +1,20 @@
1
- @import "tailwindcss";
1
+ /*
2
+ No color-mix fallbacks: Tailwind adds a fallback and an `@supports` block for
3
+ each `color-mix()` that reads a `var()`. It adds none inside an `@supports`
4
+ block that tests `color-mix(` (tailwindlabs/tailwindcss#19450). Each such block
5
+ in this file tests `X or not X`, which is true in each browser, so it gates
6
+ nothing. The fallbacks apply only below mantle's browser floor (Tailwind v4:
7
+ Safari 16.4, Chrome 111, Firefox 128) and cost up to 1.9 KB gz (with every mantle class).
8
+
9
+ Why not `@import "tailwindcss" supports(…)`: an app that also imports
10
+ `tailwindcss` before this file would then get the preflight twice.
11
+ */
12
+ @layer theme, base, components, utilities;
13
+ @import "tailwindcss/theme.css" layer(theme)
14
+ supports((color: color-mix(in lab, red, red)) or (not (color: color-mix(in lab, red, red))));
15
+ @import "tailwindcss/preflight.css" layer(base);
16
+ @import "tailwindcss/utilities.css" layer(utilities)
17
+ supports((color: color-mix(in lab, red, red)) or (not (color: color-mix(in lab, red, red))));
2
18
  @import "tw-animate-css";
3
19
 
4
20
  /**
@@ -141,9 +157,87 @@ MARK: THEME
141
157
  --color-important-900: var(--color-purple-900);
142
158
  --color-important-950: var(--color-purple-950);
143
159
 
160
+ /* no ngrok surface uses stone; see decisions/2026-11-21-trim-unused-palettes.md */
161
+ --color-stone-*: initial;
162
+
144
163
  --spacing-em: 1em;
145
164
 
146
165
  --z-index-max: 2147483647;
166
+
167
+ /* The type roles behind the text-heading-*, text-paragraph-*, and font-heading classes. Their
168
+ steps and default sizes follow Tailwind's text-* scale. Why not `@theme inline`: each utility
169
+ reads the variable, so a site's later `@theme` block, or a class on one section, sets its own
170
+ scale. Why every step sets all three sub-keys: Tailwind emits a declaration only for a sub-key
171
+ that exists here. */
172
+ --font-heading: var(--font-sans);
173
+ --text-heading-xs: 0.75rem;
174
+ --text-heading-xs--line-height: calc(1 / 0.75);
175
+ --text-heading-xs--letter-spacing: normal;
176
+ --text-heading-xs--font-weight: 500;
177
+ --text-heading-sm: 0.875rem;
178
+ --text-heading-sm--line-height: calc(1.25 / 0.875);
179
+ --text-heading-sm--letter-spacing: normal;
180
+ --text-heading-sm--font-weight: 500;
181
+ --text-heading-base: 1rem;
182
+ --text-heading-base--line-height: calc(1.5 / 1);
183
+ --text-heading-base--letter-spacing: normal;
184
+ --text-heading-base--font-weight: 500;
185
+ --text-heading-lg: clamp(1.075rem, 0.525rem + 0.75vw, 1.125rem);
186
+ --text-heading-lg--line-height: calc(1.75 / 1.125);
187
+ --text-heading-lg--letter-spacing: normal;
188
+ --text-heading-lg--font-weight: 500;
189
+ --text-heading-xl: clamp(1.1rem, 0.8rem + 0.75vw, 1.25rem);
190
+ --text-heading-xl--line-height: calc(1.75 / 1.25);
191
+ --text-heading-xl--letter-spacing: normal;
192
+ --text-heading-xl--font-weight: 500;
193
+ --text-heading-2xl: clamp(1.2rem, 0.9rem + 0.75vw, 1.5rem);
194
+ --text-heading-2xl--line-height: calc(2 / 1.5);
195
+ --text-heading-2xl--letter-spacing: normal;
196
+ --text-heading-2xl--font-weight: 500;
197
+ --text-heading-3xl: clamp(1.5rem, 1.275rem + 0.75vw, 1.875rem);
198
+ --text-heading-3xl--line-height: calc(2.25 / 1.875);
199
+ --text-heading-3xl--letter-spacing: normal;
200
+ --text-heading-3xl--font-weight: 500;
201
+ --text-heading-4xl: clamp(1.8rem, 1.65rem + 0.75vw, 2.25rem);
202
+ --text-heading-4xl--line-height: calc(2.5 / 2.25);
203
+ --text-heading-4xl--letter-spacing: normal;
204
+ --text-heading-4xl--font-weight: 500;
205
+ --text-heading-5xl: clamp(2.4rem, 2.4rem + 0.75vw, 3rem);
206
+ --text-heading-5xl--line-height: 1;
207
+ --text-heading-5xl--letter-spacing: normal;
208
+ --text-heading-5xl--font-weight: 500;
209
+ --text-heading-6xl: clamp(3rem, 3.15rem + 0.75vw, 3.75rem);
210
+ --text-heading-6xl--line-height: 1;
211
+ --text-heading-6xl--letter-spacing: normal;
212
+ --text-heading-6xl--font-weight: 500;
213
+ --text-heading-7xl: clamp(3.6rem, 3.9rem + 0.75vw, 4.5rem);
214
+ --text-heading-7xl--line-height: 1;
215
+ --text-heading-7xl--letter-spacing: normal;
216
+ --text-heading-7xl--font-weight: 500;
217
+ --text-heading-8xl: clamp(4.8rem, 5.4rem + 0.75vw, 6rem);
218
+ --text-heading-8xl--line-height: 1;
219
+ --text-heading-8xl--letter-spacing: normal;
220
+ --text-heading-8xl--font-weight: 500;
221
+ --text-paragraph-xs: 0.75rem;
222
+ --text-paragraph-xs--line-height: 1.625;
223
+ --text-paragraph-xs--letter-spacing: normal;
224
+ --text-paragraph-xs--font-weight: 400;
225
+ --text-paragraph-sm: 0.875rem;
226
+ --text-paragraph-sm--line-height: 1.625;
227
+ --text-paragraph-sm--letter-spacing: normal;
228
+ --text-paragraph-sm--font-weight: 400;
229
+ --text-paragraph-base: 1rem;
230
+ --text-paragraph-base--line-height: 1.625;
231
+ --text-paragraph-base--letter-spacing: normal;
232
+ --text-paragraph-base--font-weight: 400;
233
+ --text-paragraph-lg: clamp(1.075rem, 0.525rem + 0.75vw, 1.125rem);
234
+ --text-paragraph-lg--line-height: 1.625;
235
+ --text-paragraph-lg--letter-spacing: normal;
236
+ --text-paragraph-lg--font-weight: 400;
237
+ --text-paragraph-xl: clamp(1.1rem, 0.8rem + 0.75vw, 1.25rem);
238
+ --text-paragraph-xl--line-height: 1.625;
239
+ --text-paragraph-xl--letter-spacing: normal;
240
+ --text-paragraph-xl--font-weight: 400;
147
241
  }
148
242
 
149
243
  /*
@@ -152,6 +246,21 @@ and the shadow utilities inline their values. Without `static`, `var(--shadow-md
152
246
  in a plain stylesheet (a third-party widget override) resolves to nothing.
153
247
  */
154
248
  @theme static {
249
+ /* gray is identical to neutral in both themes. Static for the same reason: the
250
+ light theme rule declared these on every page before, so a runtime-only read,
251
+ such as `style={{ color: "var(--color-gray-100)" }}`, kept working. */
252
+ --color-gray-50: var(--color-neutral-50);
253
+ --color-gray-100: var(--color-neutral-100);
254
+ --color-gray-200: var(--color-neutral-200);
255
+ --color-gray-300: var(--color-neutral-300);
256
+ --color-gray-400: var(--color-neutral-400);
257
+ --color-gray-500: var(--color-neutral-500);
258
+ --color-gray-600: var(--color-neutral-600);
259
+ --color-gray-700: var(--color-neutral-700);
260
+ --color-gray-800: var(--color-neutral-800);
261
+ --color-gray-900: var(--color-neutral-900);
262
+ --color-gray-950: var(--color-neutral-950);
263
+
155
264
  --shadow-sm: 0px 1px 2px 0 --alpha(var(--shadow-color) / var(--shadow-first-opacity));
156
265
  --shadow:
157
266
  0px 1px 2px -1px --alpha(var(--shadow-color) / var(--shadow-second-opacity)),
@@ -213,15 +322,15 @@ in a plain stylesheet (a third-party widget override) resolves to nothing.
213
322
  opacity: 1;
214
323
  }
215
324
  }
216
- /* The narrowest workspace row that holds the expanded rail (13rem), the content card at
325
+ /* The narrowest workspace row that holds the expanded sidebar (13rem), the content card at
217
326
  the side panel's floor (21rem), the panel itself (21rem), and the three gutters (1.5rem).
218
327
  Below it `AppLayout.SidePanel` floats over the card, so the page is never narrower than
219
328
  the panel beside it. The budget holds whatever the viewport is: the panel's default width
220
329
  reads the row (`24cqw`), so it sits at the floor in every row up to 87.5rem. */
221
330
  --container-side-panel-lane: 56.5rem;
222
- /* The same row with the icon rail (3.25rem) in place of the expanded one, or with no rail.
331
+ /* The same row with the collapsed sidebar (3.25rem) in place of the expanded one, or with no sidebar.
223
332
  `AppLayout.SidePanel` reads this threshold when the row holds no expanded `Sidebar.Nav`. */
224
- --container-side-panel-lane-icon-rail: 46.75rem;
333
+ --container-side-panel-lane-collapsed: 46.75rem;
225
334
  --font-sans: "Roobert", ui-sans-serif, system-ui, sans-serif;
226
335
  --font-mono:
227
336
  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
@@ -249,9 +358,20 @@ in a plain stylesheet (a third-party widget override) resolves to nothing.
249
358
  --text-mono--line-height: 1.25rem;
250
359
  --text-size-inherit: inherit;
251
360
 
252
- /* Semantic tokens - reference values defined in theme-specific :root blocks.
253
- Using @theme inline so Tailwind registers these for utility generation
254
- without emitting redundant CSS custom property declarations. */
361
+ /* The tooltip colors are literals, so no theme rule declares them. Keep them out of the
362
+ `reference` block below, so a plain stylesheet can still read them with `var()`. */
363
+ --background-color-tooltip: #000;
364
+ --text-color-tooltip: #fff;
365
+ }
366
+
367
+ /*
368
+ The semantic tokens. The theme blocks below set their values. This block only registers the
369
+ names, so that Tailwind makes the utilities (`bg-card`, `text-muted`, …).
370
+ Why `reference`: without it, Tailwind also writes each `--x: var(--x)` into `@layer theme`.
371
+ That declaration is a cycle, so it is invalid. On `:root` the theme blocks override it. On a
372
+ shadow `:host` it makes the token invalid, so the host does not inherit the page value.
373
+ */
374
+ @theme inline reference {
255
375
  --background-color-base: var(--background-color-base);
256
376
  --background-color-card: var(--background-color-card);
257
377
  --background-color-popover: var(--background-color-popover);
@@ -292,9 +412,6 @@ in a plain stylesheet (a third-party widget override) resolves to nothing.
292
412
  --text-color-placeholder: var(--text-color-placeholder);
293
413
  --text-color-on-filled: var(--text-color-on-filled);
294
414
 
295
- --background-color-tooltip: #000;
296
- --text-color-tooltip: #fff;
297
-
298
415
  --background-color-filled-neutral: var(--background-color-filled-neutral);
299
416
  --background-color-filled-accent: var(--background-color-filled-accent);
300
417
  --background-color-filled-danger: var(--background-color-filled-danger);
@@ -346,7 +463,9 @@ in a plain stylesheet (a third-party widget override) resolves to nothing.
346
463
  --color-chart-decorative: var(--color-chart-decorative);
347
464
  }
348
465
 
349
- /**
466
+ /* No color-mix fallbacks in this block: see the note at the top of this file. */
467
+ @supports (color: color-mix(in lab, red, red)) or (not (color: color-mix(in lab, red, red))) {
468
+ /**
350
469
  MARK: DARK DEFS
351
470
 
352
471
  The last selector applies this entire block to `.invert-theme` subtrees on
@@ -361,402 +480,324 @@ when this block was `mantle-dark.css` and `<MantleStyleSheets />` came before
361
480
  the app stylesheet in `<head>`. An app that `@import`ed `mantle-dark.css` after
362
481
  `mantle.css` got the other order; no single position matches both.
363
482
  */
364
- :root.dark,
365
- :root[data-theme="dark"]:not([data-applied-theme]),
366
- :root[data-applied-theme="dark"],
367
- :root:not(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
368
- .invert-theme {
369
- color-scheme: dark;
370
-
371
- /* Semantic colors: white becomes black and black becomes white in dark mode */
372
- --color-white: oklch(0% 0 0);
373
- --color-black: oklch(100% 0 0);
374
-
375
- /* Reverse all the color values */
376
- --color-neutral-50: oklch(18.2% 0 0);
377
- --color-neutral-100: oklch(20.5% 0 0);
378
- --color-neutral-200: oklch(26.9% 0 0);
379
- --color-neutral-300: oklch(37.1% 0 0);
380
- --color-neutral-400: oklch(43.9% 0 0);
381
- --color-neutral-500: oklch(55.6% 0 0);
382
- --color-neutral-600: oklch(70.8% 0 0);
383
- --color-neutral-700: oklch(87% 0 0);
384
- --color-neutral-800: oklch(92.2% 0 0);
385
- --color-neutral-900: oklch(97% 0 0);
386
- --color-neutral-950: oklch(98.5% 0 0);
387
-
388
- --color-gray-50: oklch(18.2% 0 0);
389
- --color-gray-100: oklch(20.5% 0 0);
390
- --color-gray-200: oklch(26.9% 0 0);
391
- --color-gray-300: oklch(37.1% 0 0);
392
- --color-gray-400: oklch(43.9% 0 0);
393
- --color-gray-500: oklch(55.6% 0 0);
394
- --color-gray-600: oklch(70.8% 0 0);
395
- --color-gray-700: oklch(87% 0 0);
396
- --color-gray-800: oklch(92.2% 0 0);
397
- --color-gray-900: oklch(97% 0 0);
398
- --color-gray-950: oklch(98.5% 0 0);
399
-
400
- --color-blue-50: oklch(26.6% 0.0958 273.2);
401
- --color-blue-100: oklch(35.3% 0.1525 269.7);
402
- --color-blue-200: oklch(39.8% 0.1951 268.1);
403
- --color-blue-300: oklch(45.4% 0.2358 266.7);
404
- --color-blue-400: oklch(52.1% 0.2298 266.7);
405
- --color-blue-500: oklch(58.4% 0.2069 265.3);
406
- --color-blue-600: oklch(69.6% 0.1539 262.9);
407
- --color-blue-700: oklch(77.9% 0.1078 262.4);
408
- --color-blue-800: oklch(86.7% 0.0622 264.2);
409
- --color-blue-900: oklch(92.7% 0.0337 265.8);
410
- --color-blue-950: oklch(96.8% 0.015 265.9);
411
-
412
- --color-red-50: oklch(25.8% 0.092 26.042);
413
- --color-red-100: oklch(39.6% 0.141 25.723);
414
- --color-red-200: oklch(44.4% 0.177 26.899);
415
- --color-red-300: oklch(50.5% 0.213 27.518);
416
- --color-red-400: oklch(57.7% 0.245 27.325);
417
- --color-red-500: oklch(63.7% 0.237 25.331);
418
- --color-red-600: oklch(70.4% 0.191 22.216);
419
- --color-red-700: oklch(80.8% 0.114 19.571);
420
- --color-red-800: oklch(88.5% 0.062 18.334);
421
- --color-red-900: oklch(93.6% 0.032 17.717);
422
- --color-red-950: oklch(97.1% 0.013 17.38);
423
-
424
- --color-orange-50: oklch(26.6% 0.079 36.259);
425
- --color-orange-100: oklch(40.8% 0.123 38.172);
426
- --color-orange-200: oklch(47% 0.157 37.304);
427
- --color-orange-300: oklch(55.3% 0.195 38.402);
428
- --color-orange-400: oklch(64.6% 0.222 41.116);
429
- --color-orange-500: oklch(70.5% 0.213 47.604);
430
- --color-orange-600: oklch(75% 0.183 55.934);
431
- --color-orange-700: oklch(83.7% 0.128 66.29);
432
- --color-orange-800: oklch(90.1% 0.076 70.697);
433
- --color-orange-900: oklch(95.4% 0.038 75.164);
434
- --color-orange-950: oklch(98% 0.016 73.684);
435
-
436
- --color-amber-50: oklch(27.9% 0.077 45.635);
437
- --color-amber-100: oklch(41.4% 0.112 45.904);
438
- --color-amber-200: oklch(47.3% 0.137 46.201);
439
- --color-amber-300: oklch(55.5% 0.163 48.998);
440
- --color-amber-400: oklch(66.6% 0.179 58.318);
441
- --color-amber-500: oklch(76.9% 0.188 70.08);
442
- --color-amber-600: oklch(82.8% 0.189 84.429);
443
- --color-amber-700: oklch(87.9% 0.169 91.605);
444
- --color-amber-800: oklch(92.4% 0.12 95.746);
445
- --color-amber-900: oklch(96.2% 0.059 95.617);
446
- --color-amber-950: oklch(98.7% 0.022 95.277);
447
-
448
- --color-yellow-50: oklch(28.6% 0.066 53.813);
449
- --color-yellow-100: oklch(42.1% 0.095 57.708);
450
- --color-yellow-200: oklch(47.6% 0.114 61.907);
451
- --color-yellow-300: oklch(55.4% 0.135 66.442);
452
- --color-yellow-400: oklch(68.1% 0.162 75.834);
453
- --color-yellow-500: oklch(79.5% 0.184 86.047);
454
- --color-yellow-600: oklch(85.2% 0.199 91.936);
455
- --color-yellow-700: oklch(90.5% 0.182 98.111);
456
- --color-yellow-800: oklch(94.5% 0.129 101.54);
457
- --color-yellow-900: oklch(97.3% 0.071 103.193);
458
- --color-yellow-950: oklch(98.7% 0.026 102.212);
459
-
460
- --color-lime-50: oklch(27.4% 0.072 132.109);
461
- --color-lime-100: oklch(40.5% 0.101 131.063);
462
- --color-lime-200: oklch(45.3% 0.124 130.933);
463
- --color-lime-300: oklch(53.2% 0.157 131.589);
464
- --color-lime-400: oklch(64.8% 0.2 131.684);
465
- --color-lime-500: oklch(76.8% 0.233 130.85);
466
- --color-lime-600: oklch(84.1% 0.238 128.85);
467
- --color-lime-700: oklch(89.7% 0.196 126.665);
468
- --color-lime-800: oklch(93.8% 0.127 124.321);
469
- --color-lime-900: oklch(96.7% 0.067 122.328);
470
- --color-lime-950: oklch(98.6% 0.031 120.757);
471
-
472
- --color-green-50: oklch(26.6% 0.065 152.934);
473
- --color-green-100: oklch(39.3% 0.095 152.535);
474
- --color-green-200: oklch(44.8% 0.119 151.328);
475
- --color-green-300: oklch(52.7% 0.154 150.069);
476
- --color-green-400: oklch(62.7% 0.194 149.214);
477
- --color-green-500: oklch(72.3% 0.219 149.579);
478
- --color-green-600: oklch(79.2% 0.209 151.711);
479
- --color-green-700: oklch(87.1% 0.15 154.449);
480
- --color-green-800: oklch(92.5% 0.084 155.995);
481
- --color-green-900: oklch(96.2% 0.044 156.743);
482
- --color-green-950: oklch(98.2% 0.018 155.826);
483
-
484
- --color-emerald-50: oklch(26.2% 0.051 172.552);
485
- --color-emerald-100: oklch(37.8% 0.077 168.94);
486
- --color-emerald-200: oklch(43.2% 0.095 166.913);
487
- --color-emerald-300: oklch(50.8% 0.118 165.612);
488
- --color-emerald-400: oklch(59.6% 0.145 163.225);
489
- --color-emerald-500: oklch(69.6% 0.17 162.48);
490
- --color-emerald-600: oklch(76.5% 0.177 163.223);
491
- --color-emerald-700: oklch(84.5% 0.143 164.978);
492
- --color-emerald-800: oklch(90.5% 0.093 164.15);
493
- --color-emerald-900: oklch(95% 0.052 163.051);
494
- --color-emerald-950: oklch(97.9% 0.021 166.113);
495
-
496
- --color-teal-50: oklch(27.7% 0.046 192.524);
497
- --color-teal-100: oklch(38.6% 0.063 188.416);
498
- --color-teal-200: oklch(43.7% 0.078 188.216);
499
- --color-teal-300: oklch(51.1% 0.096 186.391);
500
- --color-teal-400: oklch(60% 0.118 184.704);
501
- --color-teal-500: oklch(70.4% 0.14 182.503);
502
- --color-teal-600: oklch(77.7% 0.152 181.912);
503
- --color-teal-700: oklch(85.5% 0.138 181.071);
504
- --color-teal-800: oklch(91% 0.096 180.426);
505
- --color-teal-900: oklch(95.3% 0.051 180.801);
506
- --color-teal-950: oklch(98.4% 0.014 180.72);
507
-
508
- --color-cyan-50: oklch(30.2% 0.056 229.695);
509
- --color-cyan-100: oklch(39.8% 0.07 227.392);
510
- --color-cyan-200: oklch(45% 0.085 224.283);
511
- --color-cyan-300: oklch(52% 0.105 223.128);
512
- --color-cyan-400: oklch(60.9% 0.126 221.723);
513
- --color-cyan-500: oklch(71.5% 0.143 215.221);
514
- --color-cyan-600: oklch(78.9% 0.154 211.53);
515
- --color-cyan-700: oklch(86.5% 0.127 207.078);
516
- --color-cyan-800: oklch(91.7% 0.08 205.041);
517
- --color-cyan-900: oklch(95.6% 0.045 203.388);
518
- --color-cyan-950: oklch(98.4% 0.019 200.873);
519
-
520
- --color-sky-50: oklch(29.3% 0.066 243.157);
521
- --color-sky-100: oklch(39.1% 0.09 240.876);
522
- --color-sky-200: oklch(44.3% 0.11 240.79);
523
- --color-sky-300: oklch(50% 0.134 242.749);
524
- --color-sky-400: oklch(58.8% 0.158 241.966);
525
- --color-sky-500: oklch(68.5% 0.169 237.323);
526
- --color-sky-600: oklch(74.6% 0.16 232.661);
527
- --color-sky-700: oklch(82.8% 0.111 230.318);
528
- --color-sky-800: oklch(90.1% 0.058 230.902);
529
- --color-sky-900: oklch(95.1% 0.026 236.824);
530
- --color-sky-950: oklch(97.7% 0.013 236.62);
531
-
532
- --color-indigo-50: oklch(25.7% 0.09 281.288);
533
- --color-indigo-100: oklch(35.9% 0.144 278.697);
534
- --color-indigo-200: oklch(39.8% 0.195 277.366);
535
- --color-indigo-300: oklch(45.7% 0.24 277.023);
536
- --color-indigo-400: oklch(51.1% 0.262 276.966);
537
- --color-indigo-500: oklch(58.5% 0.233 277.117);
538
- --color-indigo-600: oklch(67.3% 0.182 276.935);
539
- --color-indigo-700: oklch(78.5% 0.115 274.713);
540
- --color-indigo-800: oklch(87% 0.065 274.039);
541
- --color-indigo-900: oklch(93% 0.034 272.788);
542
- --color-indigo-950: oklch(96.2% 0.018 272.314);
543
-
544
- --color-violet-50: oklch(28.3% 0.141 291.089);
545
- --color-violet-100: oklch(38% 0.189 293.745);
546
- --color-violet-200: oklch(43.2% 0.232 292.759);
547
- --color-violet-300: oklch(49.1% 0.27 292.581);
548
- --color-violet-400: oklch(54.1% 0.281 293.009);
549
- --color-violet-500: oklch(60.6% 0.25 292.717);
550
- --color-violet-600: oklch(70.2% 0.183 293.541);
551
- --color-violet-700: oklch(81.1% 0.111 293.571);
552
- --color-violet-800: oklch(89.4% 0.057 293.283);
553
- --color-violet-900: oklch(94.3% 0.029 294.588);
554
- --color-violet-950: oklch(96.9% 0.016 293.756);
555
-
556
- --color-purple-50: oklch(29.1% 0.149 302.717);
557
- --color-purple-100: oklch(38.1% 0.176 304.987);
558
- --color-purple-200: oklch(43.8% 0.218 303.724);
559
- --color-purple-300: oklch(49.6% 0.265 301.924);
560
- --color-purple-400: oklch(55.8% 0.288 302.321);
561
- --color-purple-500: oklch(62.7% 0.265 303.9);
562
- --color-purple-600: oklch(71.4% 0.203 305.504);
563
- --color-purple-700: oklch(82.7% 0.119 306.383);
564
- --color-purple-800: oklch(90.2% 0.063 306.703);
565
- --color-purple-900: oklch(94.6% 0.033 307.174);
566
- --color-purple-950: oklch(97.7% 0.014 308.299);
567
-
568
- --color-fuchsia-50: oklch(29.3% 0.136 325.661);
569
- --color-fuchsia-100: oklch(40.1% 0.17 325.612);
570
- --color-fuchsia-200: oklch(45.2% 0.211 324.591);
571
- --color-fuchsia-300: oklch(51.8% 0.253 323.949);
572
- --color-fuchsia-400: oklch(59.1% 0.293 322.896);
573
- --color-fuchsia-500: oklch(66.7% 0.295 322.15);
574
- --color-fuchsia-600: oklch(74% 0.238 322.16);
575
- --color-fuchsia-700: oklch(83.3% 0.145 321.434);
576
- --color-fuchsia-800: oklch(90.3% 0.076 319.62);
577
- --color-fuchsia-900: oklch(95.2% 0.037 318.852);
578
- --color-fuchsia-950: oklch(97.7% 0.017 320.058);
579
-
580
- --color-pink-50: oklch(28.4% 0.109 3.907);
581
- --color-pink-100: oklch(40.8% 0.153 2.432);
582
- --color-pink-200: oklch(45.9% 0.187 3.815);
583
- --color-pink-300: oklch(52.5% 0.223 3.958);
584
- --color-pink-400: oklch(59.2% 0.249 0.584);
585
- --color-pink-500: oklch(65.6% 0.241 354.308);
586
- --color-pink-600: oklch(71.8% 0.202 349.761);
587
- --color-pink-700: oklch(82.3% 0.12 346.018);
588
- --color-pink-800: oklch(89.9% 0.061 343.231);
589
- --color-pink-900: oklch(94.8% 0.028 342.258);
590
- --color-pink-950: oklch(97.1% 0.014 343.198);
591
-
592
- --color-rose-50: oklch(27.1% 0.105 12.094);
593
- --color-rose-100: oklch(41% 0.159 10.272);
594
- --color-rose-200: oklch(45.5% 0.188 13.697);
595
- --color-rose-300: oklch(51.4% 0.222 16.935);
596
- --color-rose-400: oklch(58.6% 0.253 17.585);
597
- --color-rose-500: oklch(64.5% 0.246 16.439);
598
- --color-rose-600: oklch(71.2% 0.194 13.428);
599
- --color-rose-700: oklch(81% 0.117 11.638);
600
- --color-rose-800: oklch(89.2% 0.058 10.001);
601
- --color-rose-900: oklch(94.1% 0.03 12.58);
602
- --color-rose-950: oklch(96.9% 0.015 12.422);
603
-
604
- --color-slate-50: oklch(12.9% 0.042 264.695);
605
- --color-slate-100: oklch(20.8% 0.042 265.755);
606
- --color-slate-200: oklch(27.9% 0.041 260.031);
607
- --color-slate-300: oklch(37.2% 0.044 257.287);
608
- --color-slate-400: oklch(44.6% 0.043 257.281);
609
- --color-slate-500: oklch(55.4% 0.046 257.417);
610
- --color-slate-600: oklch(70.4% 0.04 256.788);
611
- --color-slate-700: oklch(86.9% 0.022 252.894);
612
- --color-slate-800: oklch(92.9% 0.013 255.508);
613
- --color-slate-900: oklch(96.8% 0.007 247.896);
614
- --color-slate-950: oklch(98.4% 0.003 247.858);
615
-
616
- --color-zinc-50: oklch(14.1% 0.005 285.823);
617
- --color-zinc-100: oklch(21% 0.006 285.885);
618
- --color-zinc-200: oklch(27.4% 0.006 286.033);
619
- --color-zinc-300: oklch(37% 0.013 285.805);
620
- --color-zinc-400: oklch(44.2% 0.017 285.786);
621
- --color-zinc-500: oklch(55.2% 0.016 285.938);
622
- --color-zinc-600: oklch(70.5% 0.015 286.067);
623
- --color-zinc-700: oklch(87.1% 0.006 286.286);
624
- --color-zinc-800: oklch(92% 0.004 286.32);
625
- --color-zinc-900: oklch(96.7% 0.001 286.375);
626
- --color-zinc-950: oklch(98.5% 0 0);
627
-
628
- --color-stone-50: oklch(14.7% 0.004 49.25);
629
- --color-stone-100: oklch(21.6% 0.006 56.043);
630
- --color-stone-200: oklch(26.8% 0.007 34.298);
631
- --color-stone-300: oklch(37.4% 0.01 67.558);
632
- --color-stone-400: oklch(44.4% 0.011 73.639);
633
- --color-stone-500: oklch(55.3% 0.013 58.071);
634
- --color-stone-600: oklch(70.9% 0.01 56.259);
635
- --color-stone-700: oklch(86.9% 0.005 56.366);
636
- --color-stone-800: oklch(92.3% 0.003 48.717);
637
- --color-stone-900: oklch(97% 0.001 106.424);
638
- --color-stone-950: oklch(98.5% 0.001 106.423);
639
-
640
- --background-color-base: var(--color-neutral-50);
641
- --background-color-card: var(--color-neutral-100);
642
- --background-color-popover: var(--color-neutral-100);
643
- --background-color-dialog: var(--color-neutral-50);
644
- --background-color-base-hover: var(--color-neutral-100);
645
- --background-color-card-hover: color-mix(
646
- in oklab,
647
- var(--color-neutral-100) 50%,
648
- var(--color-neutral-200)
649
- );
650
- --background-color-popover-hover: color-mix(
651
- in oklab,
652
- var(--color-neutral-100) 50%,
653
- var(--color-neutral-200)
654
- );
655
- --background-color-dialog-hover: var(--color-neutral-100);
656
- --background-color-form: var(--background-color-card);
657
- --background-color-form-hover: --alpha(var(--color-neutral-500) / 0.05);
658
- --background-color-form-active: --alpha(var(--color-neutral-500) / 0.1);
659
- --background-color-overlay: --alpha(#000 / 0.6);
660
-
661
- --border-color-base: var(--color-neutral-300);
662
- --border-color-card: var(--color-neutral-300);
663
- --border-color-popover: var(--color-neutral-300);
664
- --border-color-dialog: var(--color-neutral-300);
665
- --border-color-base-muted: var(--color-neutral-200);
666
- --border-color-card-muted: var(--color-neutral-200);
667
- --border-color-popover-muted: var(--color-neutral-200);
668
- --border-color-dialog-muted: var(--color-neutral-200);
669
- --border-color-form: var(--color-neutral-300);
670
-
671
- --divide-color-card: var(--color-neutral-300);
672
- --divide-color-card-muted: var(--color-neutral-200);
673
-
674
- --color-card-border: var(--color-neutral-300);
675
- --color-card-border-muted: var(--color-neutral-200);
676
- --color-separator: --alpha(var(--color-gray-600) / 0.2);
677
-
678
- /* Chart series tokens — one per mantle color name, each that color's 500
483
+ :root.dark,
484
+ :root[data-theme="dark"]:not([data-applied-theme]),
485
+ :root[data-applied-theme="dark"],
486
+ :root:not(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
487
+ .invert-theme {
488
+ color-scheme: dark;
489
+
490
+ /* Semantic colors: white becomes black and black becomes white in dark mode */
491
+ --color-white: oklch(0% 0 0);
492
+ --color-black: oklch(100% 0 0);
493
+
494
+ /* Reverse all the color values */
495
+ --color-neutral-50: oklch(18.2% 0 0);
496
+ --color-neutral-100: oklch(20.5% 0 0);
497
+ --color-neutral-200: oklch(26.9% 0 0);
498
+ --color-neutral-300: oklch(37.1% 0 0);
499
+ --color-neutral-400: oklch(43.9% 0 0);
500
+ --color-neutral-500: oklch(55.6% 0 0);
501
+ --color-neutral-600: oklch(70.8% 0 0);
502
+ --color-neutral-700: oklch(87% 0 0);
503
+ --color-neutral-800: oklch(92.2% 0 0);
504
+ --color-neutral-900: oklch(97% 0 0);
505
+ --color-neutral-950: oklch(98.5% 0 0);
506
+
507
+ --color-blue-50: oklch(26.6% 0.0958 273.2);
508
+ --color-blue-100: oklch(35.3% 0.1525 269.7);
509
+ --color-blue-200: oklch(39.8% 0.1951 268.1);
510
+ --color-blue-300: oklch(45.4% 0.2358 266.7);
511
+ --color-blue-400: oklch(52.1% 0.2298 266.7);
512
+ --color-blue-500: oklch(58.4% 0.2069 265.3);
513
+ --color-blue-600: oklch(69.6% 0.1539 262.9);
514
+ --color-blue-700: oklch(77.9% 0.1078 262.4);
515
+ --color-blue-800: oklch(86.7% 0.0622 264.2);
516
+ --color-blue-900: oklch(92.7% 0.0337 265.8);
517
+ --color-blue-950: oklch(96.8% 0.015 265.9);
518
+
519
+ --color-red-50: oklch(25.8% 0.092 26.042);
520
+ --color-red-100: oklch(39.6% 0.141 25.723);
521
+ --color-red-200: oklch(44.4% 0.177 26.899);
522
+ --color-red-300: oklch(50.5% 0.213 27.518);
523
+ --color-red-400: oklch(57.7% 0.245 27.325);
524
+ --color-red-500: oklch(63.7% 0.237 25.331);
525
+ --color-red-600: oklch(70.4% 0.191 22.216);
526
+ --color-red-700: oklch(80.8% 0.114 19.571);
527
+ --color-red-800: oklch(88.5% 0.062 18.334);
528
+ --color-red-900: oklch(93.6% 0.032 17.717);
529
+ --color-red-950: oklch(97.1% 0.013 17.38);
530
+
531
+ --color-orange-50: oklch(26.6% 0.079 36.259);
532
+ --color-orange-100: oklch(40.8% 0.123 38.172);
533
+ --color-orange-200: oklch(47% 0.157 37.304);
534
+ --color-orange-300: oklch(55.3% 0.195 38.402);
535
+ --color-orange-400: oklch(64.6% 0.222 41.116);
536
+ --color-orange-500: oklch(70.5% 0.213 47.604);
537
+ --color-orange-600: oklch(75% 0.183 55.934);
538
+ --color-orange-700: oklch(83.7% 0.128 66.29);
539
+ --color-orange-800: oklch(90.1% 0.076 70.697);
540
+ --color-orange-900: oklch(95.4% 0.038 75.164);
541
+ --color-orange-950: oklch(98% 0.016 73.684);
542
+
543
+ --color-amber-50: oklch(27.9% 0.077 45.635);
544
+ --color-amber-100: oklch(41.4% 0.112 45.904);
545
+ --color-amber-200: oklch(47.3% 0.137 46.201);
546
+ --color-amber-300: oklch(55.5% 0.163 48.998);
547
+ --color-amber-400: oklch(66.6% 0.179 58.318);
548
+ --color-amber-500: oklch(76.9% 0.188 70.08);
549
+ --color-amber-600: oklch(82.8% 0.189 84.429);
550
+ --color-amber-700: oklch(87.9% 0.169 91.605);
551
+ --color-amber-800: oklch(92.4% 0.12 95.746);
552
+ --color-amber-900: oklch(96.2% 0.059 95.617);
553
+ --color-amber-950: oklch(98.7% 0.022 95.277);
554
+
555
+ --color-yellow-50: oklch(28.6% 0.066 53.813);
556
+ --color-yellow-100: oklch(42.1% 0.095 57.708);
557
+ --color-yellow-200: oklch(47.6% 0.114 61.907);
558
+ --color-yellow-300: oklch(55.4% 0.135 66.442);
559
+ --color-yellow-400: oklch(68.1% 0.162 75.834);
560
+ --color-yellow-500: oklch(79.5% 0.184 86.047);
561
+ --color-yellow-600: oklch(85.2% 0.199 91.936);
562
+ --color-yellow-700: oklch(90.5% 0.182 98.111);
563
+ --color-yellow-800: oklch(94.5% 0.129 101.54);
564
+ --color-yellow-900: oklch(97.3% 0.071 103.193);
565
+ --color-yellow-950: oklch(98.7% 0.026 102.212);
566
+
567
+ --color-lime-50: oklch(27.4% 0.072 132.109);
568
+ --color-lime-100: oklch(40.5% 0.101 131.063);
569
+ --color-lime-200: oklch(45.3% 0.124 130.933);
570
+ --color-lime-300: oklch(53.2% 0.157 131.589);
571
+ --color-lime-400: oklch(64.8% 0.2 131.684);
572
+ --color-lime-500: oklch(76.8% 0.233 130.85);
573
+ --color-lime-600: oklch(84.1% 0.238 128.85);
574
+ --color-lime-700: oklch(89.7% 0.196 126.665);
575
+ --color-lime-800: oklch(93.8% 0.127 124.321);
576
+ --color-lime-900: oklch(96.7% 0.067 122.328);
577
+ --color-lime-950: oklch(98.6% 0.031 120.757);
578
+
579
+ --color-green-50: oklch(26.6% 0.065 152.934);
580
+ --color-green-100: oklch(39.3% 0.095 152.535);
581
+ --color-green-200: oklch(44.8% 0.119 151.328);
582
+ --color-green-300: oklch(52.7% 0.154 150.069);
583
+ --color-green-400: oklch(62.7% 0.194 149.214);
584
+ --color-green-500: oklch(72.3% 0.219 149.579);
585
+ --color-green-600: oklch(79.2% 0.209 151.711);
586
+ --color-green-700: oklch(87.1% 0.15 154.449);
587
+ --color-green-800: oklch(92.5% 0.084 155.995);
588
+ --color-green-900: oklch(96.2% 0.044 156.743);
589
+ --color-green-950: oklch(98.2% 0.018 155.826);
590
+
591
+ --color-emerald-50: oklch(26.2% 0.051 172.552);
592
+ --color-emerald-100: oklch(37.8% 0.077 168.94);
593
+ --color-emerald-200: oklch(43.2% 0.095 166.913);
594
+ --color-emerald-300: oklch(50.8% 0.118 165.612);
595
+ --color-emerald-400: oklch(59.6% 0.145 163.225);
596
+ --color-emerald-500: oklch(69.6% 0.17 162.48);
597
+ --color-emerald-600: oklch(76.5% 0.177 163.223);
598
+ --color-emerald-700: oklch(84.5% 0.143 164.978);
599
+ --color-emerald-800: oklch(90.5% 0.093 164.15);
600
+ --color-emerald-900: oklch(95% 0.052 163.051);
601
+ --color-emerald-950: oklch(97.9% 0.021 166.113);
602
+
603
+ --color-teal-50: oklch(27.7% 0.046 192.524);
604
+ --color-teal-100: oklch(38.6% 0.063 188.416);
605
+ --color-teal-200: oklch(43.7% 0.078 188.216);
606
+ --color-teal-300: oklch(51.1% 0.096 186.391);
607
+ --color-teal-400: oklch(60% 0.118 184.704);
608
+ --color-teal-500: oklch(70.4% 0.14 182.503);
609
+ --color-teal-600: oklch(77.7% 0.152 181.912);
610
+ --color-teal-700: oklch(85.5% 0.138 181.071);
611
+ --color-teal-800: oklch(91% 0.096 180.426);
612
+ --color-teal-900: oklch(95.3% 0.051 180.801);
613
+ --color-teal-950: oklch(98.4% 0.014 180.72);
614
+
615
+ --color-cyan-50: oklch(30.2% 0.056 229.695);
616
+ --color-cyan-100: oklch(39.8% 0.07 227.392);
617
+ --color-cyan-200: oklch(45% 0.085 224.283);
618
+ --color-cyan-300: oklch(52% 0.105 223.128);
619
+ --color-cyan-400: oklch(60.9% 0.126 221.723);
620
+ --color-cyan-500: oklch(71.5% 0.143 215.221);
621
+ --color-cyan-600: oklch(78.9% 0.154 211.53);
622
+ --color-cyan-700: oklch(86.5% 0.127 207.078);
623
+ --color-cyan-800: oklch(91.7% 0.08 205.041);
624
+ --color-cyan-900: oklch(95.6% 0.045 203.388);
625
+ --color-cyan-950: oklch(98.4% 0.019 200.873);
626
+
627
+ --color-sky-50: oklch(29.3% 0.066 243.157);
628
+ --color-sky-100: oklch(39.1% 0.09 240.876);
629
+ --color-sky-200: oklch(44.3% 0.11 240.79);
630
+ --color-sky-300: oklch(50% 0.134 242.749);
631
+ --color-sky-400: oklch(58.8% 0.158 241.966);
632
+ --color-sky-500: oklch(68.5% 0.169 237.323);
633
+ --color-sky-600: oklch(74.6% 0.16 232.661);
634
+ --color-sky-700: oklch(82.8% 0.111 230.318);
635
+ --color-sky-800: oklch(90.1% 0.058 230.902);
636
+ --color-sky-900: oklch(95.1% 0.026 236.824);
637
+ --color-sky-950: oklch(97.7% 0.013 236.62);
638
+
639
+ --color-indigo-50: oklch(25.7% 0.09 281.288);
640
+ --color-indigo-100: oklch(35.9% 0.144 278.697);
641
+ --color-indigo-200: oklch(39.8% 0.195 277.366);
642
+ --color-indigo-300: oklch(45.7% 0.24 277.023);
643
+ --color-indigo-400: oklch(51.1% 0.262 276.966);
644
+ --color-indigo-500: oklch(58.5% 0.233 277.117);
645
+ --color-indigo-600: oklch(67.3% 0.182 276.935);
646
+ --color-indigo-700: oklch(78.5% 0.115 274.713);
647
+ --color-indigo-800: oklch(87% 0.065 274.039);
648
+ --color-indigo-900: oklch(93% 0.034 272.788);
649
+ --color-indigo-950: oklch(96.2% 0.018 272.314);
650
+
651
+ --color-violet-50: oklch(28.3% 0.141 291.089);
652
+ --color-violet-100: oklch(38% 0.189 293.745);
653
+ --color-violet-200: oklch(43.2% 0.232 292.759);
654
+ --color-violet-300: oklch(49.1% 0.27 292.581);
655
+ --color-violet-400: oklch(54.1% 0.281 293.009);
656
+ --color-violet-500: oklch(60.6% 0.25 292.717);
657
+ --color-violet-600: oklch(70.2% 0.183 293.541);
658
+ --color-violet-700: oklch(81.1% 0.111 293.571);
659
+ --color-violet-800: oklch(89.4% 0.057 293.283);
660
+ --color-violet-900: oklch(94.3% 0.029 294.588);
661
+ --color-violet-950: oklch(96.9% 0.016 293.756);
662
+
663
+ --color-purple-50: oklch(29.1% 0.149 302.717);
664
+ --color-purple-100: oklch(38.1% 0.176 304.987);
665
+ --color-purple-200: oklch(43.8% 0.218 303.724);
666
+ --color-purple-300: oklch(49.6% 0.265 301.924);
667
+ --color-purple-400: oklch(55.8% 0.288 302.321);
668
+ --color-purple-500: oklch(62.7% 0.265 303.9);
669
+ --color-purple-600: oklch(71.4% 0.203 305.504);
670
+ --color-purple-700: oklch(82.7% 0.119 306.383);
671
+ --color-purple-800: oklch(90.2% 0.063 306.703);
672
+ --color-purple-900: oklch(94.6% 0.033 307.174);
673
+ --color-purple-950: oklch(97.7% 0.014 308.299);
674
+
675
+ --color-fuchsia-50: oklch(29.3% 0.136 325.661);
676
+ --color-fuchsia-100: oklch(40.1% 0.17 325.612);
677
+ --color-fuchsia-200: oklch(45.2% 0.211 324.591);
678
+ --color-fuchsia-300: oklch(51.8% 0.253 323.949);
679
+ --color-fuchsia-400: oklch(59.1% 0.293 322.896);
680
+ --color-fuchsia-500: oklch(66.7% 0.295 322.15);
681
+ --color-fuchsia-600: oklch(74% 0.238 322.16);
682
+ --color-fuchsia-700: oklch(83.3% 0.145 321.434);
683
+ --color-fuchsia-800: oklch(90.3% 0.076 319.62);
684
+ --color-fuchsia-900: oklch(95.2% 0.037 318.852);
685
+ --color-fuchsia-950: oklch(97.7% 0.017 320.058);
686
+
687
+ --color-pink-50: oklch(28.4% 0.109 3.907);
688
+ --color-pink-100: oklch(40.8% 0.153 2.432);
689
+ --color-pink-200: oklch(45.9% 0.187 3.815);
690
+ --color-pink-300: oklch(52.5% 0.223 3.958);
691
+ --color-pink-400: oklch(59.2% 0.249 0.584);
692
+ --color-pink-500: oklch(65.6% 0.241 354.308);
693
+ --color-pink-600: oklch(71.8% 0.202 349.761);
694
+ --color-pink-700: oklch(82.3% 0.12 346.018);
695
+ --color-pink-800: oklch(89.9% 0.061 343.231);
696
+ --color-pink-900: oklch(94.8% 0.028 342.258);
697
+ --color-pink-950: oklch(97.1% 0.014 343.198);
698
+
699
+ --color-rose-50: oklch(27.1% 0.105 12.094);
700
+ --color-rose-100: oklch(41% 0.159 10.272);
701
+ --color-rose-200: oklch(45.5% 0.188 13.697);
702
+ --color-rose-300: oklch(51.4% 0.222 16.935);
703
+ --color-rose-400: oklch(58.6% 0.253 17.585);
704
+ --color-rose-500: oklch(64.5% 0.246 16.439);
705
+ --color-rose-600: oklch(71.2% 0.194 13.428);
706
+ --color-rose-700: oklch(81% 0.117 11.638);
707
+ --color-rose-800: oklch(89.2% 0.058 10.001);
708
+ --color-rose-900: oklch(94.1% 0.03 12.58);
709
+ --color-rose-950: oklch(96.9% 0.015 12.422);
710
+
711
+ --color-slate-50: oklch(12.9% 0.042 264.695);
712
+ --color-slate-100: oklch(20.8% 0.042 265.755);
713
+ --color-slate-200: oklch(27.9% 0.041 260.031);
714
+ --color-slate-300: oklch(37.2% 0.044 257.287);
715
+ --color-slate-400: oklch(44.6% 0.043 257.281);
716
+ --color-slate-500: oklch(55.4% 0.046 257.417);
717
+ --color-slate-600: oklch(70.4% 0.04 256.788);
718
+ --color-slate-700: oklch(86.9% 0.022 252.894);
719
+ --color-slate-800: oklch(92.9% 0.013 255.508);
720
+ --color-slate-900: oklch(96.8% 0.007 247.896);
721
+ --color-slate-950: oklch(98.4% 0.003 247.858);
722
+
723
+ --color-zinc-50: oklch(14.1% 0.005 285.823);
724
+ --color-zinc-100: oklch(21% 0.006 285.885);
725
+ --color-zinc-200: oklch(27.4% 0.006 286.033);
726
+ --color-zinc-300: oklch(37% 0.013 285.805);
727
+ --color-zinc-400: oklch(44.2% 0.017 285.786);
728
+ --color-zinc-500: oklch(55.2% 0.016 285.938);
729
+ --color-zinc-600: oklch(70.5% 0.015 286.067);
730
+ --color-zinc-700: oklch(87.1% 0.006 286.286);
731
+ --color-zinc-800: oklch(92% 0.004 286.32);
732
+ --color-zinc-900: oklch(96.7% 0.001 286.375);
733
+ --color-zinc-950: oklch(98.5% 0 0);
734
+
735
+ --background-color-card: var(--color-neutral-100);
736
+ --background-color-popover: var(--color-neutral-100);
737
+ --background-color-dialog: var(--color-neutral-50);
738
+ --background-color-card-hover: color-mix(
739
+ in oklab,
740
+ var(--color-neutral-100) 50%,
741
+ var(--color-neutral-200)
742
+ );
743
+ --background-color-popover-hover: color-mix(
744
+ in oklab,
745
+ var(--color-neutral-100) 50%,
746
+ var(--color-neutral-200)
747
+ );
748
+ --background-color-dialog-hover: var(--color-neutral-100);
749
+ --background-color-overlay: --alpha(#000 / 0.6);
750
+
751
+ --color-separator: --alpha(var(--color-gray-600) / 0.2);
752
+
753
+ /* Chart series tokens: one per mantle color name, each that color's 500
679
754
  step, which clears 3:1 on the dark card. Light mode paints one step deeper.
680
755
  Functional names alias the hue their status color uses. Neutral is the
681
756
  color for an "Other" series. chart/tokens.test.ts measures every name. */
682
- --color-chart-amber: var(--color-amber-500);
683
- --color-chart-blue: var(--color-blue-500);
684
- --color-chart-cyan: var(--color-cyan-500);
685
- --color-chart-emerald: var(--color-emerald-500);
686
- --color-chart-fuchsia: var(--color-fuchsia-500);
687
- --color-chart-gray: var(--color-gray-500);
688
- --color-chart-green: var(--color-green-500);
689
- --color-chart-indigo: var(--color-indigo-500);
690
- --color-chart-lime: var(--color-lime-500);
691
- --color-chart-orange: var(--color-orange-500);
692
- --color-chart-pink: var(--color-pink-500);
693
- --color-chart-purple: var(--color-purple-500);
694
- --color-chart-red: var(--color-red-500);
695
- --color-chart-rose: var(--color-rose-500);
696
- --color-chart-sky: var(--color-sky-500);
697
- --color-chart-teal: var(--color-teal-500);
698
- --color-chart-violet: var(--color-violet-500);
699
- --color-chart-yellow: var(--color-yellow-500);
700
- --color-chart-accent: var(--color-chart-sky);
701
- --color-chart-danger: var(--color-chart-rose);
702
- --color-chart-important: var(--color-chart-purple);
703
- --color-chart-info: var(--color-chart-sky);
704
- --color-chart-neutral: var(--color-neutral-500);
705
- --color-chart-success: var(--color-chart-emerald);
706
- --color-chart-warning: var(--color-chart-amber);
707
-
708
- /* The fill of a decorative chart: this theme's neutral-200, which holds
709
- --text-color-muted at 4.93:1. The LIGHT DEFS block gives the derivation. */
710
- --color-chart-decorative: var(--color-neutral-200);
711
-
712
- --text-color-strong: #fff;
713
- --text-color-body: --alpha(#fff / 0.7);
714
- --text-color-muted: --alpha(#fff / 0.5);
715
- --text-color-placeholder: --alpha(#fff / 0.4);
716
- --text-color-on-filled: #fff;
717
-
718
- /* Theme tokens */
719
- --background-color-filled-neutral: var(--color-neutral-900);
720
- --background-color-filled-accent: var(--color-accent-600);
721
- --background-color-filled-danger: var(--color-danger-600);
722
- --background-color-filled-warning: var(--color-warning-600);
723
- --background-color-filled-success: var(--color-success-600);
724
-
725
- --background-color-filled-neutral-hover: var(--color-black);
726
- --background-color-filled-accent-hover: var(--color-accent-700);
727
- --background-color-filled-danger-hover: var(--color-danger-700);
728
- --background-color-filled-warning-hover: var(--color-warning-700);
729
- --background-color-filled-success-hover: var(--color-success-700);
730
-
731
- /* Focus tokens — same expressions as the light base (the mid-ramp stops they
732
- reference are theme-symmetric), declared here so `.invert-theme` islands
733
- re-resolve them against this block's ramps. */
734
- --ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
735
- --ring-color-focus-accent: --alpha(var(--color-accent-500) / 0.3);
736
- --ring-color-focus-danger: --alpha(var(--color-danger-500) / 0.3);
737
- --ring-color-focus-warning: --alpha(var(--color-warning-500) / 0.3);
738
- --ring-color-focus-success: --alpha(var(--color-success-500) / 0.3);
739
-
740
- --color-active-menu-item: --alpha(var(--color-neutral-500) / 0.05);
741
- --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
742
- --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
743
-
744
- --shadow-color: #000;
745
- --shadow-first-opacity: 15%;
746
- --shadow-second-opacity: 30%;
747
-
748
- --navigation-shadow: --alpha(var(--shadow-color) / 40%);
749
-
750
- --bg-checked-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='black' d='M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z'/%3e%3c/svg%3e");
751
- --bg-indeterminate-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='black' d='M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z'/%3e%3c/svg%3e");
752
- }
757
+ --color-chart-amber: var(--color-amber-500);
758
+ --color-chart-blue: var(--color-blue-500);
759
+ --color-chart-cyan: var(--color-cyan-500);
760
+ --color-chart-emerald: var(--color-emerald-500);
761
+ --color-chart-fuchsia: var(--color-fuchsia-500);
762
+ --color-chart-gray: var(--color-gray-500);
763
+ --color-chart-green: var(--color-green-500);
764
+ --color-chart-indigo: var(--color-indigo-500);
765
+ --color-chart-lime: var(--color-lime-500);
766
+ --color-chart-orange: var(--color-orange-500);
767
+ --color-chart-pink: var(--color-pink-500);
768
+ --color-chart-purple: var(--color-purple-500);
769
+ --color-chart-red: var(--color-red-500);
770
+ --color-chart-rose: var(--color-rose-500);
771
+ --color-chart-sky: var(--color-sky-500);
772
+ --color-chart-teal: var(--color-teal-500);
773
+ --color-chart-violet: var(--color-violet-500);
774
+ --color-chart-yellow: var(--color-yellow-500);
775
+ --color-chart-neutral: var(--color-neutral-500);
776
+
777
+ --text-color-strong: #fff;
778
+ --text-color-body: --alpha(#fff / 0.7);
779
+ --text-color-muted: --alpha(#fff / 0.5);
780
+ --text-color-placeholder: --alpha(#fff / 0.4);
781
+
782
+ /* Theme tokens */
783
+ --background-color-filled-neutral: var(--color-neutral-900);
784
+ --background-color-filled-neutral-hover: var(--color-black);
785
+
786
+ --shadow-first-opacity: 15%;
787
+ --shadow-second-opacity: 30%;
788
+
789
+ --navigation-shadow: --alpha(var(--shadow-color) / 40%);
790
+
791
+ --bg-checked-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='black' d='M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z'/%3e%3c/svg%3e");
792
+ --bg-indeterminate-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='black' d='M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z'/%3e%3c/svg%3e");
793
+ }
753
794
 
754
- /**
795
+ /**
755
796
  MARK: LIGHT DEFS
756
797
 
757
798
  Light's own definitions: the stops that intentionally diverge from Tailwind's
758
799
  defaults, and every semantic token built on them. Tailwind's unmodified default
759
- ramps are NOT restated here — they live in MARK: LIGHT PALETTE RESTORE below,
800
+ ramps are NOT restated here; they live in MARK: LIGHT PALETTE RESTORE below,
760
801
  scoped to islands, because restating them at `:root` would override a consumer's
761
802
  `@theme` palette customization.
762
803
 
@@ -765,425 +806,146 @@ dark pages: an inverted island is just the opposite theme's own definitions
765
806
  re-declared on the island element, where they win over the values inherited
766
807
  from `:root` (see MARK: INVERT THEME below).
767
808
  */
768
- :root,
769
- :root.light,
770
- :root[data-theme="light"]:not([data-applied-theme]),
771
- :root[data-applied-theme="light"],
772
- :root:is(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
773
- .invert-theme {
774
- color-scheme: light;
775
-
776
- /* custom stops that intentionally diverge from the Tailwind defaults */
777
- --color-neutral-950: oklch(18.2% 0 0); /* TW4 default is 14.5% — intentionally lighter */
778
- --color-sky-600: oklch(55% 0.158 241.966);
779
-
780
- /* gray is identical to neutral in light mode */
781
- --color-gray-50: var(--color-neutral-50);
782
- --color-gray-100: var(--color-neutral-100);
783
- --color-gray-200: var(--color-neutral-200);
784
- --color-gray-300: var(--color-neutral-300);
785
- --color-gray-400: var(--color-neutral-400);
786
- --color-gray-500: var(--color-neutral-500);
787
- --color-gray-600: var(--color-neutral-600);
788
- --color-gray-700: var(--color-neutral-700);
789
- --color-gray-800: var(--color-neutral-800);
790
- --color-gray-900: var(--color-neutral-900);
791
- --color-gray-950: var(--color-neutral-950);
792
-
793
- --color-blue-50: oklch(96.8% 0.015 265.9);
794
- --color-blue-100: oklch(92.7% 0.0337 265.8);
795
- --color-blue-200: oklch(86.7% 0.0622 264.2);
796
- --color-blue-300: oklch(77.9% 0.1078 262.4);
797
- --color-blue-400: oklch(69.6% 0.1539 262.9);
798
- --color-blue-500: oklch(58.4% 0.2069 265.3);
799
- --color-blue-600: oklch(52.1% 0.2298 266.7);
800
- --color-blue-700: oklch(45.4% 0.2358 266.7);
801
- --color-blue-800: oklch(39.8% 0.1951 268.1);
802
- --color-blue-900: oklch(35.3% 0.1525 269.7);
803
- --color-blue-950: oklch(26.6% 0.0958 273.2);
804
-
805
- --background-color-base: var(--color-neutral-50);
806
- --background-color-card: var(--color-white);
807
- --background-color-popover: var(--color-white);
808
- --background-color-dialog: var(--color-white);
809
- --background-color-base-hover: var(--color-neutral-100);
810
- --background-color-card-hover: color-mix(
811
- in oklab,
812
- var(--color-white) 50%,
813
- var(--color-neutral-100)
814
- );
815
- --background-color-popover-hover: color-mix(
816
- in oklab,
817
- var(--color-white) 50%,
818
- var(--color-neutral-100)
819
- );
820
- --background-color-dialog-hover: color-mix(
821
- in oklab,
822
- var(--color-white) 50%,
823
- var(--color-neutral-100)
824
- );
825
- --background-color-form: var(--background-color-card);
826
- --background-color-form-hover: --alpha(var(--color-neutral-500) / 0.05);
827
- --background-color-form-active: --alpha(var(--color-neutral-500) / 0.1);
828
- --background-color-overlay: --alpha(#000 / 0.12);
829
-
830
- --border-color-base: var(--color-neutral-300);
831
- --border-color-card: var(--color-neutral-300);
832
- --border-color-popover: var(--color-neutral-300);
833
- --border-color-dialog: var(--color-neutral-300);
834
- --border-color-base-muted: var(--color-neutral-200);
835
- --border-color-card-muted: var(--color-neutral-200);
836
- --border-color-popover-muted: var(--color-neutral-200);
837
- --border-color-dialog-muted: var(--color-neutral-200);
838
- --border-color-form: var(--color-neutral-300);
839
-
840
- --divide-color-card: var(--color-neutral-300);
841
- --divide-color-card-muted: var(--color-neutral-200);
842
-
843
- --color-card-border: var(--color-neutral-300);
844
- --color-card-border-muted: var(--color-neutral-200);
845
- --color-separator: --alpha(var(--color-gray-500) / 0.2);
846
-
847
- --color-active-menu-item: --alpha(var(--color-neutral-500) / 0.05);
848
- --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
849
- --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
850
-
851
- /* Chart series tokens — one per mantle color name, each that color's 600
809
+ :root,
810
+ :root.light,
811
+ :root[data-theme="light"]:not([data-applied-theme]),
812
+ :root[data-applied-theme="light"],
813
+ :root:is(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
814
+ .invert-theme {
815
+ color-scheme: light;
816
+
817
+ /* custom stops that intentionally diverge from the Tailwind defaults */
818
+ --color-neutral-950: oklch(18.2% 0 0); /* TW4 default is 14.5%; intentionally lighter */
819
+ --color-sky-600: oklch(55% 0.158 241.966);
820
+
821
+ --color-blue-50: oklch(96.8% 0.015 265.9);
822
+ --color-blue-100: oklch(92.7% 0.0337 265.8);
823
+ --color-blue-200: oklch(86.7% 0.0622 264.2);
824
+ --color-blue-300: oklch(77.9% 0.1078 262.4);
825
+ --color-blue-400: oklch(69.6% 0.1539 262.9);
826
+ --color-blue-500: oklch(58.4% 0.2069 265.3);
827
+ --color-blue-600: oklch(52.1% 0.2298 266.7);
828
+ --color-blue-700: oklch(45.4% 0.2358 266.7);
829
+ --color-blue-800: oklch(39.8% 0.1951 268.1);
830
+ --color-blue-900: oklch(35.3% 0.1525 269.7);
831
+ --color-blue-950: oklch(26.6% 0.0958 273.2);
832
+
833
+ --background-color-card: var(--color-white);
834
+ --background-color-popover: var(--color-white);
835
+ --background-color-dialog: var(--color-white);
836
+ --background-color-card-hover: color-mix(
837
+ in oklab,
838
+ var(--color-white) 50%,
839
+ var(--color-neutral-100)
840
+ );
841
+ --background-color-popover-hover: color-mix(
842
+ in oklab,
843
+ var(--color-white) 50%,
844
+ var(--color-neutral-100)
845
+ );
846
+ --background-color-dialog-hover: color-mix(
847
+ in oklab,
848
+ var(--color-white) 50%,
849
+ var(--color-neutral-100)
850
+ );
851
+ --background-color-overlay: --alpha(#000 / 0.12);
852
+
853
+ --color-separator: --alpha(var(--color-gray-500) / 0.2);
854
+
855
+ /* Chart series tokens: one per mantle color name, each that color's 600
852
856
  step: one step deeper than dark mode's 500, because the 500 steps read
853
857
  washed out on white. Only yellow stays under 3:1 here, at 2.94:1. Functional
854
858
  names alias the hue their status color uses. Neutral is the color for an
855
859
  "Other" series. chart/tokens.test.ts measures every name. */
856
- --color-chart-amber: var(--color-amber-600);
857
- --color-chart-blue: var(--color-blue-600);
858
- --color-chart-cyan: var(--color-cyan-600);
859
- --color-chart-emerald: var(--color-emerald-600);
860
- --color-chart-fuchsia: var(--color-fuchsia-600);
861
- --color-chart-gray: var(--color-gray-600);
862
- --color-chart-green: var(--color-green-600);
863
- --color-chart-indigo: var(--color-indigo-600);
864
- --color-chart-lime: var(--color-lime-600);
865
- --color-chart-orange: var(--color-orange-600);
866
- --color-chart-pink: var(--color-pink-600);
867
- --color-chart-purple: var(--color-purple-600);
868
- --color-chart-red: var(--color-red-600);
869
- --color-chart-rose: var(--color-rose-600);
870
- --color-chart-sky: var(--color-sky-600);
871
- --color-chart-teal: var(--color-teal-600);
872
- --color-chart-violet: var(--color-violet-600);
873
- --color-chart-yellow: var(--color-yellow-600);
874
- --color-chart-accent: var(--color-chart-sky);
875
- --color-chart-danger: var(--color-chart-rose);
876
- --color-chart-important: var(--color-chart-purple);
877
- --color-chart-info: var(--color-chart-sky);
878
- --color-chart-neutral: var(--color-neutral-600);
879
- --color-chart-success: var(--color-chart-emerald);
880
- --color-chart-warning: var(--color-chart-amber);
881
-
882
- /* The fill every series wears on a decorative chart, in place of its own
883
- color. It is neutral because a placeholder encodes no series identity, and it is
884
- this light because the message laid over it must stay readable: --text-color-muted
885
- over neutral-200 measures 4.56:1 here, and neutral-300 drops it to 4.24:1 — under
886
- the 4.5:1 floor for 14px text. Each theme aliases its own neutral-200, and
887
- chart/decorative-contrast.test.tsx measures both. */
888
- --color-chart-decorative: var(--color-neutral-200);
889
-
890
- --text-color-strong: var(--color-neutral-950);
891
- --text-color-body: --alpha(var(--color-neutral-950) / 0.75);
892
- --text-color-muted: --alpha(var(--color-neutral-950) / 0.6);
893
- --text-color-placeholder: --alpha(var(--color-neutral-950) / 0.5);
894
- --text-color-on-filled: #fff;
895
-
896
- /* Theme tokens */
897
- --background-color-filled-neutral: var(--color-neutral-950);
898
- --background-color-filled-accent: var(--color-accent-600);
899
- --background-color-filled-danger: var(--color-danger-600);
900
- --background-color-filled-warning: var(--color-warning-600);
901
- --background-color-filled-success: var(--color-success-600);
902
-
903
- --background-color-filled-neutral-hover: var(--color-neutral-800);
904
- --background-color-filled-accent-hover: var(--color-accent-700);
905
- --background-color-filled-danger-hover: var(--color-danger-700);
906
- --background-color-filled-warning-hover: var(--color-warning-700);
907
- --background-color-filled-success-hover: var(--color-success-700);
908
-
909
- /* Focus tokens */
910
- --ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
911
- --ring-color-focus-accent: --alpha(var(--color-accent-500) / 0.3);
912
- --ring-color-focus-danger: --alpha(var(--color-danger-500) / 0.3);
913
- --ring-color-focus-warning: --alpha(var(--color-warning-500) / 0.3);
914
- --ring-color-focus-success: --alpha(var(--color-success-500) / 0.3);
915
-
916
- --shadow-color: #000;
917
- --shadow-first-opacity: 5%;
918
- --shadow-second-opacity: 10%;
919
- --navigation-shadow: --alpha(var(--shadow-color) / 10%);
920
-
921
- --bg-checked-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z'/%3e%3c/svg%3e");
922
- --bg-indeterminate-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z'/%3e%3c/svg%3e");
923
- }
860
+ --color-chart-amber: var(--color-amber-600);
861
+ --color-chart-blue: var(--color-blue-600);
862
+ --color-chart-cyan: var(--color-cyan-600);
863
+ --color-chart-emerald: var(--color-emerald-600);
864
+ --color-chart-fuchsia: var(--color-fuchsia-600);
865
+ --color-chart-gray: var(--color-gray-600);
866
+ --color-chart-green: var(--color-green-600);
867
+ --color-chart-indigo: var(--color-indigo-600);
868
+ --color-chart-lime: var(--color-lime-600);
869
+ --color-chart-orange: var(--color-orange-600);
870
+ --color-chart-pink: var(--color-pink-600);
871
+ --color-chart-purple: var(--color-purple-600);
872
+ --color-chart-red: var(--color-red-600);
873
+ --color-chart-rose: var(--color-rose-600);
874
+ --color-chart-sky: var(--color-sky-600);
875
+ --color-chart-teal: var(--color-teal-600);
876
+ --color-chart-violet: var(--color-violet-600);
877
+ --color-chart-yellow: var(--color-yellow-600);
878
+ --color-chart-neutral: var(--color-neutral-600);
879
+
880
+ --text-color-strong: var(--color-neutral-950);
881
+ --text-color-body: --alpha(var(--color-neutral-950) / 0.75);
882
+ --text-color-muted: --alpha(var(--color-neutral-950) / 0.6);
883
+ --text-color-placeholder: --alpha(var(--color-neutral-950) / 0.5);
884
+
885
+ /* Theme tokens */
886
+ --background-color-filled-neutral: var(--color-neutral-950);
887
+ --background-color-filled-neutral-hover: var(--color-neutral-800);
888
+
889
+ --shadow-first-opacity: 5%;
890
+ --shadow-second-opacity: 10%;
891
+ --navigation-shadow: --alpha(var(--shadow-color) / 10%);
892
+
893
+ --bg-checked-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z'/%3e%3c/svg%3e");
894
+ --bg-indeterminate-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z'/%3e%3c/svg%3e");
895
+ }
924
896
 
925
- /**
926
- MARK: LIGHT PALETTE RESTORE (islands only)
927
-
928
- Tailwind's default light palette, materialized so `.invert-theme` islands on
929
- dark pages restore it — MARK: DARK DEFS never encodes light values. Every value
930
- is verbatim from the pinned tailwindcss/theme.css (the invert-theme test suite
931
- pins them against it).
932
-
933
- Scoped to the island selector on purpose: `@theme` variables are emitted into
934
- `@layer theme`, and unlayered author CSS beats every layer, so declaring these
935
- at `:root` would silently override a consumer's own
936
- `@theme { --color-<ramp>-<stop>: … }` for all 22 ramps — and ship ~17 KB of
937
- dead weight to every page that renders no island. At page level Tailwind's own
938
- defaults already supply these values, so the page needs nothing here.
939
-
940
- Limitation: an island restores *mantle's* pinned defaults, so a consumer who
941
- rebrands a ramp sees it on the page but not inside an island. Closing that gap
942
- needs a shadow copy of every ramp under a second name (a generated mirror), a
943
- cost the inversion feature does not justify.
944
- */
945
- :root:is(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"])
897
+ /* Theme tokens whose value is the same expression in both themes. Declared on
898
+ every island too, so each one re-resolves against the island's own ramps. */
899
+ :root,
946
900
  .invert-theme {
947
- --color-white: oklch(100% 0 0);
948
- --color-black: oklch(0% 0 0);
949
-
950
- --color-neutral-50: oklch(98.5% 0 none);
951
- --color-neutral-100: oklch(97% 0 none);
952
- --color-neutral-200: oklch(92.2% 0 none);
953
- --color-neutral-300: oklch(87% 0 none);
954
- --color-neutral-400: oklch(70.8% 0 none);
955
- --color-neutral-500: oklch(55.6% 0 none);
956
- --color-neutral-600: oklch(43.9% 0 none);
957
- --color-neutral-700: oklch(37.1% 0 none);
958
- --color-neutral-800: oklch(26.9% 0 none);
959
- --color-neutral-900: oklch(20.5% 0 none);
960
-
961
- --color-red-50: oklch(97.1% 0.013 17.38);
962
- --color-red-100: oklch(93.6% 0.032 17.717);
963
- --color-red-200: oklch(88.5% 0.062 18.334);
964
- --color-red-300: oklch(80.8% 0.114 19.571);
965
- --color-red-400: oklch(70.4% 0.191 22.216);
966
- --color-red-500: oklch(63.7% 0.237 25.331);
967
- --color-red-600: oklch(57.7% 0.245 27.325);
968
- --color-red-700: oklch(50.5% 0.213 27.518);
969
- --color-red-800: oklch(44.4% 0.177 26.899);
970
- --color-red-900: oklch(39.6% 0.141 25.723);
971
- --color-red-950: oklch(25.8% 0.092 26.042);
972
-
973
- --color-orange-50: oklch(98% 0.016 73.684);
974
- --color-orange-100: oklch(95.4% 0.038 75.164);
975
- --color-orange-200: oklch(90.1% 0.076 70.697);
976
- --color-orange-300: oklch(83.7% 0.128 66.29);
977
- --color-orange-400: oklch(75% 0.183 55.934);
978
- --color-orange-500: oklch(70.5% 0.213 47.604);
979
- --color-orange-600: oklch(64.6% 0.222 41.116);
980
- --color-orange-700: oklch(55.3% 0.195 38.402);
981
- --color-orange-800: oklch(47% 0.157 37.304);
982
- --color-orange-900: oklch(40.8% 0.123 38.172);
983
- --color-orange-950: oklch(26.6% 0.079 36.259);
984
-
985
- --color-amber-50: oklch(98.7% 0.022 95.277);
986
- --color-amber-100: oklch(96.2% 0.059 95.617);
987
- --color-amber-200: oklch(92.4% 0.12 95.746);
988
- --color-amber-300: oklch(87.9% 0.169 91.605);
989
- --color-amber-400: oklch(82.8% 0.189 84.429);
990
- --color-amber-500: oklch(76.9% 0.188 70.08);
991
- --color-amber-600: oklch(66.6% 0.179 58.318);
992
- --color-amber-700: oklch(55.5% 0.163 48.998);
993
- --color-amber-800: oklch(47.3% 0.137 46.201);
994
- --color-amber-900: oklch(41.4% 0.112 45.904);
995
- --color-amber-950: oklch(27.9% 0.077 45.635);
996
-
997
- --color-yellow-50: oklch(98.7% 0.026 102.212);
998
- --color-yellow-100: oklch(97.3% 0.071 103.193);
999
- --color-yellow-200: oklch(94.5% 0.129 101.54);
1000
- --color-yellow-300: oklch(90.5% 0.182 98.111);
1001
- --color-yellow-400: oklch(85.2% 0.199 91.936);
1002
- --color-yellow-500: oklch(79.5% 0.184 86.047);
1003
- --color-yellow-600: oklch(68.1% 0.162 75.834);
1004
- --color-yellow-700: oklch(55.4% 0.135 66.442);
1005
- --color-yellow-800: oklch(47.6% 0.114 61.907);
1006
- --color-yellow-900: oklch(42.1% 0.095 57.708);
1007
- --color-yellow-950: oklch(28.6% 0.066 53.813);
1008
-
1009
- --color-lime-50: oklch(98.6% 0.031 120.757);
1010
- --color-lime-100: oklch(96.7% 0.067 122.328);
1011
- --color-lime-200: oklch(93.8% 0.127 124.321);
1012
- --color-lime-300: oklch(89.7% 0.196 126.665);
1013
- --color-lime-400: oklch(84.1% 0.238 128.85);
1014
- --color-lime-500: oklch(76.8% 0.233 130.85);
1015
- --color-lime-600: oklch(64.8% 0.2 131.684);
1016
- --color-lime-700: oklch(53.2% 0.157 131.589);
1017
- --color-lime-800: oklch(45.3% 0.124 130.933);
1018
- --color-lime-900: oklch(40.5% 0.101 131.063);
1019
- --color-lime-950: oklch(27.4% 0.072 132.109);
1020
-
1021
- --color-green-50: oklch(98.2% 0.018 155.826);
1022
- --color-green-100: oklch(96.2% 0.044 156.743);
1023
- --color-green-200: oklch(92.5% 0.084 155.995);
1024
- --color-green-300: oklch(87.1% 0.15 154.449);
1025
- --color-green-400: oklch(79.2% 0.209 151.711);
1026
- --color-green-500: oklch(72.3% 0.219 149.579);
1027
- --color-green-600: oklch(62.7% 0.194 149.214);
1028
- --color-green-700: oklch(52.7% 0.154 150.069);
1029
- --color-green-800: oklch(44.8% 0.119 151.328);
1030
- --color-green-900: oklch(39.3% 0.095 152.535);
1031
- --color-green-950: oklch(26.6% 0.065 152.934);
1032
-
1033
- --color-emerald-50: oklch(97.9% 0.021 166.113);
1034
- --color-emerald-100: oklch(95% 0.052 163.051);
1035
- --color-emerald-200: oklch(90.5% 0.093 164.15);
1036
- --color-emerald-300: oklch(84.5% 0.143 164.978);
1037
- --color-emerald-400: oklch(76.5% 0.177 163.223);
1038
- --color-emerald-500: oklch(69.6% 0.17 162.48);
1039
- --color-emerald-600: oklch(59.6% 0.145 163.225);
1040
- --color-emerald-700: oklch(50.8% 0.118 165.612);
1041
- --color-emerald-800: oklch(43.2% 0.095 166.913);
1042
- --color-emerald-900: oklch(37.8% 0.077 168.94);
1043
- --color-emerald-950: oklch(26.2% 0.051 172.552);
1044
-
1045
- --color-teal-50: oklch(98.4% 0.014 180.72);
1046
- --color-teal-100: oklch(95.3% 0.051 180.801);
1047
- --color-teal-200: oklch(91% 0.096 180.426);
1048
- --color-teal-300: oklch(85.5% 0.138 181.071);
1049
- --color-teal-400: oklch(77.7% 0.152 181.912);
1050
- --color-teal-500: oklch(70.4% 0.14 182.503);
1051
- --color-teal-600: oklch(60% 0.118 184.704);
1052
- --color-teal-700: oklch(51.1% 0.096 186.391);
1053
- --color-teal-800: oklch(43.7% 0.078 188.216);
1054
- --color-teal-900: oklch(38.6% 0.063 188.416);
1055
- --color-teal-950: oklch(27.7% 0.046 192.524);
1056
-
1057
- --color-cyan-50: oklch(98.4% 0.019 200.873);
1058
- --color-cyan-100: oklch(95.6% 0.045 203.388);
1059
- --color-cyan-200: oklch(91.7% 0.08 205.041);
1060
- --color-cyan-300: oklch(86.5% 0.127 207.078);
1061
- --color-cyan-400: oklch(78.9% 0.154 211.53);
1062
- --color-cyan-500: oklch(71.5% 0.143 215.221);
1063
- --color-cyan-600: oklch(60.9% 0.126 221.723);
1064
- --color-cyan-700: oklch(52% 0.105 223.128);
1065
- --color-cyan-800: oklch(45% 0.085 224.283);
1066
- --color-cyan-900: oklch(39.8% 0.07 227.392);
1067
- --color-cyan-950: oklch(30.2% 0.056 229.695);
1068
-
1069
- --color-sky-50: oklch(97.7% 0.013 236.62);
1070
- --color-sky-100: oklch(95.1% 0.026 236.824);
1071
- --color-sky-200: oklch(90.1% 0.058 230.902);
1072
- --color-sky-300: oklch(82.8% 0.111 230.318);
1073
- --color-sky-400: oklch(74.6% 0.16 232.661);
1074
- --color-sky-500: oklch(68.5% 0.169 237.323);
1075
- --color-sky-700: oklch(50% 0.134 242.749);
1076
- --color-sky-800: oklch(44.3% 0.11 240.79);
1077
- --color-sky-900: oklch(39.1% 0.09 240.876);
1078
- --color-sky-950: oklch(29.3% 0.066 243.157);
1079
-
1080
- --color-indigo-50: oklch(96.2% 0.018 272.314);
1081
- --color-indigo-100: oklch(93% 0.034 272.788);
1082
- --color-indigo-200: oklch(87% 0.065 274.039);
1083
- --color-indigo-300: oklch(78.5% 0.115 274.713);
1084
- --color-indigo-400: oklch(67.3% 0.182 276.935);
1085
- --color-indigo-500: oklch(58.5% 0.233 277.117);
1086
- --color-indigo-600: oklch(51.1% 0.262 276.966);
1087
- --color-indigo-700: oklch(45.7% 0.24 277.023);
1088
- --color-indigo-800: oklch(39.8% 0.195 277.366);
1089
- --color-indigo-900: oklch(35.9% 0.144 278.697);
1090
- --color-indigo-950: oklch(25.7% 0.09 281.288);
1091
-
1092
- --color-violet-50: oklch(96.9% 0.016 293.756);
1093
- --color-violet-100: oklch(94.3% 0.029 294.588);
1094
- --color-violet-200: oklch(89.4% 0.057 293.283);
1095
- --color-violet-300: oklch(81.1% 0.111 293.571);
1096
- --color-violet-400: oklch(70.2% 0.183 293.541);
1097
- --color-violet-500: oklch(60.6% 0.25 292.717);
1098
- --color-violet-600: oklch(54.1% 0.281 293.009);
1099
- --color-violet-700: oklch(49.1% 0.27 292.581);
1100
- --color-violet-800: oklch(43.2% 0.232 292.759);
1101
- --color-violet-900: oklch(38% 0.189 293.745);
1102
- --color-violet-950: oklch(28.3% 0.141 291.089);
1103
-
1104
- --color-purple-50: oklch(97.7% 0.014 308.299);
1105
- --color-purple-100: oklch(94.6% 0.033 307.174);
1106
- --color-purple-200: oklch(90.2% 0.063 306.703);
1107
- --color-purple-300: oklch(82.7% 0.119 306.383);
1108
- --color-purple-400: oklch(71.4% 0.203 305.504);
1109
- --color-purple-500: oklch(62.7% 0.265 303.9);
1110
- --color-purple-600: oklch(55.8% 0.288 302.321);
1111
- --color-purple-700: oklch(49.6% 0.265 301.924);
1112
- --color-purple-800: oklch(43.8% 0.218 303.724);
1113
- --color-purple-900: oklch(38.1% 0.176 304.987);
1114
- --color-purple-950: oklch(29.1% 0.149 302.717);
1115
-
1116
- --color-fuchsia-50: oklch(97.7% 0.017 320.058);
1117
- --color-fuchsia-100: oklch(95.2% 0.037 318.852);
1118
- --color-fuchsia-200: oklch(90.3% 0.076 319.62);
1119
- --color-fuchsia-300: oklch(83.3% 0.145 321.434);
1120
- --color-fuchsia-400: oklch(74% 0.238 322.16);
1121
- --color-fuchsia-500: oklch(66.7% 0.295 322.15);
1122
- --color-fuchsia-600: oklch(59.1% 0.293 322.896);
1123
- --color-fuchsia-700: oklch(51.8% 0.253 323.949);
1124
- --color-fuchsia-800: oklch(45.2% 0.211 324.591);
1125
- --color-fuchsia-900: oklch(40.1% 0.17 325.612);
1126
- --color-fuchsia-950: oklch(29.3% 0.136 325.661);
1127
-
1128
- --color-pink-50: oklch(97.1% 0.014 343.198);
1129
- --color-pink-100: oklch(94.8% 0.028 342.258);
1130
- --color-pink-200: oklch(89.9% 0.061 343.231);
1131
- --color-pink-300: oklch(82.3% 0.12 346.018);
1132
- --color-pink-400: oklch(71.8% 0.202 349.761);
1133
- --color-pink-500: oklch(65.6% 0.241 354.308);
1134
- --color-pink-600: oklch(59.2% 0.249 0.584);
1135
- --color-pink-700: oklch(52.5% 0.223 3.958);
1136
- --color-pink-800: oklch(45.9% 0.187 3.815);
1137
- --color-pink-900: oklch(40.8% 0.153 2.432);
1138
- --color-pink-950: oklch(28.4% 0.109 3.907);
1139
-
1140
- --color-rose-50: oklch(96.9% 0.015 12.422);
1141
- --color-rose-100: oklch(94.1% 0.03 12.58);
1142
- --color-rose-200: oklch(89.2% 0.058 10.001);
1143
- --color-rose-300: oklch(81% 0.117 11.638);
1144
- --color-rose-400: oklch(71.2% 0.194 13.428);
1145
- --color-rose-500: oklch(64.5% 0.246 16.439);
1146
- --color-rose-600: oklch(58.6% 0.253 17.585);
1147
- --color-rose-700: oklch(51.4% 0.222 16.935);
1148
- --color-rose-800: oklch(45.5% 0.188 13.697);
1149
- --color-rose-900: oklch(41% 0.159 10.272);
1150
- --color-rose-950: oklch(27.1% 0.105 12.094);
1151
-
1152
- --color-slate-50: oklch(98.4% 0.003 247.858);
1153
- --color-slate-100: oklch(96.8% 0.007 247.896);
1154
- --color-slate-200: oklch(92.9% 0.013 255.508);
1155
- --color-slate-300: oklch(86.9% 0.022 252.894);
1156
- --color-slate-400: oklch(70.4% 0.04 256.788);
1157
- --color-slate-500: oklch(55.4% 0.046 257.417);
1158
- --color-slate-600: oklch(44.6% 0.043 257.281);
1159
- --color-slate-700: oklch(37.2% 0.044 257.287);
1160
- --color-slate-800: oklch(27.9% 0.041 260.031);
1161
- --color-slate-900: oklch(20.8% 0.042 265.755);
1162
- --color-slate-950: oklch(12.9% 0.042 264.695);
1163
-
1164
- --color-zinc-50: oklch(98.5% 0 none);
1165
- --color-zinc-100: oklch(96.7% 0.001 286.375);
1166
- --color-zinc-200: oklch(92% 0.004 286.32);
1167
- --color-zinc-300: oklch(87.1% 0.006 286.286);
1168
- --color-zinc-400: oklch(70.5% 0.015 286.067);
1169
- --color-zinc-500: oklch(55.2% 0.016 285.938);
1170
- --color-zinc-600: oklch(44.2% 0.017 285.786);
1171
- --color-zinc-700: oklch(37% 0.013 285.805);
1172
- --color-zinc-800: oklch(27.4% 0.006 286.033);
1173
- --color-zinc-900: oklch(21% 0.006 285.885);
1174
- --color-zinc-950: oklch(14.1% 0.005 285.823);
1175
-
1176
- --color-stone-50: oklch(98.5% 0.001 106.423);
1177
- --color-stone-100: oklch(97% 0.001 106.424);
1178
- --color-stone-200: oklch(92.3% 0.003 48.717);
1179
- --color-stone-300: oklch(86.9% 0.005 56.366);
1180
- --color-stone-400: oklch(70.9% 0.01 56.259);
1181
- --color-stone-500: oklch(55.3% 0.013 58.071);
1182
- --color-stone-600: oklch(44.4% 0.011 73.639);
1183
- --color-stone-700: oklch(37.4% 0.01 67.558);
1184
- --color-stone-800: oklch(26.8% 0.007 34.298);
1185
- --color-stone-900: oklch(21.6% 0.006 56.043);
1186
- --color-stone-950: oklch(14.7% 0.004 49.25);
901
+ --background-color-base: var(--color-neutral-50);
902
+ --background-color-base-hover: var(--color-neutral-100);
903
+ --background-color-form: var(--background-color-card);
904
+ --background-color-form-hover: --alpha(var(--color-neutral-500) / 0.05);
905
+ --background-color-form-active: --alpha(var(--color-neutral-500) / 0.1);
906
+ --border-color-base: var(--color-neutral-300);
907
+ --border-color-card: var(--color-neutral-300);
908
+ --border-color-popover: var(--color-neutral-300);
909
+ --border-color-dialog: var(--color-neutral-300);
910
+ --border-color-base-muted: var(--color-neutral-200);
911
+ --border-color-card-muted: var(--color-neutral-200);
912
+ --border-color-popover-muted: var(--color-neutral-200);
913
+ --border-color-dialog-muted: var(--color-neutral-200);
914
+ --border-color-form: var(--color-neutral-300);
915
+ --color-card-border: var(--color-neutral-300);
916
+ --color-card-border-muted: var(--color-neutral-200);
917
+ --color-active-menu-item: --alpha(var(--color-neutral-500) / 0.05);
918
+ --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
919
+ --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
920
+ --color-chart-accent: var(--color-chart-sky);
921
+ --color-chart-danger: var(--color-chart-rose);
922
+ --color-chart-important: var(--color-chart-purple);
923
+ --color-chart-info: var(--color-chart-sky);
924
+ --color-chart-success: var(--color-chart-emerald);
925
+ --color-chart-warning: var(--color-chart-amber);
926
+ /* The fill every series wears on a decorative chart, in place of its own
927
+ color. It is neutral because a placeholder encodes no series identity, and it is
928
+ this light because the message laid over it must stay readable: --text-color-muted
929
+ over each theme's neutral-200 measures 4.56:1 in light and 4.93:1 in dark, and
930
+ neutral-300 drops light to 4.24:1, under the 4.5:1 floor for 14px text.
931
+ chart/decorative-contrast.test.tsx measures both. */
932
+ --color-chart-decorative: var(--color-neutral-200);
933
+ --text-color-on-filled: #fff;
934
+ --background-color-filled-accent: var(--color-accent-600);
935
+ --background-color-filled-danger: var(--color-danger-600);
936
+ --background-color-filled-warning: var(--color-warning-600);
937
+ --background-color-filled-success: var(--color-success-600);
938
+ --background-color-filled-accent-hover: var(--color-accent-700);
939
+ --background-color-filled-danger-hover: var(--color-danger-700);
940
+ --background-color-filled-warning-hover: var(--color-warning-700);
941
+ --background-color-filled-success-hover: var(--color-success-700);
942
+ --ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
943
+ --ring-color-focus-accent: --alpha(var(--color-accent-500) / 0.3);
944
+ --ring-color-focus-danger: --alpha(var(--color-danger-500) / 0.3);
945
+ --ring-color-focus-warning: --alpha(var(--color-warning-500) / 0.3);
946
+ --ring-color-focus-success: --alpha(var(--color-success-500) / 0.3);
947
+ --shadow-color: #000;
948
+ }
1187
949
  }
1188
950
 
1189
951
  /**
@@ -1191,14 +953,14 @@ MARK: COMPONENT GEOMETRY
1191
953
  */
1192
954
  /* Geometry a component publishes for surfaces that render OUTSIDE it.
1193
955
  `--sidebar-row-width` is the width of one row inside an expanded `Sidebar`
1194
- panel — `--sidebar-width` minus the row gutter every sidebar region applies
956
+ panel: `--sidebar-width` minus the row gutter every sidebar region applies
1195
957
  (`px-3` plus the expanded `pr-1` on Sidebar.Header/Body/Footer = 1rem). A
1196
958
  switcher's menu renders in a portal on `document.body`, so it inherits
1197
959
  nothing the sidebar sets; declaring the row width here is what lets such a
1198
960
  menu stay as wide as the expanded row while the panel is collapsed to the
1199
- icon rail (`min-w-(--sidebar-row-width)` on the menu content). Resolved at
961
+ collapsed sidebar (`min-w-(--sidebar-row-width)` on the menu content). Resolved at
1200
962
  `:root`, so a per-sidebar `--sidebar-width` override set on `Sidebar.Nav`
1201
- does not reach it in either direction — a narrower panel leaves the floor
963
+ does not reach it in either direction: a narrower panel leaves the floor
1202
964
  wider than its row. Override `--sidebar-width` here to move both (and
1203
965
  `--sidebar-width-mobile` with it, or the floor outgrows the sheet's row),
1204
966
  or set `--sidebar-row-width` on the outside surface itself. */
@@ -1213,7 +975,7 @@ The `invert-theme` class renders a DOM subtree in the opposite theme of the
1213
975
  page: light ⇄ dark.
1214
976
 
1215
977
  Mechanism: every mantle color utility resolves a CSS custom property at the
1216
- element that uses it, and custom properties inherit — so re-declaring the
978
+ element that uses it, and custom properties inherit, so re-declaring the
1217
979
  theme variables on one element re-themes its entire subtree. Each theme
1218
980
  block's selector list therefore also matches `.invert-theme` subtrees on the
1219
981
  opposite theme's pages (see the LIGHT DEFS and DARK DEFS selectors above); the
@@ -1227,8 +989,8 @@ Requirements and limitations:
1227
989
  - Theme variant utilities (`dark:*`, `light:*`) key off the page theme
1228
990
  classes on `:root`, not the inversion scope, so they do not flip inside an
1229
991
  island. This includes the six
1230
- mantle internals that still carry variant-gated tweaks — Progress Bar,
1231
- Progress Donut, RadioGroup, Skeleton, Table, and Toast — so composing those
992
+ mantle internals that still carry variant-gated tweaks (Progress Bar,
993
+ Progress Donut, RadioGroup, Skeleton, Table, and Toast), so composing those
1232
994
  inside an island mixes page-variant selection with island-resolved variables
1233
995
  until they migrate to theme-declared tokens. Redefining the variants cannot
1234
996
  fix this: they are already scope-relative (`&:where(.dark, .dark *, …)`), and
@@ -1237,24 +999,41 @@ Requirements and limitations:
1237
999
  - Semantic tokens are re-declared ON the island (see the palette-alias rule
1238
1000
  below), and a declaration on the element beats a value inherited from an
1239
1001
  ancestor. So a consumer who rebrands at the alias level
1240
- (`:root { --color-accent-600: … }`) does not see it inside islands — rebrand
1002
+ (`:root { --color-accent-600: … }`) does not see it inside islands. Rebrand
1241
1003
  at the ramp level (`--color-sky-600`) instead, which the aliases resolve
1242
1004
  through.
1243
1005
  - Nesting `invert-theme` inside an inverted subtree is idempotent: the inner
1244
1006
  island stays inverted relative to the page (it does not revert).
1245
1007
  - Box shadows flip with the island: shadow utilities inline
1246
1008
  `var(--shadow-color)` / `var(--shadow-*-opacity)` at the consuming element,
1247
- and the theme blocks re-declare those tokens on islands — so content inside
1009
+ and the theme blocks re-declare those tokens on islands, so content inside
1248
1010
  a light island gets light-theme shadows, which keeps the island's interior
1249
1011
  coherent.
1250
1012
 
1251
- The rule below re-declares the palette aliases from the `@theme` block so
1252
- they re-resolve against the island's inverted ramps: `@theme` variables are
1253
- emitted at `:root`, where e.g. `--color-accent-500` computes to the page
1254
- theme's sky-500 before the island can flip it. Keep it in sync with the
1255
- `@theme` aliases — the invert-theme test suite enforces the pairing.
1013
+ The utility below holds the CSS that only an island needs. It is an
1014
+ `@utility`, so Tailwind emits it only when a scanned file names
1015
+ `invert-theme`; a page with no island ships none of it. No unlayered theme
1016
+ rule sets these properties on the island element, so the utilities layer
1017
+ changes no value.
1018
+
1019
+ - It re-declares the palette aliases from the `@theme` block so they
1020
+ re-resolve against the island's inverted ramps: `@theme` variables are
1021
+ emitted at `:root`, where e.g. `--color-accent-500` computes to the page
1022
+ theme's sky-500 before the island can flip it. Keep it in sync with the
1023
+ `@theme` aliases; the invert-theme test suite enforces the pairing.
1024
+ - LIGHT PALETTE RESTORE: on a dark page, it restores Tailwind's default light
1025
+ palette on the island. MARK: DARK DEFS never encodes light values. Every
1026
+ value is verbatim from the pinned tailwindcss/theme.css (the invert-theme
1027
+ test suite pins them against it). It is scoped to islands on purpose: at
1028
+ page level Tailwind's own defaults already supply these values, and a
1029
+ declaration at `:root` would override a consumer's own
1030
+ `@theme { --color-<ramp>-<stop>: … }` for every ramp. Limitation: an
1031
+ island restores *mantle's* pinned defaults, so a consumer who rebrands a
1032
+ ramp sees it on the page but not inside an island. Closing that gap needs
1033
+ a shadow copy of every ramp under a second name, a cost the inversion
1034
+ feature does not justify.
1256
1035
  */
1257
- .invert-theme {
1036
+ @utility invert-theme {
1258
1037
  --color-accent-50: var(--color-sky-50);
1259
1038
  --color-accent-100: var(--color-sky-100);
1260
1039
  --color-accent-200: var(--color-sky-200);
@@ -1326,6 +1105,250 @@ theme's sky-500 before the island can flip it. Keep it in sync with the
1326
1105
  --color-important-800: var(--color-purple-800);
1327
1106
  --color-important-900: var(--color-purple-900);
1328
1107
  --color-important-950: var(--color-purple-950);
1108
+
1109
+ --color-gray-50: var(--color-neutral-50);
1110
+ --color-gray-100: var(--color-neutral-100);
1111
+ --color-gray-200: var(--color-neutral-200);
1112
+ --color-gray-300: var(--color-neutral-300);
1113
+ --color-gray-400: var(--color-neutral-400);
1114
+ --color-gray-500: var(--color-neutral-500);
1115
+ --color-gray-600: var(--color-neutral-600);
1116
+ --color-gray-700: var(--color-neutral-700);
1117
+ --color-gray-800: var(--color-neutral-800);
1118
+ --color-gray-900: var(--color-neutral-900);
1119
+ --color-gray-950: var(--color-neutral-950);
1120
+
1121
+ /* LIGHT PALETTE RESTORE: see the comment above this utility. */
1122
+ :root:is(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"]) & {
1123
+ --color-white: oklch(100% 0 0);
1124
+ --color-black: oklch(0% 0 0);
1125
+
1126
+ --color-neutral-50: oklch(98.5% 0 none);
1127
+ --color-neutral-100: oklch(97% 0 none);
1128
+ --color-neutral-200: oklch(92.2% 0 none);
1129
+ --color-neutral-300: oklch(87% 0 none);
1130
+ --color-neutral-400: oklch(70.8% 0 none);
1131
+ --color-neutral-500: oklch(55.6% 0 none);
1132
+ --color-neutral-600: oklch(43.9% 0 none);
1133
+ --color-neutral-700: oklch(37.1% 0 none);
1134
+ --color-neutral-800: oklch(26.9% 0 none);
1135
+ --color-neutral-900: oklch(20.5% 0 none);
1136
+
1137
+ --color-red-50: oklch(97.1% 0.013 17.38);
1138
+ --color-red-100: oklch(93.6% 0.032 17.717);
1139
+ --color-red-200: oklch(88.5% 0.062 18.334);
1140
+ --color-red-300: oklch(80.8% 0.114 19.571);
1141
+ --color-red-400: oklch(70.4% 0.191 22.216);
1142
+ --color-red-500: oklch(63.7% 0.237 25.331);
1143
+ --color-red-600: oklch(57.7% 0.245 27.325);
1144
+ --color-red-700: oklch(50.5% 0.213 27.518);
1145
+ --color-red-800: oklch(44.4% 0.177 26.899);
1146
+ --color-red-900: oklch(39.6% 0.141 25.723);
1147
+ --color-red-950: oklch(25.8% 0.092 26.042);
1148
+
1149
+ --color-orange-50: oklch(98% 0.016 73.684);
1150
+ --color-orange-100: oklch(95.4% 0.038 75.164);
1151
+ --color-orange-200: oklch(90.1% 0.076 70.697);
1152
+ --color-orange-300: oklch(83.7% 0.128 66.29);
1153
+ --color-orange-400: oklch(75% 0.183 55.934);
1154
+ --color-orange-500: oklch(70.5% 0.213 47.604);
1155
+ --color-orange-600: oklch(64.6% 0.222 41.116);
1156
+ --color-orange-700: oklch(55.3% 0.195 38.402);
1157
+ --color-orange-800: oklch(47% 0.157 37.304);
1158
+ --color-orange-900: oklch(40.8% 0.123 38.172);
1159
+ --color-orange-950: oklch(26.6% 0.079 36.259);
1160
+
1161
+ --color-amber-50: oklch(98.7% 0.022 95.277);
1162
+ --color-amber-100: oklch(96.2% 0.059 95.617);
1163
+ --color-amber-200: oklch(92.4% 0.12 95.746);
1164
+ --color-amber-300: oklch(87.9% 0.169 91.605);
1165
+ --color-amber-400: oklch(82.8% 0.189 84.429);
1166
+ --color-amber-500: oklch(76.9% 0.188 70.08);
1167
+ --color-amber-600: oklch(66.6% 0.179 58.318);
1168
+ --color-amber-700: oklch(55.5% 0.163 48.998);
1169
+ --color-amber-800: oklch(47.3% 0.137 46.201);
1170
+ --color-amber-900: oklch(41.4% 0.112 45.904);
1171
+ --color-amber-950: oklch(27.9% 0.077 45.635);
1172
+
1173
+ --color-yellow-50: oklch(98.7% 0.026 102.212);
1174
+ --color-yellow-100: oklch(97.3% 0.071 103.193);
1175
+ --color-yellow-200: oklch(94.5% 0.129 101.54);
1176
+ --color-yellow-300: oklch(90.5% 0.182 98.111);
1177
+ --color-yellow-400: oklch(85.2% 0.199 91.936);
1178
+ --color-yellow-500: oklch(79.5% 0.184 86.047);
1179
+ --color-yellow-600: oklch(68.1% 0.162 75.834);
1180
+ --color-yellow-700: oklch(55.4% 0.135 66.442);
1181
+ --color-yellow-800: oklch(47.6% 0.114 61.907);
1182
+ --color-yellow-900: oklch(42.1% 0.095 57.708);
1183
+ --color-yellow-950: oklch(28.6% 0.066 53.813);
1184
+
1185
+ --color-lime-50: oklch(98.6% 0.031 120.757);
1186
+ --color-lime-100: oklch(96.7% 0.067 122.328);
1187
+ --color-lime-200: oklch(93.8% 0.127 124.321);
1188
+ --color-lime-300: oklch(89.7% 0.196 126.665);
1189
+ --color-lime-400: oklch(84.1% 0.238 128.85);
1190
+ --color-lime-500: oklch(76.8% 0.233 130.85);
1191
+ --color-lime-600: oklch(64.8% 0.2 131.684);
1192
+ --color-lime-700: oklch(53.2% 0.157 131.589);
1193
+ --color-lime-800: oklch(45.3% 0.124 130.933);
1194
+ --color-lime-900: oklch(40.5% 0.101 131.063);
1195
+ --color-lime-950: oklch(27.4% 0.072 132.109);
1196
+
1197
+ --color-green-50: oklch(98.2% 0.018 155.826);
1198
+ --color-green-100: oklch(96.2% 0.044 156.743);
1199
+ --color-green-200: oklch(92.5% 0.084 155.995);
1200
+ --color-green-300: oklch(87.1% 0.15 154.449);
1201
+ --color-green-400: oklch(79.2% 0.209 151.711);
1202
+ --color-green-500: oklch(72.3% 0.219 149.579);
1203
+ --color-green-600: oklch(62.7% 0.194 149.214);
1204
+ --color-green-700: oklch(52.7% 0.154 150.069);
1205
+ --color-green-800: oklch(44.8% 0.119 151.328);
1206
+ --color-green-900: oklch(39.3% 0.095 152.535);
1207
+ --color-green-950: oklch(26.6% 0.065 152.934);
1208
+
1209
+ --color-emerald-50: oklch(97.9% 0.021 166.113);
1210
+ --color-emerald-100: oklch(95% 0.052 163.051);
1211
+ --color-emerald-200: oklch(90.5% 0.093 164.15);
1212
+ --color-emerald-300: oklch(84.5% 0.143 164.978);
1213
+ --color-emerald-400: oklch(76.5% 0.177 163.223);
1214
+ --color-emerald-500: oklch(69.6% 0.17 162.48);
1215
+ --color-emerald-600: oklch(59.6% 0.145 163.225);
1216
+ --color-emerald-700: oklch(50.8% 0.118 165.612);
1217
+ --color-emerald-800: oklch(43.2% 0.095 166.913);
1218
+ --color-emerald-900: oklch(37.8% 0.077 168.94);
1219
+ --color-emerald-950: oklch(26.2% 0.051 172.552);
1220
+
1221
+ --color-teal-50: oklch(98.4% 0.014 180.72);
1222
+ --color-teal-100: oklch(95.3% 0.051 180.801);
1223
+ --color-teal-200: oklch(91% 0.096 180.426);
1224
+ --color-teal-300: oklch(85.5% 0.138 181.071);
1225
+ --color-teal-400: oklch(77.7% 0.152 181.912);
1226
+ --color-teal-500: oklch(70.4% 0.14 182.503);
1227
+ --color-teal-600: oklch(60% 0.118 184.704);
1228
+ --color-teal-700: oklch(51.1% 0.096 186.391);
1229
+ --color-teal-800: oklch(43.7% 0.078 188.216);
1230
+ --color-teal-900: oklch(38.6% 0.063 188.416);
1231
+ --color-teal-950: oklch(27.7% 0.046 192.524);
1232
+
1233
+ --color-cyan-50: oklch(98.4% 0.019 200.873);
1234
+ --color-cyan-100: oklch(95.6% 0.045 203.388);
1235
+ --color-cyan-200: oklch(91.7% 0.08 205.041);
1236
+ --color-cyan-300: oklch(86.5% 0.127 207.078);
1237
+ --color-cyan-400: oklch(78.9% 0.154 211.53);
1238
+ --color-cyan-500: oklch(71.5% 0.143 215.221);
1239
+ --color-cyan-600: oklch(60.9% 0.126 221.723);
1240
+ --color-cyan-700: oklch(52% 0.105 223.128);
1241
+ --color-cyan-800: oklch(45% 0.085 224.283);
1242
+ --color-cyan-900: oklch(39.8% 0.07 227.392);
1243
+ --color-cyan-950: oklch(30.2% 0.056 229.695);
1244
+
1245
+ --color-sky-50: oklch(97.7% 0.013 236.62);
1246
+ --color-sky-100: oklch(95.1% 0.026 236.824);
1247
+ --color-sky-200: oklch(90.1% 0.058 230.902);
1248
+ --color-sky-300: oklch(82.8% 0.111 230.318);
1249
+ --color-sky-400: oklch(74.6% 0.16 232.661);
1250
+ --color-sky-500: oklch(68.5% 0.169 237.323);
1251
+ --color-sky-700: oklch(50% 0.134 242.749);
1252
+ --color-sky-800: oklch(44.3% 0.11 240.79);
1253
+ --color-sky-900: oklch(39.1% 0.09 240.876);
1254
+ --color-sky-950: oklch(29.3% 0.066 243.157);
1255
+
1256
+ --color-indigo-50: oklch(96.2% 0.018 272.314);
1257
+ --color-indigo-100: oklch(93% 0.034 272.788);
1258
+ --color-indigo-200: oklch(87% 0.065 274.039);
1259
+ --color-indigo-300: oklch(78.5% 0.115 274.713);
1260
+ --color-indigo-400: oklch(67.3% 0.182 276.935);
1261
+ --color-indigo-500: oklch(58.5% 0.233 277.117);
1262
+ --color-indigo-600: oklch(51.1% 0.262 276.966);
1263
+ --color-indigo-700: oklch(45.7% 0.24 277.023);
1264
+ --color-indigo-800: oklch(39.8% 0.195 277.366);
1265
+ --color-indigo-900: oklch(35.9% 0.144 278.697);
1266
+ --color-indigo-950: oklch(25.7% 0.09 281.288);
1267
+
1268
+ --color-violet-50: oklch(96.9% 0.016 293.756);
1269
+ --color-violet-100: oklch(94.3% 0.029 294.588);
1270
+ --color-violet-200: oklch(89.4% 0.057 293.283);
1271
+ --color-violet-300: oklch(81.1% 0.111 293.571);
1272
+ --color-violet-400: oklch(70.2% 0.183 293.541);
1273
+ --color-violet-500: oklch(60.6% 0.25 292.717);
1274
+ --color-violet-600: oklch(54.1% 0.281 293.009);
1275
+ --color-violet-700: oklch(49.1% 0.27 292.581);
1276
+ --color-violet-800: oklch(43.2% 0.232 292.759);
1277
+ --color-violet-900: oklch(38% 0.189 293.745);
1278
+ --color-violet-950: oklch(28.3% 0.141 291.089);
1279
+
1280
+ --color-purple-50: oklch(97.7% 0.014 308.299);
1281
+ --color-purple-100: oklch(94.6% 0.033 307.174);
1282
+ --color-purple-200: oklch(90.2% 0.063 306.703);
1283
+ --color-purple-300: oklch(82.7% 0.119 306.383);
1284
+ --color-purple-400: oklch(71.4% 0.203 305.504);
1285
+ --color-purple-500: oklch(62.7% 0.265 303.9);
1286
+ --color-purple-600: oklch(55.8% 0.288 302.321);
1287
+ --color-purple-700: oklch(49.6% 0.265 301.924);
1288
+ --color-purple-800: oklch(43.8% 0.218 303.724);
1289
+ --color-purple-900: oklch(38.1% 0.176 304.987);
1290
+ --color-purple-950: oklch(29.1% 0.149 302.717);
1291
+
1292
+ --color-fuchsia-50: oklch(97.7% 0.017 320.058);
1293
+ --color-fuchsia-100: oklch(95.2% 0.037 318.852);
1294
+ --color-fuchsia-200: oklch(90.3% 0.076 319.62);
1295
+ --color-fuchsia-300: oklch(83.3% 0.145 321.434);
1296
+ --color-fuchsia-400: oklch(74% 0.238 322.16);
1297
+ --color-fuchsia-500: oklch(66.7% 0.295 322.15);
1298
+ --color-fuchsia-600: oklch(59.1% 0.293 322.896);
1299
+ --color-fuchsia-700: oklch(51.8% 0.253 323.949);
1300
+ --color-fuchsia-800: oklch(45.2% 0.211 324.591);
1301
+ --color-fuchsia-900: oklch(40.1% 0.17 325.612);
1302
+ --color-fuchsia-950: oklch(29.3% 0.136 325.661);
1303
+
1304
+ --color-pink-50: oklch(97.1% 0.014 343.198);
1305
+ --color-pink-100: oklch(94.8% 0.028 342.258);
1306
+ --color-pink-200: oklch(89.9% 0.061 343.231);
1307
+ --color-pink-300: oklch(82.3% 0.12 346.018);
1308
+ --color-pink-400: oklch(71.8% 0.202 349.761);
1309
+ --color-pink-500: oklch(65.6% 0.241 354.308);
1310
+ --color-pink-600: oklch(59.2% 0.249 0.584);
1311
+ --color-pink-700: oklch(52.5% 0.223 3.958);
1312
+ --color-pink-800: oklch(45.9% 0.187 3.815);
1313
+ --color-pink-900: oklch(40.8% 0.153 2.432);
1314
+ --color-pink-950: oklch(28.4% 0.109 3.907);
1315
+
1316
+ --color-rose-50: oklch(96.9% 0.015 12.422);
1317
+ --color-rose-100: oklch(94.1% 0.03 12.58);
1318
+ --color-rose-200: oklch(89.2% 0.058 10.001);
1319
+ --color-rose-300: oklch(81% 0.117 11.638);
1320
+ --color-rose-400: oklch(71.2% 0.194 13.428);
1321
+ --color-rose-500: oklch(64.5% 0.246 16.439);
1322
+ --color-rose-600: oklch(58.6% 0.253 17.585);
1323
+ --color-rose-700: oklch(51.4% 0.222 16.935);
1324
+ --color-rose-800: oklch(45.5% 0.188 13.697);
1325
+ --color-rose-900: oklch(41% 0.159 10.272);
1326
+ --color-rose-950: oklch(27.1% 0.105 12.094);
1327
+
1328
+ --color-slate-50: oklch(98.4% 0.003 247.858);
1329
+ --color-slate-100: oklch(96.8% 0.007 247.896);
1330
+ --color-slate-200: oklch(92.9% 0.013 255.508);
1331
+ --color-slate-300: oklch(86.9% 0.022 252.894);
1332
+ --color-slate-400: oklch(70.4% 0.04 256.788);
1333
+ --color-slate-500: oklch(55.4% 0.046 257.417);
1334
+ --color-slate-600: oklch(44.6% 0.043 257.281);
1335
+ --color-slate-700: oklch(37.2% 0.044 257.287);
1336
+ --color-slate-800: oklch(27.9% 0.041 260.031);
1337
+ --color-slate-900: oklch(20.8% 0.042 265.755);
1338
+ --color-slate-950: oklch(12.9% 0.042 264.695);
1339
+
1340
+ --color-zinc-50: oklch(98.5% 0 none);
1341
+ --color-zinc-100: oklch(96.7% 0.001 286.375);
1342
+ --color-zinc-200: oklch(92% 0.004 286.32);
1343
+ --color-zinc-300: oklch(87.1% 0.006 286.286);
1344
+ --color-zinc-400: oklch(70.5% 0.015 286.067);
1345
+ --color-zinc-500: oklch(55.2% 0.016 285.938);
1346
+ --color-zinc-600: oklch(44.2% 0.017 285.786);
1347
+ --color-zinc-700: oklch(37% 0.013 285.805);
1348
+ --color-zinc-800: oklch(27.4% 0.006 286.033);
1349
+ --color-zinc-900: oklch(21% 0.006 285.885);
1350
+ --color-zinc-950: oklch(14.1% 0.005 285.823);
1351
+ }
1329
1352
  }
1330
1353
 
1331
1354
  /**
@@ -1333,37 +1356,20 @@ MARK: CUSTOM VARIANTS
1333
1356
  */
1334
1357
  @custom-variant light (&:where(.light, .light *, [data-theme="light"]:not([data-applied-theme]), [data-applied-theme="light"]));
1335
1358
  @custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"]));
1359
+ /* `dark` on the root only, spelled as the dark theme block reads it: a `.dark` class on any other ancestor does not match. */
1360
+ @custom-variant root-dark (:root:is(.dark, [data-theme="dark"]:not([data-applied-theme]), [data-applied-theme="dark"]) &);
1336
1361
 
1337
1362
  @custom-variant aria-collapsed (&[aria-expanded="false"]);
1338
1363
  @custom-variant aria-invalid (&[aria-invalid="true"]);
1339
1364
  @custom-variant aria-unchecked (&[aria-checked="false"]);
1340
1365
 
1341
- @custom-variant data-active-item (&[data-active-item~="true"]);
1342
- @custom-variant data-disabled (&[data-disabled]);
1343
- @custom-variant data-drag-over (&[data-drag-over="true"]);
1344
- @custom-variant data-highlighted (&[data-highlighted]);
1345
- @custom-variant data-orientation-horizontal (&[data-orientation="horizontal"]);
1346
- @custom-variant data-orientation-vertical (&[data-orientation="vertical"]);
1347
- @custom-variant data-side-bottom (&[data-side="bottom"]);
1348
- @custom-variant data-side-left (&[data-side="left"]);
1349
- @custom-variant data-side-right (&[data-side="right"]);
1350
- @custom-variant data-side-top (&[data-side="top"]);
1351
- @custom-variant data-state-active (&[data-state~=active]);
1352
- @custom-variant data-state-checked (&[data-state~=checked]);
1353
- @custom-variant data-state-closed (&[data-state~=closed]);
1354
- @custom-variant data-state-idle (&[data-state~=idle]);
1355
- @custom-variant data-state-inactive (&[data-state~=inactive]);
1356
- @custom-variant data-state-indeterminate (&[data-state~=indeterminate]);
1357
- @custom-variant data-state-open (&[data-state~=open]);
1358
- @custom-variant data-state-pending (&[data-state~=pending]);
1359
- @custom-variant data-state-selected (&[data-state~=selected]);
1360
- @custom-variant data-state-submitting (&[data-state~=submitting]);
1361
- @custom-variant data-state-unchecked (&[data-state~=unchecked]);
1362
- @custom-variant data-validation-error (&[data-validation="error"]);
1363
- @custom-variant data-validation-success (&[data-validation="success"]);
1364
- @custom-variant data-validation-warning (&[data-validation="warning"]);
1365
-
1366
1366
  @custom-variant where (:where(&));
1367
+ /*
1368
+ * Each child of the element except the last, at zero specificity, as Tailwind's
1369
+ * `space-*` and `divide-*` match. Why not those: they put the class inside
1370
+ * `:where()`, so Chromium tries the rule on each element of the page.
1371
+ */
1372
+ @custom-variant between (:where(&) > :where(:not(:last-child)));
1367
1373
 
1368
1374
  @custom-variant hover-hover {
1369
1375
  @media (hover: hover) {
@@ -1395,6 +1401,50 @@ MARK: CUSTOM VARIANTS
1395
1401
  strong {
1396
1402
  font-weight: 500;
1397
1403
  }
1404
+
1405
+ /*
1406
+ * An open modal `Dialog`, `AlertDialog`, `Sheet`, or mobile `Sidebar.Nav`
1407
+ * locks page scroll on `<body>`, as Radix did: the browser applies the
1408
+ * `overflow` of `<body>` to the viewport. Why not the root too: a page
1409
+ * whose `<body>` has `h-full` would lose its scroll position. The dialog
1410
+ * marks the root as it
1411
+ * opens and measures the width of the scrollbar that goes, so the page does
1412
+ * not shift. `!important` beats an overflow utility on `<body>`.
1413
+ *
1414
+ * Why an attribute, not `:root:has(dialog:modal)`: a `:has()` on the root
1415
+ * makes the browser check it again on each change to the page, which adds
1416
+ * about 16 ms to a tab switch at 4× CPU slowdown.
1417
+ */
1418
+ [data-mantle-scroll-lock] body {
1419
+ overflow: hidden !important;
1420
+ padding-inline-end: var(--mantle-scrollbar-width, 0px);
1421
+ }
1422
+
1423
+ /*
1424
+ * The controls in a `RadioGroup`, `SegmentedControl`, or `CheckboxGroup`
1425
+ * item sit over the native input that covers the item, so they keep their
1426
+ * own clicks. The list matches `CONTENT_CONTROL_SELECTOR` in
1427
+ * `utils/interactive-target.ts`, but for `label`, which toggles the input.
1428
+ *
1429
+ * Why the base layer and `:where()`: a position or z-index utility on the control wins.
1430
+ */
1431
+ :where(.covered-item-content)
1432
+ :where(
1433
+ a[href],
1434
+ button,
1435
+ details,
1436
+ input,
1437
+ select,
1438
+ textarea,
1439
+ [role="button"],
1440
+ [role="link"],
1441
+ [role="menuitem"],
1442
+ [tabindex]:not([tabindex="-1"]),
1443
+ [contenteditable="true"]
1444
+ ) {
1445
+ position: relative;
1446
+ z-index: 2;
1447
+ }
1398
1448
  }
1399
1449
 
1400
1450
  /**
@@ -1411,6 +1461,50 @@ MARK: UTILITIES
1411
1461
  cursor: inherit;
1412
1462
  }
1413
1463
 
1464
+ /*
1465
+ * An escape hatch: a hit area of at least 44px by 44px, centered on the element,
1466
+ * with no change to the layout or the look. `--hit-area-size` sets another
1467
+ * minimum. Make the control the correct size first. The docs page `/base/hit-area`
1468
+ * lists when to use it and the risks.
1469
+ *
1470
+ * Why `position: relative`: the hit area is positioned against the element.
1471
+ * Tailwind writes this utility before `absolute`, `fixed`, and `sticky`, so
1472
+ * each of those classes wins on the same element.
1473
+ */
1474
+ @utility hit-area {
1475
+ position: relative;
1476
+
1477
+ &::after {
1478
+ content: "";
1479
+ position: absolute;
1480
+ top: 50%;
1481
+ left: 50%;
1482
+ translate: -50% -50%;
1483
+ width: max(100%, var(--hit-area-size, 2.75rem));
1484
+ height: max(100%, var(--hit-area-size, 2.75rem));
1485
+ }
1486
+ }
1487
+
1488
+ /*
1489
+ * The focus ring of mantle: a 4px ring in a focus color, in place of the
1490
+ * browser outline. Put a state variant before it, such as
1491
+ * `focus-visible:focus-ring`. `focus-ring` is the accent ring; `focus-ring-danger`,
1492
+ * `focus-ring-warning`, `focus-ring-success`, and `focus-ring-neutral` are the
1493
+ * other tones. The docs page `/base/focus-ring` lists the rules.
1494
+ *
1495
+ * Why Tailwind's ring: it is a box shadow that adds to the element's own
1496
+ * shadows, and a later `ring-focus-*` class can change the color for a state.
1497
+ */
1498
+ @utility focus-ring {
1499
+ @apply ring-4 outline-hidden;
1500
+ --tw-ring-color: var(--ring-color-focus-accent);
1501
+ }
1502
+
1503
+ @utility focus-ring-* {
1504
+ @apply ring-4 outline-hidden;
1505
+ --tw-ring-color: --value(--ring-color-focus-*);
1506
+ }
1507
+
1414
1508
  @utility scrollbar {
1415
1509
  scrollbar-color: --alpha(var(--color-neutral-800) / 50%) transparent;
1416
1510
 
@@ -1438,6 +1532,56 @@ MARK: UTILITIES
1438
1532
  }
1439
1533
  }
1440
1534
 
1535
+ /*
1536
+ * The native input of `OtpInput.Root`. It lies over the slots and takes the
1537
+ * pointer, the focus, the selection, and the fill, and it paints none of them.
1538
+ * `--_otp-badge-gutter` widens it past the last slot for a password manager badge.
1539
+ * Why `!important`: a page's own input, outline, or selection styles must not show the input.
1540
+ */
1541
+ @utility otp-input-overlay {
1542
+ position: absolute !important;
1543
+ inset: 0 !important;
1544
+ width: calc(100% + var(--_otp-badge-gutter, 0px)) !important;
1545
+ height: 100% !important;
1546
+ clip-path: inset(0 var(--_otp-badge-gutter) 0 0) !important;
1547
+ border: 0 solid transparent !important;
1548
+ background: transparent !important;
1549
+ color: transparent !important;
1550
+ caret-color: transparent !important;
1551
+ box-shadow: none !important;
1552
+ outline: 0 solid transparent !important;
1553
+ pointer-events: auto !important;
1554
+ /* Why left to right: a click past the text then puts the caret after it, also on a right-to-left page. */
1555
+ direction: ltr !important;
1556
+ /* A font as tall as the slots, with negative letter spacing, keeps the invisible text inside the input. */
1557
+ font-family: monospace !important;
1558
+ font-size: 100cqh !important;
1559
+ font-variant-numeric: tabular-nums !important;
1560
+ line-height: 1 !important;
1561
+ letter-spacing: -0.5em !important;
1562
+
1563
+ &::selection {
1564
+ background: transparent !important;
1565
+ color: transparent !important;
1566
+ }
1567
+
1568
+ /* A browser paints its own autofill colors over a transparent input. */
1569
+ &:autofill {
1570
+ opacity: 0 !important;
1571
+ -webkit-text-fill-color: transparent !important;
1572
+ }
1573
+
1574
+ /* iOS Safari gets a narrower text box. */
1575
+ @supports (-webkit-touch-callout: none) {
1576
+ left: -1px !important;
1577
+ right: 1px !important;
1578
+ letter-spacing: -0.6em !important;
1579
+ font-weight: 100 !important;
1580
+ font-stretch: ultra-condensed !important;
1581
+ font-optical-sizing: none !important;
1582
+ }
1583
+ }
1584
+
1441
1585
  @utility scroll-shadow {
1442
1586
  /* Shadow Cover TOP */
1443
1587
  background:
@@ -1529,8 +1673,8 @@ MARK: UTILITIES
1529
1673
  /*
1530
1674
  * Fades the inline-start/end edges of a horizontally-scrolling container to
1531
1675
  * signal more content in that direction. The element is its own scroll
1532
- * timeline, so an edge with nothing beyond it — at the start, at the end, or
1533
- * with no overflow at all (inactive timeline => initial value) — renders
1676
+ * timeline, so an edge with nothing beyond it (at the start, at the end, or
1677
+ * with no overflow at all: inactive timeline => initial value) renders
1534
1678
  * cleanly with no fade. Consumers can pin an edge opaque by overriding
1535
1679
  * `--_fade-left` / `--_fade-right` (the animation drives the upstream
1536
1680
  * `--_scroll-fade-*` vars, so a static override always wins).
@@ -1565,7 +1709,7 @@ MARK: UTILITIES
1565
1709
  }
1566
1710
 
1567
1711
  @utility scroll-fade-y {
1568
- /* Vertical sibling of `scroll-fade-x` — see it for how the masking works. */
1712
+ /* Vertical sibling of `scroll-fade-x`; see it for how the masking works. */
1569
1713
  --_fade-top: var(--_scroll-fade-top);
1570
1714
  --_fade-bottom: var(--_scroll-fade-bottom);
1571
1715
 
@@ -1594,7 +1738,7 @@ MARK: UTILITIES
1594
1738
  * edge should fade (e.g. a sidebar that fades content scrolling under a sticky
1595
1739
  * header but stays flush at the bottom). Each masks and drives only its own
1596
1740
  * edge; the opposite edge stays fully opaque. Same scroll-driven mechanics and
1597
- * fallback behavior as the axis utilities — see `scroll-fade-x` for details.
1741
+ * fallback behavior as the axis utilities; see `scroll-fade-x` for details.
1598
1742
  */
1599
1743
  @utility scroll-fade-t {
1600
1744
  --_fade-top: var(--_scroll-fade-top);
@@ -1656,6 +1800,50 @@ MARK: UTILITIES
1656
1800
  }
1657
1801
  }
1658
1802
 
1803
+ @utility scroll-cue-y {
1804
+ /*
1805
+ * Fades the top and bottom edges of a vertical scroll container while it has
1806
+ * more content past them. A script marks the edges: `observeScrollEdges` sets
1807
+ * `data-overflow-top` and `data-overflow-bottom` only when an edge flips, so
1808
+ * a scroll frame runs no style work. Each fade is a sticky gradient in
1809
+ * `--scroll-cue-color` (the popover background by default) laid over the
1810
+ * content: it masks nothing and has no children, so showing it restyles
1811
+ * one box. Sticky offsets start inside the padding, so a container with
1812
+ * vertical padding moves them out by it, such as `before:-top-1 after:-bottom-1`.
1813
+ */
1814
+ &::before,
1815
+ &::after {
1816
+ content: "";
1817
+ position: sticky;
1818
+ z-index: 1;
1819
+ display: block;
1820
+ flex: none;
1821
+ height: 1.5rem;
1822
+ pointer-events: none;
1823
+ opacity: 0;
1824
+ }
1825
+ &::before {
1826
+ top: 0;
1827
+ margin-bottom: -1.5rem;
1828
+ background: linear-gradient(
1829
+ var(--scroll-cue-color, var(--background-color-popover)),
1830
+ transparent
1831
+ );
1832
+ }
1833
+ &::after {
1834
+ bottom: 0;
1835
+ margin-top: -1.5rem;
1836
+ background: linear-gradient(
1837
+ transparent,
1838
+ var(--scroll-cue-color, var(--background-color-popover))
1839
+ );
1840
+ }
1841
+ &[data-overflow-top]::before,
1842
+ &[data-overflow-bottom]::after {
1843
+ opacity: 1;
1844
+ }
1845
+ }
1846
+
1659
1847
  @utility nav-scroll-shadow {
1660
1848
  /* Shadow Cover TOP */
1661
1849
  background:
@@ -1711,42 +1899,46 @@ MARK: SHIKI SYNTAX HIGHLIGHT
1711
1899
 
1712
1900
  Also declared on `.invert-theme` islands: these tokens reference theme-dependent
1713
1901
  variables, and their `var()` references substitute at the element that declares
1714
- them — re-declaring them on the island makes them re-resolve against the
1902
+ them, so re-declaring them on the island makes them re-resolve against the
1715
1903
  island's inverted ramps instead of inheriting the page-theme values computed
1716
1904
  at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
1717
1905
  */
1718
- :root,
1719
- .invert-theme {
1720
- --shiki-foreground: var(--text-color-strong);
1721
- --shiki-background: transparent;
1722
- --shiki-color-text: var(--shiki-foreground);
1723
-
1724
- --shiki-token-comment: var(--text-color-muted);
1725
- --shiki-token-constant: var(--color-amber-700);
1726
- --shiki-token-string: var(--color-emerald-700);
1727
- --shiki-token-string-expression: var(--color-emerald-700);
1728
- --shiki-token-keyword: var(--color-purple-700);
1729
- --shiki-token-function: var(--color-sky-700);
1730
- --shiki-token-parameter: var(--color-rose-700);
1731
- --shiki-token-punctuation: var(--color-sky-700);
1732
-
1733
- --shiki-token-type: var(--color-amber-700);
1734
- --shiki-token-variable: var(--shiki-foreground);
1735
- --shiki-token-operator: var(--color-sky-700);
1736
- --shiki-token-attribute: var(--color-purple-700);
1737
- --shiki-token-property: var(--color-rose-700);
1738
- --shiki-token-escape: var(--color-sky-700);
1739
-
1740
- /* Mantle code-line rendering hooks (used by CodeBlock + server highlighter). */
1741
- --mantle-code-line-highlight-bg: --alpha(var(--color-accent-500) / 12%);
1742
- --mantle-code-line-number-color: var(--text-color-muted);
1743
- --mantle-code-line-number-width: 2rem;
1744
- --mantle-code-line-number-gap: 1rem;
1745
- --mantle-code-fold-gutter-width: 1.125rem;
1746
- --mantle-code-fold-gutter-gap: 0.25rem;
1747
- --mantle-code-fold-toggle-color: var(--text-color-muted);
1748
- --mantle-code-fold-toggle-hover-color: var(--text-color-strong);
1749
- --mantle-code-fold-ellipsis-color: var(--text-color-muted);
1906
+ /* No color-mix fallbacks in this block: see the note at the top of this file. */
1907
+ @supports (color: color-mix(in lab, red, red)) or (not (color: color-mix(in lab, red, red))) {
1908
+ :root,
1909
+ .invert-theme {
1910
+ --shiki-foreground: var(--text-color-strong);
1911
+ --shiki-background: transparent;
1912
+ --shiki-color-text: var(--shiki-foreground);
1913
+
1914
+ --shiki-token-comment: var(--text-color-muted);
1915
+ --shiki-token-constant: var(--color-amber-700);
1916
+ --shiki-token-string: var(--color-emerald-700);
1917
+ --shiki-token-string-expression: var(--color-emerald-700);
1918
+ --shiki-token-keyword: var(--color-purple-700);
1919
+ --shiki-token-function: var(--color-sky-700);
1920
+ --shiki-token-parameter: var(--color-rose-700);
1921
+ --shiki-token-punctuation: var(--color-sky-700);
1922
+
1923
+ --shiki-token-type: var(--color-amber-700);
1924
+ --shiki-token-variable: var(--shiki-foreground);
1925
+ --shiki-token-operator: var(--color-sky-700);
1926
+ --shiki-token-attribute: var(--color-purple-700);
1927
+ --shiki-token-property: var(--color-rose-700);
1928
+ --shiki-token-escape: var(--color-sky-700);
1929
+
1930
+ /* Mantle code-line rendering hooks (used by CodeBlock + server highlighter). */
1931
+ --mantle-code-line-highlight-bg: --alpha(var(--color-accent-500) / 12%);
1932
+ --mantle-code-line-number-color: var(--text-color-muted);
1933
+ --mantle-code-line-number-width: 2rem;
1934
+ --mantle-code-line-number-gap: 1rem;
1935
+ --mantle-code-fold-gutter-width: 1.125rem;
1936
+ --mantle-code-fold-gutter-gap: 0.25rem;
1937
+ --mantle-code-fold-line-height: 1.5rem;
1938
+ --mantle-code-fold-toggle-color: var(--text-color-muted);
1939
+ --mantle-code-fold-toggle-hover-color: var(--text-color-strong);
1940
+ --mantle-code-fold-ellipsis-color: var(--text-color-muted);
1941
+ }
1750
1942
  }
1751
1943
 
1752
1944
  .mantle-code-line {
@@ -1785,7 +1977,7 @@ at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
1785
1977
 
1786
1978
  /*
1787
1979
  * The opaque gutter backdrop. Scrolled code slides under the pinned numbers,
1788
- * so this masks it across the whole gutter band — the number column plus its
1980
+ * so this masks it across the whole gutter band: the number column plus its
1789
1981
  * gap, and the fold gutter on fold-enabled blocks (`--_gutter-overhang`).
1790
1982
  */
1791
1983
  .mantle-code-line-number::before {
@@ -1805,7 +1997,7 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle) .mantle-code-line
1805
1997
 
1806
1998
  /*
1807
1999
  * Re-add the line-highlight tint over the opaque backdrop, so a highlighted
1808
- * line's gutter matches its content — the same look the translucent line
2000
+ * line's gutter matches its content, with the same look the translucent line
1809
2001
  * background painted before the backdrop covered it.
1810
2002
  */
1811
2003
  .mantle-code-line-highlighted .mantle-code-line-number::before {
@@ -1834,7 +2026,9 @@ pre[data-mantle-line-numbers="true"] .mantle-code-fold-toggle {
1834
2026
  align-items: center;
1835
2027
  justify-content: center;
1836
2028
  width: var(--mantle-code-fold-gutter-width);
1837
- height: 1.5em; /* match line-height so the button is line-aligned */
2029
+ /* Why `1lh`: the toggle fills its line at each line height, and a button does not inherit one. */
2030
+ line-height: inherit;
2031
+ height: 1lh;
1838
2032
  margin-right: var(--mantle-code-fold-gutter-gap);
1839
2033
  padding: 0;
1840
2034
  border: 0;
@@ -1846,13 +2040,47 @@ pre[data-mantle-line-numbers="true"] .mantle-code-fold-toggle {
1846
2040
  border-radius: 0.125rem;
1847
2041
  }
1848
2042
 
2043
+ /*
2044
+ * A larger hit area with no change to the layout or the look. It grows only
2045
+ * sideways, into the empty space before the toggle and the gap after it: the
2046
+ * toggles of adjacent lines touch, so more height would overlap them.
2047
+ */
2048
+ .mantle-code-fold-toggle::before {
2049
+ content: "";
2050
+ position: absolute;
2051
+ inset: 0 calc(-1 * var(--mantle-code-fold-gutter-gap)) 0 -0.75rem;
2052
+ }
2053
+
2054
+ /* Why: the hit area is positioned against the toggle. The sticky rule above wins with line numbers on. */
2055
+ .mantle-code-fold-toggle {
2056
+ position: relative;
2057
+ }
2058
+
2059
+ /*
2060
+ * Why: adjacent targets need 24px between their centers (WCAG 2.5.8). An
2061
+ * audit measures the box of the toggle, not the hit area above, and the
2062
+ * toggles of adjacent lines are one line apart. Foldable code thus gets 24px
2063
+ * lines in place of the 20px of `text-mono`, and each toggle fills its line.
2064
+ *
2065
+ * Why `--tw-leading`: this rule is in no layer, so it wins over a `leading-*`
2066
+ * class from the consumer. That class sets `--tw-leading`, and it stays first.
2067
+ */
2068
+ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle) {
2069
+ line-height: var(--tw-leading, var(--mantle-code-fold-line-height));
2070
+ }
2071
+
1849
2072
  .mantle-code-fold-toggle:hover {
1850
2073
  color: var(--mantle-code-fold-toggle-hover-color);
1851
2074
  }
1852
2075
 
1853
- .mantle-code-fold-toggle:focus-visible {
1854
- outline: 2px solid var(--color-accent-500);
1855
- outline-offset: 1px;
2076
+ /*
2077
+ * Why `z-index`: the ring extends past the line, and the gutter of the next
2078
+ * line is later in the DOM at `z-index: 1`, so it would cover the ring. The
2079
+ * parent in the selector lets this rule win over the sticky rule above.
2080
+ */
2081
+ .mantle-code-line > .mantle-code-fold-toggle:focus-visible {
2082
+ @apply focus-ring;
2083
+ z-index: 2;
1856
2084
  }
1857
2085
 
1858
2086
  .mantle-code-fold-caret {
@@ -1869,8 +2097,8 @@ pre[data-mantle-line-numbers="true"] .mantle-code-fold-toggle {
1869
2097
  * Reserve the fold-gutter column so non-opener lines stay aligned with opener
1870
2098
  * lines (whose toggle button occupies the gutter). A single per-<pre> `:has()`
1871
2099
  * scopes this to fold-enabled blocks; within them every line's content gets the
1872
- * gutter margin by default, and opener lines — tagged `mantle-code-line-opener`
1873
- * at HTML-generation time (see decorate-highlighted-html.ts) — reset it. This
2100
+ * gutter margin by default, and opener lines (tagged `mantle-code-line-opener`
2101
+ * at HTML-generation time; see decorate-highlighted-html.ts) reset it. This
1874
2102
  * replaces the old *per-line* relational `:not(:has())` probe (whose cost scaled
1875
2103
  * with line count) with a flat class match, while keeping HTML payload tiny:
1876
2104
  * only the sparse opener lines carry an extra class.
@@ -1884,14 +2112,17 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1884
2112
  margin-left: 0;
1885
2113
  }
1886
2114
 
1887
- .mantle-code-fold-ellipsis {
1888
- display: none;
1889
- margin-left: 0.25rem;
1890
- padding: 0 0.375rem;
1891
- border-radius: 0.25rem;
1892
- background-color: --alpha(var(--text-color-muted) / 18%);
1893
- color: var(--mantle-code-fold-ellipsis-color);
1894
- user-select: none;
2115
+ /* No color-mix fallbacks in this block: see the note at the top of this file. */
2116
+ @supports (color: color-mix(in lab, red, red)) or (not (color: color-mix(in lab, red, red))) {
2117
+ .mantle-code-fold-ellipsis {
2118
+ display: none;
2119
+ margin-left: 0.25rem;
2120
+ padding: 0 0.375rem;
2121
+ border-radius: 0.25rem;
2122
+ background-color: --alpha(var(--text-color-muted) / 18%);
2123
+ color: var(--mantle-code-fold-ellipsis-color);
2124
+ user-select: none;
2125
+ }
1895
2126
  }
1896
2127
 
1897
2128
  .mantle-code-line:has(> .mantle-code-fold-toggle[aria-expanded="false"])
@@ -1905,6 +2136,37 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1905
2136
  flex: 1 1 auto;
1906
2137
  }
1907
2138
 
2139
+ /*
2140
+ * The accessible name of `ThemeSwitcher`: the theme its next click shows. CSS
2141
+ * writes it from the theme on `<html>`, so the name is correct before
2142
+ * hydration and with no JavaScript. Generated content keeps it out of the page
2143
+ * text that crawlers read. A pinned preference that differs from the OS gets
2144
+ * " (system default)", because the click then stores `"system"`.
2145
+ */
2146
+ @utility theme-switcher-name {
2147
+ &::before {
2148
+ content: "Switch to dark theme";
2149
+ }
2150
+
2151
+ @variant root-dark {
2152
+ &::before {
2153
+ content: "Switch to light theme";
2154
+ }
2155
+ }
2156
+
2157
+ @media (prefers-color-scheme: dark) {
2158
+ :root[data-theme="light"] &::after {
2159
+ content: " (system default)";
2160
+ }
2161
+ }
2162
+
2163
+ @media (prefers-color-scheme: light) {
2164
+ :root[data-theme="dark"] &::after {
2165
+ content: " (system default)";
2166
+ }
2167
+ }
2168
+ }
2169
+
1908
2170
  /*
1909
2171
  * The theme swap that `ThemeSwitcher` starts. The new theme grows in a circle
1910
2172
  * from the button over the old one, so neither snapshot fades or blends: the
@@ -1916,6 +2178,137 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1916
2178
  mix-blend-mode: normal;
1917
2179
  }
1918
2180
 
2181
+ /*
2182
+ * The morph between `AppLayout.Content` and `AppLayout.SidePanel`. Both carry
2183
+ * `view-transition-class: app-layout-card`, so a surface that is the page on
2184
+ * one route and the panel on the others morphs between them once the app
2185
+ * gives both the same `view-transition-name`. A class does nothing without a
2186
+ * name, so an unnamed card never takes part.
2187
+ *
2188
+ * It is a page transition, so it runs for 300ms, on ease-out-strong. The frame
2189
+ * clips its snapshots at the card's radius. Each snapshot keeps its own width
2190
+ * at the frame's end edge: a 24rem panel stretched across the page reads as a
2191
+ * zoom of blurred text, and the panel keeps its edge while the page grows out
2192
+ * of it. Reduced motion makes it a cut.
2193
+ */
2194
+ ::view-transition-group(*.app-layout-card),
2195
+ ::view-transition-old(*.app-layout-card),
2196
+ ::view-transition-new(*.app-layout-card) {
2197
+ animation-duration: 300ms;
2198
+ /* ease-out-strong: `@theme inline` emits no variable for the token. */
2199
+ animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
2200
+ }
2201
+
2202
+ /*
2203
+ * The frame draws the card's edge, and its snapshots sit 1px out under it, so
2204
+ * each snapshot's own border is under the frame's.
2205
+ */
2206
+ ::view-transition-group(*.app-layout-card) {
2207
+ box-sizing: border-box;
2208
+ overflow: clip;
2209
+ border: 1px solid var(--border-color-card-muted);
2210
+ border-radius: var(--radius-xl, 0.75rem);
2211
+ }
2212
+
2213
+ ::view-transition-old(*.app-layout-card),
2214
+ ::view-transition-new(*.app-layout-card) {
2215
+ width: auto;
2216
+ inset-block-start: -1px;
2217
+ inset-inline-start: auto;
2218
+ inset-inline-end: -1px;
2219
+ }
2220
+
2221
+ /*
2222
+ * When the page and the panel pair, the new snapshot is the card: an outline
2223
+ * in the card's surface color fills the frame around it and covers its own
2224
+ * border, and it stays opaque, so nothing behind shows through while the frame
2225
+ * moves. The old snapshot sits on top without its border and fades out in
2226
+ * 150ms, so two layouts of the same text do not show through each other.
2227
+ *
2228
+ * A card that enters or leaves alone is an only child, and it only fades, so
2229
+ * no empty card stays behind. Why not `:not(:only-child)` on the paired rules:
2230
+ * a view transition pseudo-element takes no `:not()`, and the browser drops
2231
+ * the whole rule.
2232
+ */
2233
+ @media (prefers-reduced-motion: no-preference) {
2234
+ ::view-transition-new(*.app-layout-card) {
2235
+ border-radius: var(--radius-xl, 0.75rem);
2236
+ outline: 100vmax solid var(--background-color-card);
2237
+ outline-offset: -1px;
2238
+ mix-blend-mode: normal;
2239
+ animation: none;
2240
+ }
2241
+
2242
+ ::view-transition-old(*.app-layout-card) {
2243
+ z-index: 1;
2244
+ clip-path: inset(1px round calc(var(--radius-xl, 0.75rem) - 1px));
2245
+ mix-blend-mode: normal;
2246
+ animation: mantle-app-layout-card-fade-out 150ms cubic-bezier(0.23, 1, 0.32, 1) both;
2247
+ }
2248
+
2249
+ ::view-transition-new(*.app-layout-card):only-child {
2250
+ outline: none;
2251
+ animation: mantle-app-layout-card-fade-in 300ms cubic-bezier(0.23, 1, 0.32, 1) both;
2252
+ }
2253
+
2254
+ ::view-transition-old(*.app-layout-card):only-child {
2255
+ clip-path: none;
2256
+ animation-duration: 300ms;
2257
+ }
2258
+ }
2259
+
2260
+ @keyframes mantle-app-layout-card-fade-in {
2261
+ from {
2262
+ opacity: 0;
2263
+ }
2264
+ }
2265
+
2266
+ @keyframes mantle-app-layout-card-fade-out {
2267
+ to {
2268
+ opacity: 0;
2269
+ }
2270
+ }
2271
+
2272
+ /*
2273
+ * A docked panel keeps its end gutter inside its box, so its snapshot would be
2274
+ * wider than its card and the morph would show two end edges. While the panel
2275
+ * takes part in a view transition, the gutter moves to the box's margin and
2276
+ * the card fills the box. The card renders in the same place, and the snapshot
2277
+ * is the card. Why `max-width`: a change to `flex-basis` would run the panel's
2278
+ * slide. Why not in a theme swap: the panel does not take part, and a panel
2279
+ * that is still sliding open would lose its gutter's width to the margin.
2280
+ * Why not the panel's inline name: React clears it once the transition is
2281
+ * ready, and the live new snapshot would grow back to the gutter.
2282
+ */
2283
+ :root:active-view-transition:not([data-theme-transition])
2284
+ [data-slot~="app-layout-side-panel"][data-open] {
2285
+ max-width: var(--_side-panel-content-width);
2286
+ margin-right: var(--_side-panel-content-inset);
2287
+ }
2288
+
2289
+ :root:active-view-transition:not([data-theme-transition])
2290
+ [data-slot~="app-layout-side-panel"][data-open]
2291
+ > div {
2292
+ right: 0;
2293
+ }
2294
+
2295
+ /*
2296
+ * Reduced motion is a cut. The old snapshot hides at once: another animation
2297
+ * on the page can keep the transition running, and a still snapshot would
2298
+ * show over the new one until it ends.
2299
+ */
2300
+ @media (prefers-reduced-motion: reduce) {
2301
+ ::view-transition-group(*.app-layout-card),
2302
+ ::view-transition-old(*.app-layout-card),
2303
+ ::view-transition-new(*.app-layout-card) {
2304
+ animation: none;
2305
+ }
2306
+
2307
+ ::view-transition-old(*.app-layout-card) {
2308
+ opacity: 0;
2309
+ }
2310
+ }
2311
+
1919
2312
  /*
1920
2313
  * The new snapshot is live, so a color transition would fade inside the circle
1921
2314
  * while the rest of the page shows the new theme. The swap cancels those
@@ -1924,6 +2317,7 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1924
2317
  * swap does not use it on other pages. The icon of the switcher and each
1925
2318
  * `ThemeSwitcherIcon` keep their own swap.
1926
2319
  */
2320
+ /* structural-selector-ok: the rule must reach each element, and only a page with many transitions sets the attribute. */
1927
2321
  :root[data-theme-transition-many]
1928
2322
  :not([data-slot~="theme-switcher"] *, [data-slot~="theme-switcher-icon"] *),
1929
2323
  :root[data-theme-transition-many]
@@ -1936,17 +2330,17 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1936
2330
  /*
1937
2331
  * A dialog or a menu that closes as the swap starts, such as a command
1938
2332
  * palette, would freeze in the old snapshot outside the circle. Without an
1939
- * exit animation it unmounts before the snapshot. The dialog positioner
1940
- * animates only to hold the exit, so it stops too. The swap marks each
2333
+ * exit animation it unmounts before the snapshot. The `<dialog>` of a dialog
2334
+ * waits for the exit of its backdrop, so that stops too. The swap marks each
1941
2335
  * surface that is open when it starts: a rule under the root attribute would
1942
2336
  * restyle every element that has a `data-slot`.
1943
2337
  */
2338
+ [data-slot~="dialog-content"][data-theme-transition][data-closing],
1944
2339
  :is(
1945
- [data-slot~="dialog-overlay"],
1946
- [data-slot~="dialog-content"],
1947
2340
  [data-slot~="dropdown-menu-content"],
1948
2341
  [data-slot~="dropdown-menu-sub-content"]
1949
- )[data-theme-transition][data-state="closed"],
1950
- [data-slot~="dialog-positioner"][data-theme-transition] {
2342
+ )[data-theme-transition]:not([data-open]),
2343
+ [data-slot~="dialog-positioner"][data-theme-transition],
2344
+ [data-slot~="dialog-positioner"][data-theme-transition]::backdrop {
1951
2345
  animation: none !important;
1952
2346
  }