@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,292 @@
1
+ /*
2
+ * Themed GhostCalendar month grid, semantic --ghost-* tokens only. The themed
3
+ * root adds a `.ghost-themed-scope` so grid-rendered parts match. Weeks and
4
+ * the weekday header share one 7-column template; cells are squares up to
5
+ * the 44px touch target.
6
+ */
7
+ @layer ghostvue-theme {
8
+ :where(
9
+ .ghost-theme .ghost-calendar-header,
10
+ .ghost-themed-scope .ghost-calendar-header,
11
+ .ghost-calendar-header[data-themed]
12
+ ) {
13
+ align-items: center;
14
+ display: flex;
15
+ gap: var(--ghost-space-gap-xs);
16
+ margin-block-end: var(--ghost-space-gap-sm);
17
+ }
18
+
19
+ :where(
20
+ .ghost-theme .ghost-calendar-heading,
21
+ .ghost-themed-scope .ghost-calendar-heading,
22
+ .ghost-calendar-heading[data-themed]
23
+ ) {
24
+ color: var(--ghost-surface-fg);
25
+ flex: 1;
26
+ font-family: var(--ghost-type-family-sans);
27
+ font-size: var(--ghost-type-size-md);
28
+ font-weight: var(--ghost-type-weight-semibold);
29
+ margin: 0;
30
+ text-align: center;
31
+ }
32
+
33
+ /* Compact icon buttons; the accessible name stays on `aria-label`. */
34
+ :where(
35
+ .ghost-theme .ghost-calendar-prev,
36
+ .ghost-themed-scope .ghost-calendar-prev,
37
+ .ghost-calendar-prev[data-themed],
38
+ .ghost-theme .ghost-calendar-next,
39
+ .ghost-themed-scope .ghost-calendar-next,
40
+ .ghost-calendar-next[data-themed]
41
+ ) {
42
+ align-items: center;
43
+ background: transparent;
44
+ border: var(--ghost-border-hairline-width) solid transparent;
45
+ border-radius: var(--ghost-radius-md);
46
+ color: var(--ghost-surface-fg);
47
+ cursor: pointer;
48
+ display: inline-flex;
49
+ font: inherit;
50
+ justify-content: center;
51
+ min-block-size: var(--ghost-control-touch-min);
52
+ min-inline-size: var(--ghost-control-touch-min);
53
+ padding: 0 var(--ghost-space-inset-xs);
54
+ }
55
+
56
+ /*
57
+ * Default chevron from the themed wrappers, painted in CSS (ADR 0013). The
58
+ * top-left corner rotated -45deg points to the start side, 135deg to the
59
+ * end side; RTL swaps them so "previous" still points backwards.
60
+ */
61
+ :where(.ghost-calendar-prev[data-themed], .ghost-calendar-next[data-themed])
62
+ > [data-part='icon'] {
63
+ block-size: 0.5em;
64
+ border: solid currentColor;
65
+ border-width: 0.125em 0 0 0.125em;
66
+ inline-size: 0.5em;
67
+ rotate: -45deg;
68
+ }
69
+
70
+ :where(
71
+ .ghost-calendar-next[data-themed]:dir(ltr),
72
+ .ghost-calendar-prev[data-themed]:dir(rtl)
73
+ )
74
+ > [data-part='icon'] {
75
+ rotate: 135deg;
76
+ }
77
+
78
+ :where(
79
+ .ghost-theme .ghost-calendar-grid,
80
+ .ghost-themed-scope .ghost-calendar-grid,
81
+ .ghost-calendar-grid[data-themed]
82
+ ) {
83
+ display: grid;
84
+ font-family: var(--ghost-type-family-sans);
85
+ gap: var(--ghost-space-gap-xs);
86
+ inline-size: 100%;
87
+ }
88
+
89
+ :where(
90
+ .ghost-theme .ghost-calendar-weekdays,
91
+ .ghost-themed-scope .ghost-calendar-weekdays,
92
+ .ghost-theme .ghost-calendar-week,
93
+ .ghost-themed-scope .ghost-calendar-week
94
+ ) {
95
+ display: grid;
96
+ gap: var(--ghost-space-gap-xs);
97
+ grid-template-columns: repeat(7, minmax(2.25rem, 1fr));
98
+ }
99
+
100
+ :where(
101
+ .ghost-theme .ghost-calendar-weekday,
102
+ .ghost-themed-scope .ghost-calendar-weekday
103
+ ) {
104
+ color: var(--ghost-text-subtle);
105
+ font-size: var(--ghost-type-size-xs);
106
+ font-weight: var(--ghost-type-weight-medium);
107
+ padding-block: var(--ghost-space-inset-xs);
108
+ text-align: center;
109
+ }
110
+
111
+ :where(
112
+ .ghost-theme .ghost-calendar-cell,
113
+ .ghost-themed-scope .ghost-calendar-cell,
114
+ .ghost-calendar-cell[data-themed]
115
+ ) {
116
+ align-items: center;
117
+ aspect-ratio: 1;
118
+ background: transparent;
119
+ border: var(--ghost-border-hairline-width) solid transparent;
120
+ border-radius: var(--ghost-radius-md);
121
+ color: var(--ghost-surface-fg);
122
+ cursor: pointer;
123
+ display: inline-flex;
124
+ font: inherit;
125
+ font-variant-numeric: tabular-nums;
126
+ inline-size: 100%;
127
+ justify-content: center;
128
+ justify-self: center;
129
+ max-inline-size: var(--ghost-control-touch-min);
130
+ padding: 0;
131
+ }
132
+
133
+ /* Hover first so selected and range fills below win at equal specificity. */
134
+ :where(
135
+ .ghost-theme .ghost-calendar-prev:hover:not(:disabled),
136
+ .ghost-themed-scope .ghost-calendar-prev:hover:not(:disabled),
137
+ .ghost-calendar-prev[data-themed]:hover:not(:disabled),
138
+ .ghost-theme .ghost-calendar-next:hover:not(:disabled),
139
+ .ghost-themed-scope .ghost-calendar-next:hover:not(:disabled),
140
+ .ghost-calendar-next[data-themed]:hover:not(:disabled),
141
+ .ghost-theme .ghost-calendar-cell:hover:not(:disabled, [aria-disabled]),
142
+ .ghost-themed-scope
143
+ .ghost-calendar-cell:hover:not(:disabled, [aria-disabled]),
144
+ .ghost-calendar-cell[data-themed]:hover:not(:disabled, [aria-disabled])
145
+ ) {
146
+ background-color: var(--ghost-surface-muted-bg);
147
+ }
148
+
149
+ /* Adjacent-month days fill the first and last weeks but are not selectable. */
150
+ :where(
151
+ .ghost-theme .ghost-calendar-cell[data-outside-month],
152
+ .ghost-themed-scope .ghost-calendar-cell[data-outside-month],
153
+ .ghost-calendar-cell[data-themed][data-outside-month]
154
+ ) {
155
+ color: var(--ghost-text-subtle);
156
+ cursor: default;
157
+ }
158
+
159
+ :where(
160
+ .ghost-theme .ghost-calendar-cell[data-today],
161
+ .ghost-themed-scope .ghost-calendar-cell[data-today],
162
+ .ghost-calendar-cell[data-themed][data-today]
163
+ ) {
164
+ border-color: var(--ghost-border-primary);
165
+ color: var(--ghost-text-primary);
166
+ font-weight: var(--ghost-type-weight-semibold);
167
+ }
168
+
169
+ /* Unavailable days are struck through: distinct from adjacent-month days. */
170
+ :where(
171
+ .ghost-theme .ghost-calendar-prev:disabled,
172
+ .ghost-themed-scope .ghost-calendar-prev:disabled,
173
+ .ghost-calendar-prev[data-themed]:disabled,
174
+ .ghost-theme .ghost-calendar-next:disabled,
175
+ .ghost-themed-scope .ghost-calendar-next:disabled,
176
+ .ghost-calendar-next[data-themed]:disabled,
177
+ .ghost-theme
178
+ .ghost-calendar-cell:is(:disabled, [aria-disabled='true']):not(
179
+ [data-outside-month]
180
+ ),
181
+ .ghost-themed-scope
182
+ .ghost-calendar-cell:is(:disabled, [aria-disabled='true']):not(
183
+ [data-outside-month]
184
+ ),
185
+ .ghost-calendar-cell[data-themed]:is(:disabled, [aria-disabled='true']):not(
186
+ [data-outside-month]
187
+ )
188
+ ) {
189
+ color: var(--ghost-text-subtle);
190
+ cursor: not-allowed;
191
+ text-decoration: line-through;
192
+ }
193
+
194
+ :where(
195
+ .ghost-theme .ghost-calendar-cell[data-state='range-middle'],
196
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-middle'],
197
+ .ghost-calendar-cell[data-themed][data-state='range-middle']
198
+ ) {
199
+ background-color: var(--ghost-surface-muted-bg);
200
+ color: var(--ghost-surface-fg);
201
+ }
202
+
203
+ :where(
204
+ .ghost-theme .ghost-calendar-cell[data-state='selected'],
205
+ .ghost-themed-scope .ghost-calendar-cell[data-state='selected'],
206
+ .ghost-calendar-cell[data-themed][data-state='selected'],
207
+ .ghost-theme .ghost-calendar-cell[data-state='range-start'],
208
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-start'],
209
+ .ghost-calendar-cell[data-themed][data-state='range-start'],
210
+ .ghost-theme .ghost-calendar-cell[data-state='range-end'],
211
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-end'],
212
+ .ghost-calendar-cell[data-themed][data-state='range-end']
213
+ ) {
214
+ background-color: var(--ghost-action-primary-bg);
215
+ border-color: var(--ghost-action-primary-border);
216
+ color: var(--ghost-action-primary-fg);
217
+ font-weight: var(--ghost-type-weight-semibold);
218
+ }
219
+
220
+ :where(
221
+ .ghost-theme .ghost-calendar-prev:focus-visible,
222
+ .ghost-themed-scope .ghost-calendar-prev:focus-visible,
223
+ .ghost-calendar-prev[data-themed]:focus-visible,
224
+ .ghost-theme .ghost-calendar-next:focus-visible,
225
+ .ghost-themed-scope .ghost-calendar-next:focus-visible,
226
+ .ghost-calendar-next[data-themed]:focus-visible,
227
+ .ghost-theme .ghost-calendar-cell:focus-visible,
228
+ .ghost-themed-scope .ghost-calendar-cell:focus-visible,
229
+ .ghost-calendar-cell[data-themed]:focus-visible
230
+ ) {
231
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
232
+ outline-offset: var(--ghost-focus-ring-offset);
233
+ }
234
+
235
+ /*
236
+ * Forced colors: only today keeps a visible border (CanvasText); inactive
237
+ * days use GrayText. Selected and range ends become Highlight cells (opted
238
+ * out so HighlightText stays on Highlight); range middles keep a Highlight
239
+ * border so the span still reads.
240
+ */
241
+ @media (forced-colors: active) {
242
+ :where(
243
+ .ghost-theme .ghost-calendar-cell,
244
+ .ghost-themed-scope .ghost-calendar-cell,
245
+ .ghost-calendar-cell[data-themed]
246
+ ) {
247
+ border-color: Canvas;
248
+ }
249
+
250
+ :where(
251
+ .ghost-theme .ghost-calendar-cell[data-today],
252
+ .ghost-themed-scope .ghost-calendar-cell[data-today],
253
+ .ghost-calendar-cell[data-themed][data-today]
254
+ ) {
255
+ border-color: CanvasText;
256
+ }
257
+
258
+ :where(
259
+ .ghost-theme .ghost-calendar-cell:is(:disabled, [aria-disabled='true']),
260
+ .ghost-themed-scope
261
+ .ghost-calendar-cell:is(:disabled, [aria-disabled='true']),
262
+ .ghost-calendar-cell[data-themed]:is(:disabled, [aria-disabled='true'])
263
+ ) {
264
+ color: GrayText;
265
+ }
266
+
267
+ :where(
268
+ .ghost-theme .ghost-calendar-cell[data-state='selected'],
269
+ .ghost-themed-scope .ghost-calendar-cell[data-state='selected'],
270
+ .ghost-calendar-cell[data-themed][data-state='selected'],
271
+ .ghost-theme .ghost-calendar-cell[data-state='range-start'],
272
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-start'],
273
+ .ghost-calendar-cell[data-themed][data-state='range-start'],
274
+ .ghost-theme .ghost-calendar-cell[data-state='range-end'],
275
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-end'],
276
+ .ghost-calendar-cell[data-themed][data-state='range-end']
277
+ ) {
278
+ background-color: Highlight;
279
+ border-color: Highlight;
280
+ color: HighlightText;
281
+ forced-color-adjust: none;
282
+ }
283
+
284
+ :where(
285
+ .ghost-theme .ghost-calendar-cell[data-state='range-middle'],
286
+ .ghost-themed-scope .ghost-calendar-cell[data-state='range-middle'],
287
+ .ghost-calendar-cell[data-themed][data-state='range-middle']
288
+ ) {
289
+ border-color: Highlight;
290
+ }
291
+ }
292
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Themed GhostCard. Visual values come from semantic --ghost-* tokens.
3
+ * Private --_ghost-card-* properties are per-instance wiring, not a public API.
4
+ * Layout is minimal: surface chrome only; consumers own internal structure.
5
+ */
6
+ @layer ghostvue-theme {
7
+ :where(
8
+ .ghost-theme .ghost-card,
9
+ .ghost-themed-scope .ghost-card,
10
+ .ghost-card[data-themed]
11
+ ) {
12
+ --_ghost-card-bg: var(--ghost-elevation-1-bg);
13
+ --_ghost-card-border: var(--ghost-elevation-1-border);
14
+ --_ghost-card-radius: var(--ghost-radius-md);
15
+ --_ghost-card-shadow: var(--ghost-elevation-1-shadow);
16
+ --_ghost-card-padding: var(--ghost-space-inset-md);
17
+
18
+ background-color: var(--_ghost-card-bg);
19
+ border: var(--ghost-border-hairline-width) solid var(--_ghost-card-border);
20
+ border-radius: var(--_ghost-card-radius);
21
+ box-shadow: var(--_ghost-card-shadow);
22
+ box-sizing: border-box;
23
+ color: var(--ghost-surface-fg);
24
+ display: block;
25
+ padding: var(--_ghost-card-padding);
26
+ position: relative;
27
+ }
28
+
29
+ :where(
30
+ .ghost-theme .ghost-card > [data-part='header'],
31
+ .ghost-themed-scope .ghost-card > [data-part='header'],
32
+ .ghost-card[data-themed] > [data-part='header']
33
+ ) {
34
+ display: block;
35
+ margin-block-end: var(--ghost-space-stack-sm);
36
+ }
37
+
38
+ :where(
39
+ .ghost-theme .ghost-card > [data-part='content'],
40
+ .ghost-themed-scope .ghost-card > [data-part='content'],
41
+ .ghost-card[data-themed] > [data-part='content']
42
+ ) {
43
+ display: block;
44
+ }
45
+
46
+ :where(
47
+ .ghost-theme .ghost-card > [data-part='footer'],
48
+ .ghost-themed-scope .ghost-card > [data-part='footer'],
49
+ .ghost-card[data-themed] > [data-part='footer']
50
+ ) {
51
+ display: block;
52
+ margin-block-start: var(--ghost-space-stack-md);
53
+ }
54
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Themed GhostCheckboxGroup: fieldset reset and vertical stack gap from
3
+ * semantic tokens. Targets only the group root and its direct legend child.
4
+ */
5
+ @layer ghostvue-theme {
6
+ :where(
7
+ .ghost-theme .ghost-checkbox-group,
8
+ .ghost-themed-scope .ghost-checkbox-group
9
+ ) {
10
+ border: none;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: var(--ghost-space-stack-sm);
14
+ margin: 0;
15
+ min-inline-size: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ :where(
20
+ .ghost-theme .ghost-checkbox-group > legend,
21
+ .ghost-themed-scope .ghost-checkbox-group > legend
22
+ ) {
23
+ color: var(--ghost-text-default);
24
+ font-size: var(--ghost-type-size-md);
25
+ font-weight: var(--ghost-type-weight-semibold);
26
+ line-height: var(--ghost-type-line-tight);
27
+ margin-block-end: var(--ghost-space-stack-sm);
28
+ padding: 0;
29
+ }
30
+ }
@@ -0,0 +1,262 @@
1
+ /*
2
+ * Themed GhostCheckbox. Visual values come from semantic --ghost-* tokens.
3
+ * Private --_ghost-checkbox-* properties are per-instance wiring, not a public API.
4
+ * The hit target is the control-size token; the painted box is the action icon size.
5
+ */
6
+ @layer ghostvue-theme {
7
+ :where(.ghost-theme .ghost-checkbox, .ghost-themed-scope .ghost-checkbox) {
8
+ --_ghost-checkbox-tone-color: var(--ghost-action-primary-bg);
9
+ --_ghost-checkbox-tone-contrast: var(--ghost-action-primary-fg);
10
+ --_ghost-checkbox-tone-border: var(--ghost-action-primary-border);
11
+ --_ghost-checkbox-fill: var(--ghost-surface-bg);
12
+ --_ghost-checkbox-mark: var(--_ghost-checkbox-tone-contrast);
13
+ --_ghost-checkbox-hit: var(--ghost-control-size-md-min);
14
+ --_ghost-checkbox-box: var(--ghost-action-icon-size);
15
+
16
+ appearance: none;
17
+ background-color: transparent;
18
+ block-size: var(--_ghost-checkbox-hit);
19
+ border: none;
20
+ box-sizing: border-box;
21
+ color: var(--_ghost-checkbox-mark);
22
+ cursor: pointer;
23
+ display: inline-grid;
24
+ flex: none;
25
+ inline-size: var(--_ghost-checkbox-hit);
26
+ margin: 0;
27
+ padding: 0;
28
+ place-items: center;
29
+ position: relative;
30
+ vertical-align: middle;
31
+ }
32
+
33
+ :where(
34
+ .ghost-theme .ghost-checkbox,
35
+ .ghost-themed-scope .ghost-checkbox
36
+ )::before {
37
+ background-color: var(--_ghost-checkbox-fill);
38
+ border: var(--ghost-border-hairline-width) solid
39
+ var(--_ghost-checkbox-tone-border);
40
+ /* radius.sm, not action-radius: the latter is sized for buttons and
41
+ would pill a 1.1em box into a circle. */
42
+ border-radius: var(--ghost-radius-sm);
43
+ box-sizing: border-box;
44
+ content: '';
45
+ display: grid;
46
+ grid-area: 1 / 1;
47
+ block-size: var(--_ghost-checkbox-box);
48
+ inline-size: var(--_ghost-checkbox-box);
49
+ place-items: center;
50
+ transition:
51
+ background-color var(--ghost-action-duration)
52
+ var(--ghost-motion-easing-standard),
53
+ border-color var(--ghost-action-duration)
54
+ var(--ghost-motion-easing-standard);
55
+ }
56
+
57
+ :where(
58
+ .ghost-theme .ghost-checkbox[data-tone='neutral'],
59
+ .ghost-themed-scope .ghost-checkbox[data-tone='neutral']
60
+ ) {
61
+ --_ghost-checkbox-tone-color: var(--ghost-action-neutral-bg);
62
+ --_ghost-checkbox-tone-contrast: var(--ghost-action-neutral-fg);
63
+ --_ghost-checkbox-tone-border: var(--ghost-action-neutral-border);
64
+ }
65
+
66
+ :where(
67
+ .ghost-theme .ghost-checkbox[data-tone='danger'],
68
+ .ghost-themed-scope .ghost-checkbox[data-tone='danger']
69
+ ) {
70
+ --_ghost-checkbox-tone-color: var(--ghost-action-danger-bg);
71
+ --_ghost-checkbox-tone-contrast: var(--ghost-action-danger-fg);
72
+ --_ghost-checkbox-tone-border: var(--ghost-action-danger-border);
73
+ }
74
+
75
+ :where(
76
+ .ghost-theme .ghost-checkbox[data-size='sm'],
77
+ .ghost-themed-scope .ghost-checkbox[data-size='sm']
78
+ ) {
79
+ --_ghost-checkbox-hit: var(--ghost-control-size-sm-min);
80
+ }
81
+
82
+ :where(
83
+ .ghost-theme .ghost-checkbox[data-size='lg'],
84
+ .ghost-themed-scope .ghost-checkbox[data-size='lg']
85
+ ) {
86
+ --_ghost-checkbox-hit: var(--ghost-control-size-lg-min);
87
+ }
88
+
89
+ :where(
90
+ .ghost-theme .ghost-checkbox:is(:checked, :indeterminate, [data-state]),
91
+ .ghost-themed-scope
92
+ .ghost-checkbox:is(:checked, :indeterminate, [data-state])
93
+ ) {
94
+ --_ghost-checkbox-fill: var(--_ghost-checkbox-tone-color);
95
+ }
96
+
97
+ :where(
98
+ .ghost-theme
99
+ .ghost-checkbox:is(:hover, [data-visual-state='hover']):not(:disabled),
100
+ .ghost-themed-scope
101
+ .ghost-checkbox:is(:hover, [data-visual-state='hover']):not(:disabled)
102
+ ) {
103
+ --_ghost-checkbox-fill: color-mix(
104
+ in oklch,
105
+ var(--_ghost-checkbox-tone-color)
106
+ calc(100% * var(--ghost-state-layer-hover)),
107
+ var(--ghost-surface-bg)
108
+ );
109
+ }
110
+
111
+ :where(
112
+ .ghost-theme
113
+ .ghost-checkbox:is(:checked, :indeterminate, [data-state]):is(
114
+ :hover,
115
+ [data-visual-state='hover']
116
+ ):not(:disabled),
117
+ .ghost-themed-scope
118
+ .ghost-checkbox:is(:checked, :indeterminate, [data-state]):is(
119
+ :hover,
120
+ [data-visual-state='hover']
121
+ ):not(:disabled)
122
+ ) {
123
+ --_ghost-checkbox-fill: color-mix(
124
+ in oklch,
125
+ var(--ghost-surface-fg) calc(100% * var(--ghost-state-layer-hover)),
126
+ var(--_ghost-checkbox-tone-color)
127
+ );
128
+ }
129
+
130
+ :where(
131
+ .ghost-theme
132
+ .ghost-checkbox:is(:active, [data-visual-state='active']):not(:disabled),
133
+ .ghost-themed-scope
134
+ .ghost-checkbox:is(:active, [data-visual-state='active']):not(:disabled)
135
+ ) {
136
+ scale: var(--ghost-motion-press-scale);
137
+ }
138
+
139
+ /* ::before stays outside :where(); LightningCSS drops :where(.x::before). */
140
+ :where(
141
+ .ghost-theme
142
+ .ghost-checkbox:is(:focus-visible, [data-visual-state='focus-visible']),
143
+ .ghost-themed-scope
144
+ .ghost-checkbox:is(:focus-visible, [data-visual-state='focus-visible'])
145
+ )::before {
146
+ box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
147
+ var(--ghost-focus-ring-contrast);
148
+ outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
149
+ outline-offset: var(--ghost-focus-ring-offset);
150
+ }
151
+
152
+ /*
153
+ * Chromium paints one ::before on appearance:none checkboxes and ignores
154
+ * ::after / :checked::before. Marks key off data-state on ::before.
155
+ */
156
+ :where(
157
+ .ghost-theme .ghost-checkbox[data-state='checked'],
158
+ .ghost-themed-scope .ghost-checkbox[data-state='checked']
159
+ )::before {
160
+ color: var(--_ghost-checkbox-mark);
161
+ content: '\2713';
162
+ font-family: var(--ghost-action-label-family);
163
+ font-size: calc(var(--_ghost-checkbox-box) * 0.72);
164
+ font-weight: var(--ghost-action-label-weight);
165
+ line-height: 1;
166
+ }
167
+
168
+ :where(
169
+ .ghost-theme .ghost-checkbox[data-state='indeterminate'],
170
+ .ghost-themed-scope .ghost-checkbox[data-state='indeterminate']
171
+ )::before {
172
+ background-image: linear-gradient(
173
+ var(--_ghost-checkbox-mark),
174
+ var(--_ghost-checkbox-mark)
175
+ );
176
+ background-position: center;
177
+ background-repeat: no-repeat;
178
+ background-size: 50% var(--ghost-action-spinner-width);
179
+ }
180
+
181
+ :where(
182
+ .ghost-theme .ghost-checkbox:disabled,
183
+ .ghost-themed-scope .ghost-checkbox:disabled
184
+ ) {
185
+ --_ghost-checkbox-fill: var(--ghost-action-disabled-bg);
186
+ --_ghost-checkbox-mark: var(--ghost-action-disabled-fg);
187
+ --_ghost-checkbox-tone-border: var(--ghost-action-disabled-border);
188
+
189
+ cursor: not-allowed;
190
+ scale: 1;
191
+ }
192
+
193
+ @media (prefers-reduced-motion: reduce) {
194
+ :where(.ghost-theme .ghost-checkbox, .ghost-themed-scope .ghost-checkbox) {
195
+ scale: 1;
196
+ }
197
+
198
+ :where(
199
+ .ghost-theme .ghost-checkbox,
200
+ .ghost-themed-scope .ghost-checkbox
201
+ )::before {
202
+ transition-duration: var(--ghost-motion-duration-instant);
203
+ }
204
+ }
205
+
206
+ @media (forced-colors: active) {
207
+ :where(
208
+ .ghost-theme .ghost-checkbox,
209
+ .ghost-themed-scope .ghost-checkbox
210
+ )::before {
211
+ background-color: ButtonFace;
212
+ border-color: ButtonText;
213
+ }
214
+
215
+ :where(
216
+ .ghost-theme .ghost-checkbox:is(:checked, :indeterminate, [data-state]),
217
+ .ghost-themed-scope
218
+ .ghost-checkbox:is(:checked, :indeterminate, [data-state])
219
+ )::before {
220
+ background-color: Highlight;
221
+ border-color: Highlight;
222
+ }
223
+
224
+ :where(.ghost-theme .ghost-checkbox, .ghost-themed-scope .ghost-checkbox) {
225
+ color: HighlightText;
226
+ forced-color-adjust: none;
227
+ }
228
+
229
+ :where(
230
+ .ghost-theme .ghost-checkbox:not(:checked, :indeterminate, [data-state]),
231
+ .ghost-themed-scope
232
+ .ghost-checkbox:not(:checked, :indeterminate, [data-state])
233
+ ) {
234
+ color: ButtonText;
235
+ }
236
+
237
+ :where(
238
+ .ghost-theme .ghost-checkbox:disabled,
239
+ .ghost-themed-scope .ghost-checkbox:disabled
240
+ )::before {
241
+ background-color: ButtonFace;
242
+ border-color: GrayText;
243
+ }
244
+
245
+ :where(
246
+ .ghost-theme .ghost-checkbox:disabled,
247
+ .ghost-themed-scope .ghost-checkbox:disabled
248
+ ) {
249
+ color: GrayText;
250
+ }
251
+
252
+ :where(
253
+ .ghost-theme
254
+ .ghost-checkbox:is(:focus-visible, [data-visual-state='focus-visible']),
255
+ .ghost-themed-scope
256
+ .ghost-checkbox:is(:focus-visible, [data-visual-state='focus-visible'])
257
+ )::before {
258
+ box-shadow: none;
259
+ outline-color: Highlight;
260
+ }
261
+ }
262
+ }