@ghostvue/themes 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +59 -2
  3. package/THIRD_PARTY_NOTICES.md +30 -0
  4. package/dist/base.css +341 -0
  5. package/dist/calm.css +1909 -0
  6. package/dist/components.d.ts +153 -0
  7. package/dist/components.js +148 -0
  8. package/dist/default.css +11271 -0
  9. package/dist/define.d.ts +75 -0
  10. package/dist/define.js +5952 -0
  11. package/dist/flagship-themes.d.ts +5 -0
  12. package/dist/flagship-themes.js +3 -0
  13. package/dist/generated/tokens.d.ts +5286 -0
  14. package/dist/generated/tokens.js +5283 -0
  15. package/dist/ghost-accordion-content.d.ts +26 -0
  16. package/dist/ghost-accordion-content.js +22 -0
  17. package/dist/ghost-accordion-item.d.ts +24 -0
  18. package/dist/ghost-accordion-item.js +16 -0
  19. package/dist/ghost-accordion-trigger.d.ts +17 -0
  20. package/dist/ghost-accordion-trigger.js +33 -0
  21. package/dist/ghost-accordion.d.ts +72 -0
  22. package/dist/ghost-accordion.js +56 -0
  23. package/dist/ghost-avatar.d.ts +60 -0
  24. package/dist/ghost-avatar.js +39 -0
  25. package/dist/ghost-badge.d.ts +46 -0
  26. package/dist/ghost-badge.js +33 -0
  27. package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
  28. package/dist/ghost-breadcrumb-ellipsis.js +20 -0
  29. package/dist/ghost-breadcrumb-item.d.ts +18 -0
  30. package/dist/ghost-breadcrumb-item.js +20 -0
  31. package/dist/ghost-breadcrumb-link.d.ts +18 -0
  32. package/dist/ghost-breadcrumb-link.js +33 -0
  33. package/dist/ghost-breadcrumb-list.d.ts +18 -0
  34. package/dist/ghost-breadcrumb-list.js +27 -0
  35. package/dist/ghost-breadcrumb-page.d.ts +18 -0
  36. package/dist/ghost-breadcrumb-page.js +20 -0
  37. package/dist/ghost-breadcrumb-separator.d.ts +18 -0
  38. package/dist/ghost-breadcrumb-separator.js +20 -0
  39. package/dist/ghost-breadcrumb.d.ts +34 -0
  40. package/dist/ghost-breadcrumb.js +27 -0
  41. package/dist/ghost-button.d.ts +102 -0
  42. package/dist/ghost-button.js +66 -0
  43. package/dist/ghost-calendar-cell.d.ts +15 -0
  44. package/dist/ghost-calendar-cell.js +12 -0
  45. package/dist/ghost-calendar-grid.d.ts +5 -0
  46. package/dist/ghost-calendar-grid.js +21 -0
  47. package/dist/ghost-calendar-header.d.ts +3 -0
  48. package/dist/ghost-calendar-header.js +9 -0
  49. package/dist/ghost-calendar-heading.d.ts +3 -0
  50. package/dist/ghost-calendar-heading.js +9 -0
  51. package/dist/ghost-calendar-next-button.d.ts +9 -0
  52. package/dist/ghost-calendar-next-button.js +18 -0
  53. package/dist/ghost-calendar-prev-button.d.ts +9 -0
  54. package/dist/ghost-calendar-prev-button.js +18 -0
  55. package/dist/ghost-calendar.d.ts +119 -0
  56. package/dist/ghost-calendar.js +101 -0
  57. package/dist/ghost-card.d.ts +33 -0
  58. package/dist/ghost-card.js +36 -0
  59. package/dist/ghost-checkbox-group.d.ts +50 -0
  60. package/dist/ghost-checkbox-group.js +56 -0
  61. package/dist/ghost-checkbox.d.ts +76 -0
  62. package/dist/ghost-checkbox.js +59 -0
  63. package/dist/ghost-collapsible-content.d.ts +28 -0
  64. package/dist/ghost-collapsible-content.js +41 -0
  65. package/dist/ghost-collapsible-trigger.d.ts +28 -0
  66. package/dist/ghost-collapsible-trigger.js +41 -0
  67. package/dist/ghost-collapsible.d.ts +44 -0
  68. package/dist/ghost-collapsible.js +38 -0
  69. package/dist/ghost-combobox-content.d.ts +82 -0
  70. package/dist/ghost-combobox-content.js +58 -0
  71. package/dist/ghost-combobox-input.d.ts +28 -0
  72. package/dist/ghost-combobox-input.js +36 -0
  73. package/dist/ghost-combobox-trigger.d.ts +28 -0
  74. package/dist/ghost-combobox-trigger.js +36 -0
  75. package/dist/ghost-combobox.d.ts +179 -0
  76. package/dist/ghost-combobox.js +98 -0
  77. package/dist/ghost-command-palette-content.d.ts +86 -0
  78. package/dist/ghost-command-palette-content.js +55 -0
  79. package/dist/ghost-command-palette-overlay.d.ts +40 -0
  80. package/dist/ghost-command-palette-overlay.js +40 -0
  81. package/dist/ghost-command-palette.d.ts +114 -0
  82. package/dist/ghost-command-palette.js +93 -0
  83. package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
  84. package/dist/ghost-context-menu-checkbox-item.js +57 -0
  85. package/dist/ghost-context-menu-content.d.ts +85 -0
  86. package/dist/ghost-context-menu-content.js +75 -0
  87. package/dist/ghost-context-menu-group.d.ts +19 -0
  88. package/dist/ghost-context-menu-group.js +23 -0
  89. package/dist/ghost-context-menu-item.d.ts +32 -0
  90. package/dist/ghost-context-menu-item.js +43 -0
  91. package/dist/ghost-context-menu-label.d.ts +19 -0
  92. package/dist/ghost-context-menu-label.js +23 -0
  93. package/dist/ghost-context-menu-radio-group.d.ts +50 -0
  94. package/dist/ghost-context-menu-radio-group.js +46 -0
  95. package/dist/ghost-context-menu-radio-item.d.ts +40 -0
  96. package/dist/ghost-context-menu-radio-item.js +53 -0
  97. package/dist/ghost-context-menu-separator.d.ts +28 -0
  98. package/dist/ghost-context-menu-separator.js +28 -0
  99. package/dist/ghost-context-menu-trigger.d.ts +28 -0
  100. package/dist/ghost-context-menu-trigger.js +41 -0
  101. package/dist/ghost-context-menu.d.ts +35 -0
  102. package/dist/ghost-context-menu.js +33 -0
  103. package/dist/ghost-data-table-preset.d.ts +31 -0
  104. package/dist/ghost-data-table-preset.js +12 -0
  105. package/dist/ghost-data-table-table.d.ts +30 -0
  106. package/dist/ghost-data-table-table.js +9 -0
  107. package/dist/ghost-data-table.d.ts +94 -0
  108. package/dist/ghost-data-table.js +105 -0
  109. package/dist/ghost-date-picker-calendar.d.ts +9 -0
  110. package/dist/ghost-date-picker-calendar.js +30 -0
  111. package/dist/ghost-date-picker-content.d.ts +95 -0
  112. package/dist/ghost-date-picker-content.js +58 -0
  113. package/dist/ghost-date-picker-input.d.ts +46 -0
  114. package/dist/ghost-date-picker-input.js +39 -0
  115. package/dist/ghost-date-picker-trigger.d.ts +6 -0
  116. package/dist/ghost-date-picker-trigger.js +22 -0
  117. package/dist/ghost-date-picker.d.ts +245 -0
  118. package/dist/ghost-date-picker.js +68 -0
  119. package/dist/ghost-dialog-close.d.ts +28 -0
  120. package/dist/ghost-dialog-close.js +37 -0
  121. package/dist/ghost-dialog-content.d.ts +95 -0
  122. package/dist/ghost-dialog-content.js +78 -0
  123. package/dist/ghost-dialog-description.d.ts +19 -0
  124. package/dist/ghost-dialog-description.js +37 -0
  125. package/dist/ghost-dialog-overlay.d.ts +40 -0
  126. package/dist/ghost-dialog-overlay.js +46 -0
  127. package/dist/ghost-dialog-title.d.ts +19 -0
  128. package/dist/ghost-dialog-title.js +33 -0
  129. package/dist/ghost-dialog-trigger.d.ts +28 -0
  130. package/dist/ghost-dialog-trigger.js +37 -0
  131. package/dist/ghost-dialog.d.ts +44 -0
  132. package/dist/ghost-dialog.js +38 -0
  133. package/dist/ghost-drawer-close.d.ts +28 -0
  134. package/dist/ghost-drawer-close.js +37 -0
  135. package/dist/ghost-drawer-content.d.ts +87 -0
  136. package/dist/ghost-drawer-content.js +73 -0
  137. package/dist/ghost-drawer-description.d.ts +19 -0
  138. package/dist/ghost-drawer-description.js +36 -0
  139. package/dist/ghost-drawer-overlay.d.ts +40 -0
  140. package/dist/ghost-drawer-overlay.js +46 -0
  141. package/dist/ghost-drawer-title.d.ts +19 -0
  142. package/dist/ghost-drawer-title.js +32 -0
  143. package/dist/ghost-drawer-trigger.d.ts +28 -0
  144. package/dist/ghost-drawer-trigger.js +37 -0
  145. package/dist/ghost-drawer.d.ts +62 -0
  146. package/dist/ghost-drawer.js +48 -0
  147. package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
  148. package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
  149. package/dist/ghost-dropdown-menu-content.d.ts +85 -0
  150. package/dist/ghost-dropdown-menu-content.js +75 -0
  151. package/dist/ghost-dropdown-menu-group.d.ts +19 -0
  152. package/dist/ghost-dropdown-menu-group.js +23 -0
  153. package/dist/ghost-dropdown-menu-item.d.ts +32 -0
  154. package/dist/ghost-dropdown-menu-item.js +47 -0
  155. package/dist/ghost-dropdown-menu-label.d.ts +19 -0
  156. package/dist/ghost-dropdown-menu-label.js +23 -0
  157. package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
  158. package/dist/ghost-dropdown-menu-radio-group.js +46 -0
  159. package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
  160. package/dist/ghost-dropdown-menu-radio-item.js +53 -0
  161. package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
  162. package/dist/ghost-dropdown-menu-separator.js +28 -0
  163. package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
  164. package/dist/ghost-dropdown-menu-trigger.js +41 -0
  165. package/dist/ghost-dropdown-menu.d.ts +35 -0
  166. package/dist/ghost-dropdown-menu.js +33 -0
  167. package/dist/ghost-empty-state.d.ts +31 -0
  168. package/dist/ghost-empty-state.js +35 -0
  169. package/dist/ghost-field.d.ts +53 -0
  170. package/dist/ghost-field.js +49 -0
  171. package/dist/ghost-file-upload-dropzone.d.ts +9 -0
  172. package/dist/ghost-file-upload-dropzone.js +23 -0
  173. package/dist/ghost-file-upload-item-remove.d.ts +10 -0
  174. package/dist/ghost-file-upload-item-remove.js +30 -0
  175. package/dist/ghost-file-upload-list.d.ts +10 -0
  176. package/dist/ghost-file-upload-list.js +24 -0
  177. package/dist/ghost-file-upload-trigger.d.ts +18 -0
  178. package/dist/ghost-file-upload-trigger.js +30 -0
  179. package/dist/ghost-file-upload.d.ts +147 -0
  180. package/dist/ghost-file-upload.js +98 -0
  181. package/dist/ghost-hover-card-content.d.ts +85 -0
  182. package/dist/ghost-hover-card-content.js +75 -0
  183. package/dist/ghost-hover-card-trigger.d.ts +28 -0
  184. package/dist/ghost-hover-card-trigger.js +41 -0
  185. package/dist/ghost-hover-card.d.ts +62 -0
  186. package/dist/ghost-hover-card.js +48 -0
  187. package/dist/ghost-inline-alert.d.ts +62 -0
  188. package/dist/ghost-inline-alert.js +50 -0
  189. package/dist/ghost-input.d.ts +100 -0
  190. package/dist/ghost-input.js +60 -0
  191. package/dist/ghost-interactive-surface.d.ts +31 -0
  192. package/dist/ghost-interactive-surface.js +36 -0
  193. package/dist/ghost-kbd.d.ts +42 -0
  194. package/dist/ghost-kbd.js +32 -0
  195. package/dist/ghost-link.d.ts +94 -0
  196. package/dist/ghost-link.js +59 -0
  197. package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
  198. package/dist/ghost-menubar-checkbox-item.js +57 -0
  199. package/dist/ghost-menubar-content.d.ts +85 -0
  200. package/dist/ghost-menubar-content.js +71 -0
  201. package/dist/ghost-menubar-group.d.ts +19 -0
  202. package/dist/ghost-menubar-group.js +19 -0
  203. package/dist/ghost-menubar-item.d.ts +32 -0
  204. package/dist/ghost-menubar-item.js +43 -0
  205. package/dist/ghost-menubar-label.d.ts +19 -0
  206. package/dist/ghost-menubar-label.js +19 -0
  207. package/dist/ghost-menubar-menu.d.ts +35 -0
  208. package/dist/ghost-menubar-menu.js +33 -0
  209. package/dist/ghost-menubar-radio-group.d.ts +50 -0
  210. package/dist/ghost-menubar-radio-group.js +46 -0
  211. package/dist/ghost-menubar-radio-item.d.ts +40 -0
  212. package/dist/ghost-menubar-radio-item.js +53 -0
  213. package/dist/ghost-menubar-separator.d.ts +28 -0
  214. package/dist/ghost-menubar-separator.js +28 -0
  215. package/dist/ghost-menubar-trigger.d.ts +28 -0
  216. package/dist/ghost-menubar-trigger.js +37 -0
  217. package/dist/ghost-menubar.d.ts +28 -0
  218. package/dist/ghost-menubar.js +33 -0
  219. package/dist/ghost-number-input.d.ts +153 -0
  220. package/dist/ghost-number-input.js +87 -0
  221. package/dist/ghost-pagination.d.ts +151 -0
  222. package/dist/ghost-pagination.js +71 -0
  223. package/dist/ghost-popover-close.d.ts +28 -0
  224. package/dist/ghost-popover-close.js +37 -0
  225. package/dist/ghost-popover-content.d.ts +86 -0
  226. package/dist/ghost-popover-content.js +72 -0
  227. package/dist/ghost-popover-trigger.d.ts +28 -0
  228. package/dist/ghost-popover-trigger.js +37 -0
  229. package/dist/ghost-popover.d.ts +35 -0
  230. package/dist/ghost-popover.js +33 -0
  231. package/dist/ghost-progress.d.ts +69 -0
  232. package/dist/ghost-progress.js +37 -0
  233. package/dist/ghost-radio-group-item.d.ts +37 -0
  234. package/dist/ghost-radio-group-item.js +33 -0
  235. package/dist/ghost-radio-group.d.ts +91 -0
  236. package/dist/ghost-radio-group.js +65 -0
  237. package/dist/ghost-scroll-area.d.ts +49 -0
  238. package/dist/ghost-scroll-area.js +32 -0
  239. package/dist/ghost-scroll-spy-item.d.ts +27 -0
  240. package/dist/ghost-scroll-spy-item.js +29 -0
  241. package/dist/ghost-scroll-spy-link.d.ts +44 -0
  242. package/dist/ghost-scroll-spy-link.js +39 -0
  243. package/dist/ghost-scroll-spy-list.d.ts +18 -0
  244. package/dist/ghost-scroll-spy-list.js +27 -0
  245. package/dist/ghost-scroll-spy.d.ts +121 -0
  246. package/dist/ghost-scroll-spy.js +83 -0
  247. package/dist/ghost-segmented-control-item.d.ts +36 -0
  248. package/dist/ghost-segmented-control-item.js +47 -0
  249. package/dist/ghost-segmented-control.d.ts +77 -0
  250. package/dist/ghost-segmented-control.js +73 -0
  251. package/dist/ghost-select-content.d.ts +82 -0
  252. package/dist/ghost-select-content.js +58 -0
  253. package/dist/ghost-select-trigger.d.ts +28 -0
  254. package/dist/ghost-select-trigger.js +36 -0
  255. package/dist/ghost-select.d.ts +54 -0
  256. package/dist/ghost-select.js +51 -0
  257. package/dist/ghost-separator.d.ts +41 -0
  258. package/dist/ghost-separator.js +34 -0
  259. package/dist/ghost-skeleton.d.ts +34 -0
  260. package/dist/ghost-skeleton.js +31 -0
  261. package/dist/ghost-slider.d.ts +150 -0
  262. package/dist/ghost-slider.js +83 -0
  263. package/dist/ghost-spinner.d.ts +42 -0
  264. package/dist/ghost-spinner.js +26 -0
  265. package/dist/ghost-submenu-content.d.ts +22 -0
  266. package/dist/ghost-submenu-content.js +17 -0
  267. package/dist/ghost-submenu-trigger.d.ts +11 -0
  268. package/dist/ghost-submenu-trigger.js +11 -0
  269. package/dist/ghost-submenu.d.ts +1 -0
  270. package/dist/ghost-submenu.js +1 -0
  271. package/dist/ghost-switch.d.ts +102 -0
  272. package/dist/ghost-switch.js +68 -0
  273. package/dist/ghost-table.d.ts +30 -0
  274. package/dist/ghost-table.js +36 -0
  275. package/dist/ghost-tabs-content.d.ts +27 -0
  276. package/dist/ghost-tabs-content.js +38 -0
  277. package/dist/ghost-tabs-list.d.ts +19 -0
  278. package/dist/ghost-tabs-list.js +33 -0
  279. package/dist/ghost-tabs-trigger.d.ts +36 -0
  280. package/dist/ghost-tabs-trigger.js +43 -0
  281. package/dist/ghost-tabs.d.ts +59 -0
  282. package/dist/ghost-tabs.js +45 -0
  283. package/dist/ghost-tags-input.d.ts +75 -0
  284. package/dist/ghost-tags-input.js +54 -0
  285. package/dist/ghost-textarea.d.ts +109 -0
  286. package/dist/ghost-textarea.js +66 -0
  287. package/dist/ghost-toast-viewport.d.ts +43 -0
  288. package/dist/ghost-toast-viewport.js +74 -0
  289. package/dist/ghost-toast.d.ts +54 -0
  290. package/dist/ghost-toast.js +48 -0
  291. package/dist/ghost-toggle-group-item.d.ts +36 -0
  292. package/dist/ghost-toggle-group-item.js +43 -0
  293. package/dist/ghost-toggle-group.d.ts +77 -0
  294. package/dist/ghost-toggle-group.js +69 -0
  295. package/dist/ghost-toolbar.d.ts +6 -0
  296. package/dist/ghost-toolbar.js +24 -0
  297. package/dist/ghost-tooltip-content.d.ts +86 -0
  298. package/dist/ghost-tooltip-content.js +72 -0
  299. package/dist/ghost-tooltip-trigger.d.ts +28 -0
  300. package/dist/ghost-tooltip-trigger.js +37 -0
  301. package/dist/ghost-tooltip.d.ts +62 -0
  302. package/dist/ghost-tooltip.js +50 -0
  303. package/dist/ghost-tree-group.d.ts +32 -0
  304. package/dist/ghost-tree-group.js +39 -0
  305. package/dist/ghost-tree-item.d.ts +45 -0
  306. package/dist/ghost-tree-item.js +42 -0
  307. package/dist/ghost-tree-trigger.d.ts +40 -0
  308. package/dist/ghost-tree-trigger.js +43 -0
  309. package/dist/ghost-tree.d.ts +122 -0
  310. package/dist/ghost-tree.js +98 -0
  311. package/dist/index.d.ts +153 -0
  312. package/dist/index.js +149 -0
  313. package/dist/manifest.json +6835 -0
  314. package/dist/mono.css +1874 -0
  315. package/dist/recipes/accordion.css +42 -0
  316. package/dist/recipes/avatar.css +87 -0
  317. package/dist/recipes/badge.css +170 -0
  318. package/dist/recipes/breadcrumb.css +149 -0
  319. package/dist/recipes/button.css +632 -0
  320. package/dist/recipes/calendar.css +292 -0
  321. package/dist/recipes/card.css +54 -0
  322. package/dist/recipes/checkbox-group.css +30 -0
  323. package/dist/recipes/checkbox.css +262 -0
  324. package/dist/recipes/collapsible.css +304 -0
  325. package/dist/recipes/combobox.css +276 -0
  326. package/dist/recipes/command-palette.css +296 -0
  327. package/dist/recipes/context-menu.css +138 -0
  328. package/dist/recipes/data-table.css +462 -0
  329. package/dist/recipes/date-picker.css +292 -0
  330. package/dist/recipes/dialog.css +199 -0
  331. package/dist/recipes/drawer.css +436 -0
  332. package/dist/recipes/dropdown-menu.css +138 -0
  333. package/dist/recipes/empty-state.css +66 -0
  334. package/dist/recipes/field.css +63 -0
  335. package/dist/recipes/file-upload.css +260 -0
  336. package/dist/recipes/hover-card.css +83 -0
  337. package/dist/recipes/inline-alert.css +172 -0
  338. package/dist/recipes/input.css +176 -0
  339. package/dist/recipes/kbd.css +113 -0
  340. package/dist/recipes/link.css +158 -0
  341. package/dist/recipes/menubar.css +161 -0
  342. package/dist/recipes/number-input.css +222 -0
  343. package/dist/recipes/pagination.css +143 -0
  344. package/dist/recipes/popover.css +102 -0
  345. package/dist/recipes/progress.css +124 -0
  346. package/dist/recipes/radio-group.css +200 -0
  347. package/dist/recipes/scroll-area.css +72 -0
  348. package/dist/recipes/scroll-spy.css +72 -0
  349. package/dist/recipes/segmented-control.css +237 -0
  350. package/dist/recipes/select.css +299 -0
  351. package/dist/recipes/separator.css +41 -0
  352. package/dist/recipes/skeleton.css +132 -0
  353. package/dist/recipes/slider.css +239 -0
  354. package/dist/recipes/spinner.css +93 -0
  355. package/dist/recipes/switch.css +314 -0
  356. package/dist/recipes/table.css +120 -0
  357. package/dist/recipes/tabs.css +139 -0
  358. package/dist/recipes/tags-input.css +120 -0
  359. package/dist/recipes/textarea.css +148 -0
  360. package/dist/recipes/toast.css +321 -0
  361. package/dist/recipes/toggle-group.css +92 -0
  362. package/dist/recipes/toolbar.css +25 -0
  363. package/dist/recipes/tooltip.css +48 -0
  364. package/dist/recipes/tree.css +231 -0
  365. package/dist/start-theme-transition.d.ts +9 -0
  366. package/dist/start-theme-transition.js +27 -0
  367. package/dist/tokens/primitives.json +612 -0
  368. package/dist/tokens/seeds.json +23 -0
  369. package/dist/tokens/semantic.compact.json +175 -0
  370. package/dist/tokens/semantic.dark.json +583 -0
  371. package/dist/tokens/semantic.json +1656 -0
  372. package/dist/tokens/semantic.spacious.json +175 -0
  373. package/dist/tokens.css +1874 -0
  374. package/dist/tokens.json +6152 -0
  375. package/dist/vibrant.css +1874 -0
  376. package/package.json +75 -4
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Themed GhostScrollSpy. Visual values come from semantic --ghost-* tokens.
3
+ * Section progress is written on the headless root as
4
+ * --ghost-scroll-spy-section-progress; this recipe does not paint that value
5
+ * directly so token lint stays design-token-only.
6
+ */
7
+ @layer ghostvue-theme {
8
+ :where(.ghost-theme) .ghost-scroll-spy,
9
+ :where(.ghost-themed-scope) .ghost-scroll-spy,
10
+ :where(.ghost-scroll-spy[data-themed]) {
11
+ position: relative;
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: var(--ghost-space-gap-sm);
15
+ padding-inline: var(--ghost-space-gap-md);
16
+ border-inline-start: var(--ghost-border-hairline-width) solid
17
+ var(--ghost-border-default);
18
+ }
19
+
20
+ :where(.ghost-theme) .ghost-scroll-spy-list,
21
+ :where(.ghost-themed-scope) .ghost-scroll-spy-list,
22
+ :where(.ghost-scroll-spy-list[data-themed]) {
23
+ list-style: none;
24
+ margin: 0;
25
+ padding: 0;
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: var(--ghost-space-gap-xs);
29
+ }
30
+
31
+ :where(.ghost-theme) .ghost-scroll-spy-link,
32
+ :where(.ghost-themed-scope) .ghost-scroll-spy-link,
33
+ :where(.ghost-scroll-spy-link[data-themed]) {
34
+ display: inline-flex;
35
+ align-items: center;
36
+ min-block-size: 2.75rem;
37
+ padding-inline: var(--ghost-space-gap-sm);
38
+ color: var(--ghost-text-muted);
39
+ text-decoration: none;
40
+ border-radius: var(--ghost-radius-md);
41
+ }
42
+
43
+ :where(.ghost-theme) .ghost-scroll-spy-link[data-state='active'],
44
+ :where(.ghost-themed-scope) .ghost-scroll-spy-link[data-state='active'],
45
+ :where(.ghost-scroll-spy-link[data-themed][data-state='active']) {
46
+ color: var(--ghost-text-default);
47
+ font-weight: 600;
48
+ }
49
+
50
+ :where(.ghost-theme) .ghost-scroll-spy-link:focus-visible,
51
+ :where(.ghost-themed-scope) .ghost-scroll-spy-link:focus-visible,
52
+ :where(.ghost-scroll-spy-link[data-themed]:focus-visible) {
53
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
54
+ outline-offset: 2px;
55
+ }
56
+
57
+ @media (prefers-reduced-motion: reduce) {
58
+ :where(.ghost-theme) .ghost-scroll-spy-link,
59
+ :where(.ghost-themed-scope) .ghost-scroll-spy-link,
60
+ :where(.ghost-scroll-spy-link[data-themed]) {
61
+ transition: none;
62
+ }
63
+ }
64
+
65
+ @media (forced-colors: active) {
66
+ :where(.ghost-theme) .ghost-scroll-spy-link:focus-visible,
67
+ :where(.ghost-themed-scope) .ghost-scroll-spy-link:focus-visible,
68
+ :where(.ghost-scroll-spy-link[data-themed]:focus-visible) {
69
+ outline-color: Highlight;
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,237 @@
1
+ /*
2
+ * Themed GhostSegmentedControl with equal-width segments and a sliding
3
+ * indicator positioned from CSS variables (no layout reads).
4
+ *
5
+ * The indicator assumes every segment is exactly 1/n of the track, so the
6
+ * track is a grid of equal `fr` columns rather than a row of `flex: 1 1 0`
7
+ * items. A shrink-to-fit flex container sizes itself to the *sum* of the
8
+ * labels and then splits that sum evenly, leaving too little room for the
9
+ * longest labels. Grid resolves `1fr` from the widest label when the control
10
+ * sizes to content, so every segment fits its label and matches the indicator.
11
+ *
12
+ * Supported sizing: the default inline grid sizes to the widest label. To span
13
+ * a container, set `display: grid` (or a width) on the root. Consumers that
14
+ * override the root to `display: flex` keep equal segments through the items'
15
+ * `flex: 1 1 0` fallback, which grid layout ignores. The fallback works when
16
+ * the flex root fills its container or has an explicit width. Vertical flex
17
+ * roots keep equal rows only while labels share one height: a column flex
18
+ * root has no definite height to split, and `min-height: 0` would collapse
19
+ * auto-height roots, so vertical wrapping labels need the default grid.
20
+ */
21
+ @layer ghostvue-theme {
22
+ :where(
23
+ .ghost-theme .ghost-segmented-control,
24
+ .ghost-themed-scope .ghost-segmented-control,
25
+ .ghost-segmented-control[data-themed]
26
+ ) {
27
+ box-sizing: border-box;
28
+ display: inline-grid;
29
+ grid-auto-flow: column;
30
+ /*
31
+ * `minmax(0, 1fr)` keeps the columns equal even when a consumer constrains
32
+ * the control below its content width; a bare `1fr` would let one track
33
+ * grow to its min-content width and break the indicator's 1/n geometry.
34
+ */
35
+ grid-auto-columns: minmax(0, 1fr);
36
+ position: relative;
37
+ font-family: var(--ghost-type-family-sans);
38
+ font-feature-settings: var(--ghost-type-feature-default);
39
+ gap: 0;
40
+ padding: var(--ghost-space-inset-xs);
41
+ background-color: var(--ghost-elevation-1-bg);
42
+ border: var(--ghost-border-hairline-width) solid
43
+ var(--ghost-elevation-1-border);
44
+ border-radius: var(--ghost-radius-md);
45
+ isolation: isolate;
46
+ }
47
+
48
+ :where(
49
+ .ghost-theme .ghost-segmented-control[aria-orientation='vertical'],
50
+ .ghost-themed-scope .ghost-segmented-control[aria-orientation='vertical'],
51
+ .ghost-segmented-control[data-themed][aria-orientation='vertical']
52
+ ) {
53
+ grid-auto-flow: row;
54
+ grid-auto-columns: auto;
55
+ /*
56
+ * Flex fallback axis for roots overridden to `display: flex`. Rows follow
57
+ * label heights there (no `min-height: 0`; see the header comment).
58
+ */
59
+ flex-direction: column;
60
+ grid-auto-rows: minmax(0, 1fr);
61
+ width: max-content;
62
+ }
63
+
64
+ :where(
65
+ .ghost-theme .ghost-segmented-control [data-part='indicator'],
66
+ .ghost-themed-scope .ghost-segmented-control [data-part='indicator'],
67
+ .ghost-segmented-control[data-themed] [data-part='indicator']
68
+ ) {
69
+ position: absolute;
70
+ pointer-events: none;
71
+ z-index: 0;
72
+ opacity: 0;
73
+ background-color: var(--ghost-elevation-2-bg);
74
+ border: var(--ghost-border-hairline-width) solid
75
+ var(--ghost-elevation-2-border);
76
+ border-radius: var(--ghost-radius-sm);
77
+ box-shadow: var(--ghost-elevation-2-shadow);
78
+ box-sizing: border-box;
79
+ transition:
80
+ inset-inline-start var(--ghost-motion-duration-fast)
81
+ var(--ghost-motion-easing-standard),
82
+ top var(--ghost-motion-duration-fast) var(--ghost-motion-easing-standard);
83
+ }
84
+
85
+ :where(
86
+ .ghost-theme
87
+ .ghost-segmented-control
88
+ [data-part='indicator'][data-indicator-visible='true'],
89
+ .ghost-themed-scope
90
+ .ghost-segmented-control
91
+ [data-part='indicator'][data-indicator-visible='true'],
92
+ .ghost-segmented-control[data-themed]
93
+ [data-part='indicator'][data-indicator-visible='true']
94
+ ) {
95
+ opacity: 1;
96
+ }
97
+
98
+ :where(
99
+ .ghost-theme
100
+ .ghost-segmented-control:not([aria-orientation='vertical'])
101
+ [data-part='indicator'],
102
+ .ghost-themed-scope
103
+ .ghost-segmented-control:not([aria-orientation='vertical'])
104
+ [data-part='indicator'],
105
+ .ghost-segmented-control[data-themed]:not([aria-orientation='vertical'])
106
+ [data-part='indicator']
107
+ ) {
108
+ inset-block: var(--ghost-space-inset-xs);
109
+ width: calc(
110
+ (100% - 2 * var(--ghost-space-inset-xs)) /
111
+ var(--ghost-segmented-item-count)
112
+ );
113
+ inset-inline-start: calc(
114
+ var(--ghost-space-inset-xs) + (100% - 2 * var(--ghost-space-inset-xs)) /
115
+ var(--ghost-segmented-item-count) *
116
+ var(--ghost-segmented-selected-index)
117
+ );
118
+ }
119
+
120
+ :where(
121
+ .ghost-theme .ghost-segmented-control[aria-orientation='vertical'],
122
+ .ghost-themed-scope .ghost-segmented-control[aria-orientation='vertical'],
123
+ .ghost-segmented-control[data-themed][aria-orientation='vertical']
124
+ )
125
+ [data-part='indicator'] {
126
+ inset-inline: var(--ghost-space-inset-xs);
127
+ height: calc(
128
+ (100% - 2 * var(--ghost-space-inset-xs)) /
129
+ var(--ghost-segmented-item-count)
130
+ );
131
+ top: calc(
132
+ var(--ghost-space-inset-xs) + (100% - 2 * var(--ghost-space-inset-xs)) /
133
+ var(--ghost-segmented-item-count) *
134
+ var(--ghost-segmented-selected-index)
135
+ );
136
+ width: auto;
137
+ }
138
+
139
+ :where(
140
+ .ghost-theme .ghost-segmented-control-item,
141
+ .ghost-themed-scope .ghost-segmented-control-item,
142
+ .ghost-segmented-control-item[data-themed]
143
+ ) {
144
+ position: relative;
145
+ z-index: 1;
146
+ /*
147
+ * Ignored in the default grid track. Kept as the equal-width fallback for
148
+ * roots overridden to `display: flex`; `min-width: 0` stops a long label's
149
+ * min-content size from widening one segment past its 1/n share.
150
+ */
151
+ flex: 1 1 0;
152
+ min-width: 0;
153
+ background: transparent;
154
+ border: var(--ghost-border-hairline-width) solid transparent;
155
+ border-radius: var(--ghost-radius-sm);
156
+ color: var(--ghost-text-muted);
157
+ cursor: pointer;
158
+ font: inherit;
159
+ padding: var(--ghost-space-inset-sm) var(--ghost-space-inset-md);
160
+ /* Buttons center by default; non-button `as` hosts should match. */
161
+ text-align: center;
162
+ /* Wrap labels within constrained tracks so they stay over the indicator. */
163
+ white-space: normal;
164
+ overflow-wrap: anywhere;
165
+ }
166
+
167
+ :where(
168
+ .ghost-theme .ghost-segmented-control-item[data-state='on'],
169
+ .ghost-themed-scope .ghost-segmented-control-item[data-state='on'],
170
+ .ghost-segmented-control-item[data-themed][data-state='on']
171
+ ) {
172
+ color: var(--ghost-surface-fg);
173
+ }
174
+
175
+ :where(
176
+ .ghost-theme .ghost-segmented-control-item:focus-visible,
177
+ .ghost-themed-scope .ghost-segmented-control-item:focus-visible,
178
+ .ghost-segmented-control-item[data-themed]:focus-visible
179
+ ) {
180
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
181
+ /*
182
+ * Inset ring: segments sit only a few pixels inside the track, so the
183
+ * usual outward offset doubled up with the indicator's border and spilled
184
+ * past the control's edge. Drawn over the segment's own edge, the ring
185
+ * replaces the indicator border instead of stacking on it, and stays
186
+ * inside the control while leaving the label's padding clear.
187
+ */
188
+ outline-offset: calc(-1 * var(--ghost-focus-ring-width));
189
+ }
190
+
191
+ :where(
192
+ .ghost-theme
193
+ .ghost-segmented-control[aria-disabled='true']
194
+ .ghost-segmented-control-item,
195
+ .ghost-themed-scope
196
+ .ghost-segmented-control[aria-disabled='true']
197
+ .ghost-segmented-control-item,
198
+ .ghost-segmented-control[data-themed][aria-disabled='true']
199
+ .ghost-segmented-control-item
200
+ ) {
201
+ cursor: not-allowed;
202
+ opacity: var(--ghost-action-disabled-opacity);
203
+ }
204
+
205
+ @media (prefers-reduced-motion: reduce) {
206
+ :where(
207
+ .ghost-theme .ghost-segmented-control [data-part='indicator'],
208
+ .ghost-themed-scope .ghost-segmented-control [data-part='indicator'],
209
+ .ghost-segmented-control[data-themed] [data-part='indicator']
210
+ ) {
211
+ transition: none;
212
+ }
213
+ }
214
+
215
+ @media (forced-colors: active) {
216
+ :where(
217
+ .ghost-theme .ghost-segmented-control [data-part='indicator'],
218
+ .ghost-themed-scope .ghost-segmented-control [data-part='indicator'],
219
+ .ghost-segmented-control[data-themed] [data-part='indicator']
220
+ ) {
221
+ border-color: Highlight;
222
+ }
223
+
224
+ /*
225
+ * Forced colors paint every segment's transparent border as ButtonBorder,
226
+ * so an inset ring would land on that border and barely change. Move the
227
+ * ring back outside the segment, where it stays distinguishable.
228
+ */
229
+ :where(
230
+ .ghost-theme .ghost-segmented-control-item:focus-visible,
231
+ .ghost-themed-scope .ghost-segmented-control-item:focus-visible,
232
+ .ghost-segmented-control-item[data-themed]:focus-visible
233
+ ) {
234
+ outline-offset: var(--ghost-focus-ring-offset);
235
+ }
236
+ }
237
+ }
@@ -0,0 +1,299 @@
1
+ /*
2
+ * Themed GhostSelect surfaces. Uses semantic --ghost-* tokens only.
3
+ */
4
+ @layer ghostvue-theme {
5
+ :where(
6
+ .ghost-theme .ghost-select-trigger,
7
+ .ghost-themed-scope .ghost-select-trigger,
8
+ .ghost-select-trigger[data-themed]
9
+ ) {
10
+ align-items: center;
11
+ background-color: var(--ghost-surface-bg);
12
+ border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
13
+ border-radius: var(--ghost-action-radius);
14
+ box-sizing: border-box;
15
+ color: var(--ghost-text-default);
16
+ cursor: default;
17
+ display: inline-flex;
18
+ font-family: var(--ghost-type-family-sans);
19
+ font-feature-settings: var(--ghost-type-feature-default);
20
+ font-size: var(--ghost-control-size-md-font);
21
+ gap: var(--ghost-space-gap-sm);
22
+ justify-content: space-between;
23
+ min-block-size: var(--ghost-control-size-md-min);
24
+ min-inline-size: var(--ghost-control-size-md-min);
25
+ padding-block: var(--ghost-control-size-md-padding-block);
26
+ padding-inline: var(--ghost-control-size-md-padding-inline);
27
+ text-align: start;
28
+ width: 100%;
29
+ }
30
+
31
+ /*
32
+ * The value is the trigger's own part: it takes the free inline space and a
33
+ * long label ends with an ellipsis instead of wrapping the control taller.
34
+ * Consumer icons after it keep their size.
35
+ */
36
+ :where(
37
+ .ghost-theme .ghost-select-trigger > [data-part='value'],
38
+ .ghost-themed-scope .ghost-select-trigger > [data-part='value'],
39
+ .ghost-select-trigger[data-themed] > [data-part='value']
40
+ ) {
41
+ flex: 1 1 auto;
42
+ min-inline-size: 0;
43
+ overflow: hidden;
44
+ text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ }
47
+
48
+ :where(
49
+ .ghost-theme .ghost-select-trigger > :not([data-part='value']),
50
+ .ghost-themed-scope .ghost-select-trigger > :not([data-part='value']),
51
+ .ghost-select-trigger[data-themed] > :not([data-part='value'])
52
+ ) {
53
+ flex: none;
54
+ }
55
+
56
+ /* Placeholder text reads as a hint, like a native input placeholder. */
57
+ :where(
58
+ .ghost-theme .ghost-select-trigger > [data-part='value']:not([data-state]),
59
+ .ghost-themed-scope
60
+ .ghost-select-trigger
61
+ > [data-part='value']:not([data-state]),
62
+ .ghost-select-trigger[data-themed] > [data-part='value']:not([data-state])
63
+ ) {
64
+ color: var(--ghost-text-muted);
65
+ }
66
+
67
+ /* Hover only changes color, so the control never shifts. */
68
+ :where(
69
+ .ghost-theme .ghost-select-trigger:hover:not(:disabled),
70
+ .ghost-themed-scope .ghost-select-trigger:hover:not(:disabled),
71
+ .ghost-select-trigger[data-themed]:hover:not(:disabled)
72
+ ) {
73
+ border-color: var(--ghost-border-strong);
74
+ }
75
+
76
+ :where(
77
+ .ghost-theme .ghost-select-trigger[aria-invalid='true'],
78
+ .ghost-themed-scope .ghost-select-trigger[aria-invalid='true'],
79
+ .ghost-select-trigger[data-themed][aria-invalid='true']
80
+ ) {
81
+ border-color: var(--ghost-border-danger);
82
+ }
83
+
84
+ :where(
85
+ .ghost-theme .ghost-select-trigger:is(:disabled, [aria-disabled='true']),
86
+ .ghost-themed-scope
87
+ .ghost-select-trigger:is(:disabled, [aria-disabled='true']),
88
+ .ghost-select-trigger[data-themed]:is(:disabled, [aria-disabled='true'])
89
+ ) {
90
+ background-color: var(--ghost-action-disabled-bg);
91
+ border-color: var(--ghost-action-disabled-border);
92
+ color: var(--ghost-action-disabled-fg);
93
+ cursor: not-allowed;
94
+ }
95
+
96
+ :where(
97
+ .ghost-theme
98
+ .ghost-select-trigger:is(:disabled, [aria-disabled='true'])
99
+ > [data-part='value'],
100
+ .ghost-themed-scope
101
+ .ghost-select-trigger:is(:disabled, [aria-disabled='true'])
102
+ > [data-part='value'],
103
+ .ghost-select-trigger[data-themed]:is(:disabled, [aria-disabled='true'])
104
+ > [data-part='value']
105
+ ) {
106
+ color: inherit;
107
+ }
108
+
109
+ /*
110
+ * Keyboard focus and the open state share one token ring. Without the
111
+ * :focus-visible rule the closed trigger fell back to the browser outline.
112
+ */
113
+ :where(
114
+ .ghost-theme .ghost-select-trigger:focus-visible,
115
+ .ghost-themed-scope .ghost-select-trigger:focus-visible,
116
+ .ghost-select-trigger[data-themed]:focus-visible,
117
+ .ghost-theme .ghost-select-trigger[data-state='open'],
118
+ .ghost-themed-scope .ghost-select-trigger[data-state='open'],
119
+ .ghost-select-trigger[data-themed][data-state='open']
120
+ ) {
121
+ border-color: var(--ghost-border-strong);
122
+ box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
123
+ var(--ghost-focus-ring-contrast);
124
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
125
+ outline-offset: var(--ghost-focus-ring-offset);
126
+ }
127
+
128
+ :where(
129
+ .ghost-theme .ghost-select-content,
130
+ .ghost-themed-scope .ghost-select-content,
131
+ .ghost-select-content[data-themed]
132
+ ) {
133
+ background-color: var(--ghost-elevation-3-bg);
134
+ border: var(--ghost-border-hairline-width) solid
135
+ var(--ghost-elevation-3-border);
136
+ border-radius: var(--ghost-radius-lg);
137
+ box-shadow:
138
+ var(--ghost-elevation-3-shadow), var(--ghost-elevation-3-highlight);
139
+ box-sizing: border-box;
140
+ color: var(--ghost-surface-fg);
141
+ font-family: var(--ghost-type-family-sans);
142
+ max-block-size: min(100%, calc(100dvh - 2 * var(--ghost-space-inset-lg)));
143
+ /* Long option labels wrap inside the viewport instead of widening it. */
144
+ max-inline-size: calc(100vw - 2 * var(--ghost-space-inset-lg));
145
+ overflow: auto;
146
+ padding: var(--ghost-space-inset-2xs);
147
+ z-index: 50;
148
+ }
149
+
150
+ :where(
151
+ .ghost-theme .ghost-select-content [data-part='option'],
152
+ .ghost-themed-scope .ghost-select-content [data-part='option'],
153
+ .ghost-select-content[data-themed] [data-part='option']
154
+ ) {
155
+ align-items: center;
156
+ border-radius: var(--ghost-radius-sm);
157
+ box-sizing: border-box;
158
+ cursor: default;
159
+ display: flex;
160
+ font-size: var(--ghost-control-size-sm-font);
161
+ min-block-size: var(--ghost-control-size-sm-min);
162
+ overflow-wrap: anywhere;
163
+ padding-block: var(--ghost-control-size-sm-padding-block);
164
+ padding-inline: var(--ghost-space-inset-sm);
165
+ }
166
+
167
+ /* Pointer feedback; disabled options stay flat. */
168
+ :where(
169
+ .ghost-theme
170
+ .ghost-select-content
171
+ [data-part='option']:hover:not([aria-disabled='true']),
172
+ .ghost-themed-scope
173
+ .ghost-select-content
174
+ [data-part='option']:hover:not([aria-disabled='true']),
175
+ .ghost-select-content[data-themed]
176
+ [data-part='option']:hover:not([aria-disabled='true'])
177
+ ) {
178
+ background-color: var(--ghost-surface-muted-bg);
179
+ }
180
+
181
+ :where(
182
+ .ghost-theme
183
+ .ghost-select-content
184
+ [data-part='option'][data-state='checked'],
185
+ .ghost-themed-scope
186
+ .ghost-select-content
187
+ [data-part='option'][data-state='checked'],
188
+ .ghost-select-content[data-themed]
189
+ [data-part='option'][data-state='checked']
190
+ ) {
191
+ background-color: var(--ghost-surface-muted-bg);
192
+ font-weight: var(--ghost-type-weight-medium);
193
+ }
194
+
195
+ :where(
196
+ .ghost-theme .ghost-select-content [data-part='option']:focus-visible,
197
+ .ghost-themed-scope
198
+ .ghost-select-content
199
+ [data-part='option']:focus-visible,
200
+ .ghost-select-content[data-themed] [data-part='option']:focus-visible
201
+ ) {
202
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
203
+ outline-offset: calc(var(--ghost-focus-ring-offset) * -1);
204
+ }
205
+
206
+ :where(
207
+ .ghost-theme
208
+ .ghost-select-content
209
+ [data-part='option'][data-state='disabled'],
210
+ .ghost-themed-scope
211
+ .ghost-select-content
212
+ [data-part='option'][data-state='disabled'],
213
+ .ghost-select-content[data-themed]
214
+ [data-part='option'][data-state='disabled']
215
+ ) {
216
+ color: var(--ghost-text-muted);
217
+ cursor: not-allowed;
218
+ opacity: 0.6;
219
+ }
220
+
221
+ :where(
222
+ .ghost-theme .ghost-select-content [data-part='label'],
223
+ .ghost-themed-scope .ghost-select-content [data-part='label'],
224
+ .ghost-select-content[data-themed] [data-part='label']
225
+ ) {
226
+ color: var(--ghost-text-muted);
227
+ font-size: var(--ghost-type-size-sm);
228
+ padding-block: var(--ghost-space-inset-xs);
229
+ padding-inline: var(--ghost-space-inset-sm);
230
+ }
231
+
232
+ :where(
233
+ .ghost-theme .ghost-select-content[data-state='open'],
234
+ .ghost-themed-scope .ghost-select-content[data-state='open'],
235
+ .ghost-select-content[data-themed][data-state='open']
236
+ ) {
237
+ transition: opacity var(--ghost-motion-fade-duration)
238
+ var(--ghost-motion-easing-standard);
239
+
240
+ @starting-style {
241
+ opacity: 0;
242
+ }
243
+
244
+ @media (prefers-reduced-motion: no-preference) {
245
+ transition:
246
+ opacity var(--ghost-motion-duration-fast)
247
+ var(--ghost-motion-enter-easing),
248
+ scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
249
+
250
+ @starting-style {
251
+ scale: 0.98;
252
+ }
253
+ }
254
+ }
255
+
256
+ /*
257
+ * Forced colors flatten the muted checked fill and the faded disabled
258
+ * tokens to the same system colors as their neighbors. Paint the checked
259
+ * option as a Highlight row (HighlightText needs that background, so it
260
+ * opts out of adjustment) and disabled parts in GrayText.
261
+ */
262
+ @media (forced-colors: active) {
263
+ :where(
264
+ .ghost-theme .ghost-select-trigger:is(:disabled, [aria-disabled='true']),
265
+ .ghost-themed-scope
266
+ .ghost-select-trigger:is(:disabled, [aria-disabled='true']),
267
+ .ghost-select-trigger[data-themed]:is(:disabled, [aria-disabled='true']),
268
+ .ghost-theme
269
+ .ghost-select-content
270
+ [data-part='option'][data-state='disabled'],
271
+ .ghost-themed-scope
272
+ .ghost-select-content
273
+ [data-part='option'][data-state='disabled'],
274
+ .ghost-select-content[data-themed]
275
+ [data-part='option'][data-state='disabled']
276
+ ) {
277
+ border-color: GrayText;
278
+ color: GrayText;
279
+ opacity: 1;
280
+ }
281
+
282
+ :where(
283
+ .ghost-theme
284
+ .ghost-select-content
285
+ [data-part='option'][data-state='checked'],
286
+ .ghost-themed-scope
287
+ .ghost-select-content
288
+ [data-part='option'][data-state='checked'],
289
+ .ghost-select-content[data-themed]
290
+ [data-part='option'][data-state='checked']
291
+ ) {
292
+ background-color: Highlight;
293
+ color: HighlightText;
294
+ forced-color-adjust: none;
295
+ /* A focus ring drawn inset on the row must contrast with Highlight. */
296
+ outline-color: HighlightText;
297
+ }
298
+ }
299
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Themed GhostSeparator. Visual values come from semantic --ghost-* tokens.
3
+ * Background fill (not border) is the stroke so both axes share one thickness.
4
+ * Native <hr> UA margin/border are reset so the token width is the only line.
5
+ */
6
+ @layer ghostvue-theme {
7
+ :where(.ghost-theme .ghost-separator, .ghost-themed-scope .ghost-separator) {
8
+ align-self: stretch;
9
+ background-color: var(--ghost-border-default);
10
+ border: none;
11
+ box-sizing: border-box;
12
+ flex: none;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ :where(
18
+ .ghost-theme .ghost-separator[data-orientation='horizontal'],
19
+ .ghost-themed-scope .ghost-separator[data-orientation='horizontal']
20
+ ) {
21
+ block-size: var(--ghost-border-hairline-width);
22
+ inline-size: 100%;
23
+ }
24
+
25
+ :where(
26
+ .ghost-theme .ghost-separator[data-orientation='vertical'],
27
+ .ghost-themed-scope .ghost-separator[data-orientation='vertical']
28
+ ) {
29
+ /* Stretch, do not use 100% — percentage block-size collapses in height-auto flex rows. */
30
+ inline-size: var(--ghost-border-hairline-width);
31
+ }
32
+
33
+ @media (forced-colors: active) {
34
+ :where(
35
+ .ghost-theme .ghost-separator,
36
+ .ghost-themed-scope .ghost-separator
37
+ ) {
38
+ background-color: CanvasText;
39
+ }
40
+ }
41
+ }