@ghostvue/themes 0.0.0-stage → 0.1.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 (364) 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 +1899 -0
  6. package/dist/components.d.ts +148 -0
  7. package/dist/components.js +143 -0
  8. package/dist/default.css +11017 -0
  9. package/dist/define.d.ts +75 -0
  10. package/dist/define.js +5934 -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 +5275 -0
  14. package/dist/generated/tokens.js +5272 -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.d.ts +76 -0
  60. package/dist/ghost-checkbox.js +59 -0
  61. package/dist/ghost-collapsible-content.d.ts +28 -0
  62. package/dist/ghost-collapsible-content.js +41 -0
  63. package/dist/ghost-collapsible-trigger.d.ts +28 -0
  64. package/dist/ghost-collapsible-trigger.js +41 -0
  65. package/dist/ghost-collapsible.d.ts +44 -0
  66. package/dist/ghost-collapsible.js +38 -0
  67. package/dist/ghost-combobox-content.d.ts +82 -0
  68. package/dist/ghost-combobox-content.js +58 -0
  69. package/dist/ghost-combobox-input.d.ts +28 -0
  70. package/dist/ghost-combobox-input.js +36 -0
  71. package/dist/ghost-combobox-trigger.d.ts +28 -0
  72. package/dist/ghost-combobox-trigger.js +36 -0
  73. package/dist/ghost-combobox.d.ts +179 -0
  74. package/dist/ghost-combobox.js +98 -0
  75. package/dist/ghost-command-palette-content.d.ts +86 -0
  76. package/dist/ghost-command-palette-content.js +55 -0
  77. package/dist/ghost-command-palette-overlay.d.ts +40 -0
  78. package/dist/ghost-command-palette-overlay.js +40 -0
  79. package/dist/ghost-command-palette.d.ts +114 -0
  80. package/dist/ghost-command-palette.js +93 -0
  81. package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
  82. package/dist/ghost-context-menu-checkbox-item.js +57 -0
  83. package/dist/ghost-context-menu-content.d.ts +85 -0
  84. package/dist/ghost-context-menu-content.js +75 -0
  85. package/dist/ghost-context-menu-group.d.ts +19 -0
  86. package/dist/ghost-context-menu-group.js +23 -0
  87. package/dist/ghost-context-menu-item.d.ts +32 -0
  88. package/dist/ghost-context-menu-item.js +43 -0
  89. package/dist/ghost-context-menu-label.d.ts +19 -0
  90. package/dist/ghost-context-menu-label.js +23 -0
  91. package/dist/ghost-context-menu-radio-group.d.ts +50 -0
  92. package/dist/ghost-context-menu-radio-group.js +46 -0
  93. package/dist/ghost-context-menu-radio-item.d.ts +40 -0
  94. package/dist/ghost-context-menu-radio-item.js +53 -0
  95. package/dist/ghost-context-menu-separator.d.ts +28 -0
  96. package/dist/ghost-context-menu-separator.js +28 -0
  97. package/dist/ghost-context-menu-trigger.d.ts +28 -0
  98. package/dist/ghost-context-menu-trigger.js +41 -0
  99. package/dist/ghost-context-menu.d.ts +35 -0
  100. package/dist/ghost-context-menu.js +33 -0
  101. package/dist/ghost-data-table-preset.d.ts +31 -0
  102. package/dist/ghost-data-table-preset.js +12 -0
  103. package/dist/ghost-data-table-table.d.ts +30 -0
  104. package/dist/ghost-data-table-table.js +9 -0
  105. package/dist/ghost-data-table.d.ts +94 -0
  106. package/dist/ghost-data-table.js +105 -0
  107. package/dist/ghost-date-picker-calendar.d.ts +9 -0
  108. package/dist/ghost-date-picker-calendar.js +30 -0
  109. package/dist/ghost-date-picker-content.d.ts +95 -0
  110. package/dist/ghost-date-picker-content.js +58 -0
  111. package/dist/ghost-date-picker-input.d.ts +46 -0
  112. package/dist/ghost-date-picker-input.js +39 -0
  113. package/dist/ghost-date-picker-trigger.d.ts +6 -0
  114. package/dist/ghost-date-picker-trigger.js +22 -0
  115. package/dist/ghost-date-picker.d.ts +245 -0
  116. package/dist/ghost-date-picker.js +68 -0
  117. package/dist/ghost-dialog-close.d.ts +28 -0
  118. package/dist/ghost-dialog-close.js +37 -0
  119. package/dist/ghost-dialog-content.d.ts +95 -0
  120. package/dist/ghost-dialog-content.js +78 -0
  121. package/dist/ghost-dialog-description.d.ts +19 -0
  122. package/dist/ghost-dialog-description.js +37 -0
  123. package/dist/ghost-dialog-overlay.d.ts +40 -0
  124. package/dist/ghost-dialog-overlay.js +46 -0
  125. package/dist/ghost-dialog-title.d.ts +19 -0
  126. package/dist/ghost-dialog-title.js +33 -0
  127. package/dist/ghost-dialog-trigger.d.ts +28 -0
  128. package/dist/ghost-dialog-trigger.js +37 -0
  129. package/dist/ghost-dialog.d.ts +44 -0
  130. package/dist/ghost-dialog.js +38 -0
  131. package/dist/ghost-drawer-close.d.ts +28 -0
  132. package/dist/ghost-drawer-close.js +37 -0
  133. package/dist/ghost-drawer-content.d.ts +87 -0
  134. package/dist/ghost-drawer-content.js +73 -0
  135. package/dist/ghost-drawer-description.d.ts +19 -0
  136. package/dist/ghost-drawer-description.js +36 -0
  137. package/dist/ghost-drawer-overlay.d.ts +40 -0
  138. package/dist/ghost-drawer-overlay.js +46 -0
  139. package/dist/ghost-drawer-title.d.ts +19 -0
  140. package/dist/ghost-drawer-title.js +32 -0
  141. package/dist/ghost-drawer-trigger.d.ts +28 -0
  142. package/dist/ghost-drawer-trigger.js +37 -0
  143. package/dist/ghost-drawer.d.ts +62 -0
  144. package/dist/ghost-drawer.js +48 -0
  145. package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
  146. package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
  147. package/dist/ghost-dropdown-menu-content.d.ts +85 -0
  148. package/dist/ghost-dropdown-menu-content.js +75 -0
  149. package/dist/ghost-dropdown-menu-group.d.ts +19 -0
  150. package/dist/ghost-dropdown-menu-group.js +23 -0
  151. package/dist/ghost-dropdown-menu-item.d.ts +32 -0
  152. package/dist/ghost-dropdown-menu-item.js +47 -0
  153. package/dist/ghost-dropdown-menu-label.d.ts +19 -0
  154. package/dist/ghost-dropdown-menu-label.js +23 -0
  155. package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
  156. package/dist/ghost-dropdown-menu-radio-group.js +46 -0
  157. package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
  158. package/dist/ghost-dropdown-menu-radio-item.js +53 -0
  159. package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
  160. package/dist/ghost-dropdown-menu-separator.js +28 -0
  161. package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
  162. package/dist/ghost-dropdown-menu-trigger.js +41 -0
  163. package/dist/ghost-dropdown-menu.d.ts +35 -0
  164. package/dist/ghost-dropdown-menu.js +33 -0
  165. package/dist/ghost-empty-state.d.ts +31 -0
  166. package/dist/ghost-empty-state.js +35 -0
  167. package/dist/ghost-field.d.ts +44 -0
  168. package/dist/ghost-field.js +44 -0
  169. package/dist/ghost-file-upload-dropzone.d.ts +9 -0
  170. package/dist/ghost-file-upload-dropzone.js +23 -0
  171. package/dist/ghost-file-upload-item-remove.d.ts +10 -0
  172. package/dist/ghost-file-upload-item-remove.js +30 -0
  173. package/dist/ghost-file-upload-list.d.ts +10 -0
  174. package/dist/ghost-file-upload-list.js +24 -0
  175. package/dist/ghost-file-upload-trigger.d.ts +18 -0
  176. package/dist/ghost-file-upload-trigger.js +30 -0
  177. package/dist/ghost-file-upload.d.ts +147 -0
  178. package/dist/ghost-file-upload.js +98 -0
  179. package/dist/ghost-hover-card-content.d.ts +85 -0
  180. package/dist/ghost-hover-card-content.js +75 -0
  181. package/dist/ghost-hover-card-trigger.d.ts +28 -0
  182. package/dist/ghost-hover-card-trigger.js +41 -0
  183. package/dist/ghost-hover-card.d.ts +62 -0
  184. package/dist/ghost-hover-card.js +48 -0
  185. package/dist/ghost-inline-alert.d.ts +62 -0
  186. package/dist/ghost-inline-alert.js +50 -0
  187. package/dist/ghost-input.d.ts +100 -0
  188. package/dist/ghost-input.js +60 -0
  189. package/dist/ghost-interactive-surface.d.ts +31 -0
  190. package/dist/ghost-interactive-surface.js +36 -0
  191. package/dist/ghost-kbd.d.ts +42 -0
  192. package/dist/ghost-kbd.js +32 -0
  193. package/dist/ghost-link.d.ts +94 -0
  194. package/dist/ghost-link.js +59 -0
  195. package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
  196. package/dist/ghost-menubar-checkbox-item.js +57 -0
  197. package/dist/ghost-menubar-content.d.ts +85 -0
  198. package/dist/ghost-menubar-content.js +71 -0
  199. package/dist/ghost-menubar-group.d.ts +19 -0
  200. package/dist/ghost-menubar-group.js +19 -0
  201. package/dist/ghost-menubar-item.d.ts +32 -0
  202. package/dist/ghost-menubar-item.js +43 -0
  203. package/dist/ghost-menubar-label.d.ts +19 -0
  204. package/dist/ghost-menubar-label.js +19 -0
  205. package/dist/ghost-menubar-menu.d.ts +35 -0
  206. package/dist/ghost-menubar-menu.js +33 -0
  207. package/dist/ghost-menubar-radio-group.d.ts +50 -0
  208. package/dist/ghost-menubar-radio-group.js +46 -0
  209. package/dist/ghost-menubar-radio-item.d.ts +40 -0
  210. package/dist/ghost-menubar-radio-item.js +53 -0
  211. package/dist/ghost-menubar-separator.d.ts +28 -0
  212. package/dist/ghost-menubar-separator.js +28 -0
  213. package/dist/ghost-menubar-trigger.d.ts +28 -0
  214. package/dist/ghost-menubar-trigger.js +37 -0
  215. package/dist/ghost-menubar.d.ts +28 -0
  216. package/dist/ghost-menubar.js +33 -0
  217. package/dist/ghost-number-input.d.ts +153 -0
  218. package/dist/ghost-number-input.js +87 -0
  219. package/dist/ghost-pagination.d.ts +151 -0
  220. package/dist/ghost-pagination.js +71 -0
  221. package/dist/ghost-popover-close.d.ts +28 -0
  222. package/dist/ghost-popover-close.js +37 -0
  223. package/dist/ghost-popover-content.d.ts +86 -0
  224. package/dist/ghost-popover-content.js +72 -0
  225. package/dist/ghost-popover-trigger.d.ts +28 -0
  226. package/dist/ghost-popover-trigger.js +37 -0
  227. package/dist/ghost-popover.d.ts +35 -0
  228. package/dist/ghost-popover.js +33 -0
  229. package/dist/ghost-progress.d.ts +69 -0
  230. package/dist/ghost-progress.js +37 -0
  231. package/dist/ghost-radio-group-item.d.ts +37 -0
  232. package/dist/ghost-radio-group-item.js +33 -0
  233. package/dist/ghost-radio-group.d.ts +91 -0
  234. package/dist/ghost-radio-group.js +65 -0
  235. package/dist/ghost-scroll-area.d.ts +49 -0
  236. package/dist/ghost-scroll-area.js +32 -0
  237. package/dist/ghost-scroll-spy-item.d.ts +27 -0
  238. package/dist/ghost-scroll-spy-item.js +29 -0
  239. package/dist/ghost-scroll-spy-link.d.ts +44 -0
  240. package/dist/ghost-scroll-spy-link.js +39 -0
  241. package/dist/ghost-scroll-spy-list.d.ts +18 -0
  242. package/dist/ghost-scroll-spy-list.js +27 -0
  243. package/dist/ghost-scroll-spy.d.ts +121 -0
  244. package/dist/ghost-scroll-spy.js +83 -0
  245. package/dist/ghost-segmented-control-item.d.ts +36 -0
  246. package/dist/ghost-segmented-control-item.js +47 -0
  247. package/dist/ghost-segmented-control.d.ts +77 -0
  248. package/dist/ghost-segmented-control.js +73 -0
  249. package/dist/ghost-select-content.d.ts +82 -0
  250. package/dist/ghost-select-content.js +58 -0
  251. package/dist/ghost-select-trigger.d.ts +28 -0
  252. package/dist/ghost-select-trigger.js +36 -0
  253. package/dist/ghost-select.d.ts +115 -0
  254. package/dist/ghost-select.js +74 -0
  255. package/dist/ghost-separator.d.ts +41 -0
  256. package/dist/ghost-separator.js +34 -0
  257. package/dist/ghost-skeleton.d.ts +34 -0
  258. package/dist/ghost-skeleton.js +31 -0
  259. package/dist/ghost-slider.d.ts +150 -0
  260. package/dist/ghost-slider.js +83 -0
  261. package/dist/ghost-spinner.d.ts +42 -0
  262. package/dist/ghost-spinner.js +26 -0
  263. package/dist/ghost-switch.d.ts +102 -0
  264. package/dist/ghost-switch.js +68 -0
  265. package/dist/ghost-table.d.ts +30 -0
  266. package/dist/ghost-table.js +36 -0
  267. package/dist/ghost-tabs-content.d.ts +27 -0
  268. package/dist/ghost-tabs-content.js +38 -0
  269. package/dist/ghost-tabs-list.d.ts +19 -0
  270. package/dist/ghost-tabs-list.js +33 -0
  271. package/dist/ghost-tabs-trigger.d.ts +36 -0
  272. package/dist/ghost-tabs-trigger.js +43 -0
  273. package/dist/ghost-tabs.d.ts +59 -0
  274. package/dist/ghost-tabs.js +45 -0
  275. package/dist/ghost-textarea.d.ts +109 -0
  276. package/dist/ghost-textarea.js +66 -0
  277. package/dist/ghost-toast-viewport.d.ts +43 -0
  278. package/dist/ghost-toast-viewport.js +74 -0
  279. package/dist/ghost-toast.d.ts +54 -0
  280. package/dist/ghost-toast.js +48 -0
  281. package/dist/ghost-toggle-group-item.d.ts +36 -0
  282. package/dist/ghost-toggle-group-item.js +43 -0
  283. package/dist/ghost-toggle-group.d.ts +77 -0
  284. package/dist/ghost-toggle-group.js +69 -0
  285. package/dist/ghost-toolbar.d.ts +6 -0
  286. package/dist/ghost-toolbar.js +24 -0
  287. package/dist/ghost-tooltip-content.d.ts +86 -0
  288. package/dist/ghost-tooltip-content.js +72 -0
  289. package/dist/ghost-tooltip-trigger.d.ts +28 -0
  290. package/dist/ghost-tooltip-trigger.js +37 -0
  291. package/dist/ghost-tooltip.d.ts +62 -0
  292. package/dist/ghost-tooltip.js +50 -0
  293. package/dist/ghost-tree-group.d.ts +32 -0
  294. package/dist/ghost-tree-group.js +39 -0
  295. package/dist/ghost-tree-item.d.ts +45 -0
  296. package/dist/ghost-tree-item.js +42 -0
  297. package/dist/ghost-tree-trigger.d.ts +40 -0
  298. package/dist/ghost-tree-trigger.js +43 -0
  299. package/dist/ghost-tree.d.ts +122 -0
  300. package/dist/ghost-tree.js +98 -0
  301. package/dist/index.d.ts +148 -0
  302. package/dist/index.js +144 -0
  303. package/dist/manifest.json +6375 -0
  304. package/dist/mono.css +1864 -0
  305. package/dist/recipes/accordion.css +42 -0
  306. package/dist/recipes/avatar.css +87 -0
  307. package/dist/recipes/badge.css +170 -0
  308. package/dist/recipes/breadcrumb.css +149 -0
  309. package/dist/recipes/button.css +632 -0
  310. package/dist/recipes/calendar.css +292 -0
  311. package/dist/recipes/card.css +54 -0
  312. package/dist/recipes/checkbox.css +262 -0
  313. package/dist/recipes/collapsible.css +304 -0
  314. package/dist/recipes/combobox.css +276 -0
  315. package/dist/recipes/command-palette.css +244 -0
  316. package/dist/recipes/context-menu.css +227 -0
  317. package/dist/recipes/data-table.css +455 -0
  318. package/dist/recipes/date-picker.css +292 -0
  319. package/dist/recipes/dialog.css +141 -0
  320. package/dist/recipes/drawer.css +338 -0
  321. package/dist/recipes/dropdown-menu.css +232 -0
  322. package/dist/recipes/empty-state.css +66 -0
  323. package/dist/recipes/field.css +63 -0
  324. package/dist/recipes/file-upload.css +260 -0
  325. package/dist/recipes/hover-card.css +64 -0
  326. package/dist/recipes/inline-alert.css +172 -0
  327. package/dist/recipes/input.css +176 -0
  328. package/dist/recipes/kbd.css +113 -0
  329. package/dist/recipes/link.css +158 -0
  330. package/dist/recipes/menubar.css +242 -0
  331. package/dist/recipes/number-input.css +222 -0
  332. package/dist/recipes/pagination.css +143 -0
  333. package/dist/recipes/popover.css +83 -0
  334. package/dist/recipes/progress.css +119 -0
  335. package/dist/recipes/radio-group.css +200 -0
  336. package/dist/recipes/scroll-area.css +31 -0
  337. package/dist/recipes/scroll-spy.css +72 -0
  338. package/dist/recipes/segmented-control.css +178 -0
  339. package/dist/recipes/select.css +299 -0
  340. package/dist/recipes/separator.css +41 -0
  341. package/dist/recipes/skeleton.css +132 -0
  342. package/dist/recipes/slider.css +239 -0
  343. package/dist/recipes/spinner.css +93 -0
  344. package/dist/recipes/switch.css +314 -0
  345. package/dist/recipes/table.css +120 -0
  346. package/dist/recipes/tabs.css +139 -0
  347. package/dist/recipes/textarea.css +148 -0
  348. package/dist/recipes/toast.css +321 -0
  349. package/dist/recipes/toggle-group.css +92 -0
  350. package/dist/recipes/toolbar.css +25 -0
  351. package/dist/recipes/tooltip.css +48 -0
  352. package/dist/recipes/tree.css +231 -0
  353. package/dist/start-theme-transition.d.ts +9 -0
  354. package/dist/start-theme-transition.js +27 -0
  355. package/dist/tokens/primitives.json +612 -0
  356. package/dist/tokens/seeds.json +23 -0
  357. package/dist/tokens/semantic.compact.json +175 -0
  358. package/dist/tokens/semantic.dark.json +583 -0
  359. package/dist/tokens/semantic.json +1651 -0
  360. package/dist/tokens/semantic.spacious.json +175 -0
  361. package/dist/tokens.css +1864 -0
  362. package/dist/tokens.json +6137 -0
  363. package/dist/vibrant.css +1864 -0
  364. package/package.json +75 -4
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GhostVue contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,3 +1,60 @@
1
- # Temporary Holding Version
1
+ # @ghostvue/themes
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The optional themed layer for GhostVue: wrappers around the
4
+ [`@ghostvue/vue`](https://www.npmjs.com/package/@ghostvue/vue) components with
5
+ `variant`, `tone`, and `size` props, design tokens (`tokens.css`,
6
+ `tokens.json`), and the `default`, `calm`, `vibrant`, and `mono` flagship
7
+ themes. `@ghostvue/themes/define` exports Node-only `defineTheme` for custom
8
+ themes.
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ pnpm add @ghostvue/vue @ghostvue/themes
14
+ ```
15
+
16
+ Vue `^3.5.0` is a peer dependency.
17
+
18
+ ## Usage
19
+
20
+ Import a flagship stylesheet once and name it on the `<html>` element, so
21
+ overlays that teleport to `<body>` (dialogs, menus, popovers) share the
22
+ palette:
23
+
24
+ ```ts
25
+ // main.ts
26
+ import { createApp } from 'vue'
27
+ import '@ghostvue/themes/calm.css'
28
+ import App from './App.vue'
29
+
30
+ createApp(App).mount('#app')
31
+ ```
32
+
33
+ ```html
34
+ <!-- index.html -->
35
+ <html lang="en" data-ghost-theme="calm"></html>
36
+ ```
37
+
38
+ ```vue
39
+ <!-- App.vue -->
40
+ <script setup lang="ts">
41
+ import { GhostButton } from '@ghostvue/themes'
42
+ </script>
43
+
44
+ <template>
45
+ <GhostButton variant="outline" tone="danger">Delete</GhostButton>
46
+ </template>
47
+ ```
48
+
49
+ Importing from `@ghostvue/themes` loads every component recipe. To ship only
50
+ the recipes you use, import components from `@ghostvue/themes/components` and
51
+ add one palette, `@ghostvue/themes/base.css`, and the
52
+ `@ghostvue/themes/recipes/<family>.css` files you need. See
53
+ [opt-in theme CSS](https://ghostvue.dev/themes/default#opt-in-theme-css).
54
+
55
+ ## Documentation
56
+
57
+ [ghostvue.dev](https://ghostvue.dev): see
58
+ [Getting started](https://ghostvue.dev/getting-started),
59
+ [Default theme](https://ghostvue.dev/themes/default), and
60
+ [`defineTheme`](https://ghostvue.dev/themes/define-theme).
@@ -0,0 +1,30 @@
1
+ # Third-party notices for `@ghostvue/themes`
2
+
3
+ The Node-only `@ghostvue/themes/define` bundle (`dist/define.js`) inlines
4
+ [culori](https://github.com/Evercoder/culori) at build time. Culori is a
5
+ `devDependency` and does not ship with the browser `@ghostvue/themes` entry, but
6
+ it is present in the published `define` artifact.
7
+
8
+ ## culori 4.0.2
9
+
10
+ MIT License
11
+
12
+ Copyright (c) 2018 Dan Burzo
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
package/dist/base.css ADDED
@@ -0,0 +1,341 @@
1
+ /*
2
+ * Shared theme CSS every themed recipe needs, without any palette or
3
+ * component recipe. `default.css` loads it between the default tokens and
4
+ * every component recipe; the opt-in path (`@ghostvue/themes/base.css` with
5
+ * one palette and selected `@ghostvue/themes/recipes/*.css`) loads it on its
6
+ * own.
7
+ *
8
+ * Zero-specificity layer so consumer styles win. Two opt-in scopes leave
9
+ * headless `.ghost-button` / `.ghost-badge` unstyled: `.ghost-theme` owns the canvas (not
10
+ * per-instance); `.ghost-themed-scope` (`display: contents`) is a recipe
11
+ * scope only so nested `data-ghost-theme` inherits into themed wrappers.
12
+ * Token values come from generated CSS on `.ghost-theme` / `[data-ghost-theme]`.
13
+ */
14
+ /*
15
+ * Semantic recipes for elevation, materials, gradients, motion, and
16
+ * spotlight. Tokens stay the public CSS API; these data attributes are
17
+ * documented utilities, not per-component styles. Forced-colors discards
18
+ * decorative shadows, blur, noise, and glow so system colors remain the
19
+ * only paint. Reduced motion swaps travel recipes for opacity and turns
20
+ * spotlight fully off.
21
+ */
22
+ @layer ghostvue-theme {
23
+ :where([data-elevation='0']) {
24
+ background-color: var(--ghost-elevation-0-bg);
25
+ border: var(--ghost-border-hairline-width) solid
26
+ var(--ghost-elevation-0-border);
27
+ box-shadow:
28
+ var(--ghost-elevation-0-shadow), var(--ghost-elevation-0-highlight);
29
+ }
30
+
31
+ :where([data-elevation='1']) {
32
+ background-color: var(--ghost-elevation-1-bg);
33
+ border: var(--ghost-border-hairline-width) solid
34
+ var(--ghost-elevation-1-border);
35
+ box-shadow:
36
+ var(--ghost-elevation-1-shadow), var(--ghost-elevation-1-highlight);
37
+ }
38
+
39
+ :where([data-elevation='2']) {
40
+ background-color: var(--ghost-elevation-2-bg);
41
+ border: var(--ghost-border-hairline-width) solid
42
+ var(--ghost-elevation-2-border);
43
+ box-shadow:
44
+ var(--ghost-elevation-2-shadow), var(--ghost-elevation-2-highlight);
45
+ }
46
+
47
+ :where([data-elevation='3']) {
48
+ background-color: var(--ghost-elevation-3-bg);
49
+ border: var(--ghost-border-hairline-width) solid
50
+ var(--ghost-elevation-3-border);
51
+ box-shadow:
52
+ var(--ghost-elevation-3-shadow), var(--ghost-elevation-3-highlight);
53
+ }
54
+
55
+ :where([data-elevation='4']) {
56
+ background-color: var(--ghost-elevation-4-bg);
57
+ border: var(--ghost-border-hairline-width) solid
58
+ var(--ghost-elevation-4-border);
59
+ box-shadow:
60
+ var(--ghost-elevation-4-shadow), var(--ghost-elevation-4-highlight);
61
+ }
62
+
63
+ :where([data-elevation='5']) {
64
+ background-color: var(--ghost-elevation-5-bg);
65
+ border: var(--ghost-border-hairline-width) solid
66
+ var(--ghost-elevation-5-border);
67
+ box-shadow:
68
+ var(--ghost-elevation-5-shadow), var(--ghost-elevation-5-highlight);
69
+ }
70
+
71
+ :where([data-material='solid']) {
72
+ background-color: var(--ghost-material-solid-bg);
73
+ }
74
+
75
+ :where([data-material='glass']) {
76
+ isolation: isolate;
77
+ position: relative;
78
+ background-color: var(--ghost-material-glass-bg);
79
+ border: var(--ghost-border-hairline-width) solid
80
+ var(--ghost-material-glass-border);
81
+ -webkit-backdrop-filter: blur(var(--ghost-material-glass-blur))
82
+ saturate(var(--ghost-material-glass-saturate));
83
+ backdrop-filter: blur(var(--ghost-material-glass-blur))
84
+ saturate(var(--ghost-material-glass-saturate));
85
+ }
86
+
87
+ :where([data-material='grain']) {
88
+ isolation: isolate;
89
+ position: relative;
90
+ background-color: var(--ghost-material-grain-bg);
91
+ }
92
+
93
+ :where([data-material='glass'])::before,
94
+ :where([data-material='grain'])::before {
95
+ background-repeat: repeat;
96
+ background-size: 8rem 8rem;
97
+ content: '';
98
+ inset: 0;
99
+ pointer-events: none;
100
+ position: absolute;
101
+ z-index: -1;
102
+ }
103
+
104
+ :where([data-material='glass'])::before {
105
+ background-image: var(--ghost-material-glass-noise);
106
+ opacity: var(--ghost-material-glass-noise-opacity);
107
+ }
108
+
109
+ :where([data-material='grain'])::before {
110
+ background-image: var(--ghost-material-grain-noise);
111
+ opacity: var(--ghost-material-grain-noise-opacity);
112
+ }
113
+
114
+ :where([data-gradient='accent']) {
115
+ background-color: var(--ghost-surface-bg);
116
+ background-image: var(--ghost-gradient-accent);
117
+ }
118
+
119
+ :where([data-gradient='aurora']) {
120
+ background-color: var(--ghost-surface-bg);
121
+ background-image: var(--ghost-gradient-aurora);
122
+ }
123
+
124
+ :where([data-gradient='border']) {
125
+ isolation: isolate;
126
+ position: relative;
127
+ background-color: var(--ghost-surface-bg);
128
+ }
129
+
130
+ :where([data-gradient='border'])::before {
131
+ background: var(--ghost-gradient-border);
132
+ border-radius: inherit;
133
+ content: '';
134
+ inset: 0;
135
+ -webkit-mask:
136
+ linear-gradient(#000 0 0) content-box,
137
+ linear-gradient(#000 0 0);
138
+ mask:
139
+ linear-gradient(#000 0 0) content-box,
140
+ linear-gradient(#000 0 0);
141
+ -webkit-mask-composite: xor;
142
+ mask-composite: exclude;
143
+ padding: var(--ghost-border-hairline-width);
144
+ pointer-events: none;
145
+ position: absolute;
146
+ }
147
+
148
+ @supports not (
149
+ (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
150
+ ) {
151
+ :where([data-material='glass']) {
152
+ background-color: var(--ghost-material-glass-fallback-bg);
153
+ -webkit-backdrop-filter: none;
154
+ backdrop-filter: none;
155
+ }
156
+ }
157
+
158
+ @supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
159
+ :where([data-gradient='border']) {
160
+ background:
161
+ linear-gradient(var(--ghost-surface-bg), var(--ghost-surface-bg))
162
+ padding-box,
163
+ var(--ghost-gradient-border) border-box;
164
+ border: var(--ghost-border-hairline-width) solid transparent;
165
+ }
166
+
167
+ :where([data-gradient='border'])::before {
168
+ content: none;
169
+ }
170
+ }
171
+
172
+ @keyframes ghost-motion-shift {
173
+ from {
174
+ translate: 0;
175
+ }
176
+
177
+ to {
178
+ translate: 4.5rem;
179
+ }
180
+ }
181
+
182
+ @keyframes ghost-motion-fade {
183
+ from {
184
+ opacity: 0.25;
185
+ }
186
+
187
+ to {
188
+ opacity: 1;
189
+ }
190
+ }
191
+
192
+ :where([data-motion='standard']) {
193
+ animation: ghost-motion-shift var(--ghost-motion-duration-moderate)
194
+ var(--ghost-motion-easing-standard) both;
195
+ }
196
+
197
+ :where([data-motion='decelerate']) {
198
+ animation: ghost-motion-shift var(--ghost-motion-enter-duration)
199
+ var(--ghost-motion-easing-decelerate) both;
200
+ }
201
+
202
+ :where([data-motion='accelerate']) {
203
+ animation: ghost-motion-shift var(--ghost-motion-exit-duration)
204
+ var(--ghost-motion-easing-accelerate) both;
205
+ }
206
+
207
+ :where([data-motion='spring-gentle']) {
208
+ animation: ghost-motion-shift var(--ghost-motion-spring-gentle-duration)
209
+ var(--ghost-motion-spring-gentle) both;
210
+ }
211
+
212
+ :where([data-motion='spring-snappy']) {
213
+ animation: ghost-motion-shift var(--ghost-motion-spring-snappy-duration)
214
+ var(--ghost-motion-spring-snappy) both;
215
+ }
216
+
217
+ :where([data-motion='spring-bouncy']) {
218
+ animation: ghost-motion-shift var(--ghost-motion-spring-bouncy-duration)
219
+ var(--ghost-motion-spring-bouncy) both;
220
+ }
221
+
222
+ :where([data-motion='enter']) {
223
+ animation: ghost-motion-shift var(--ghost-motion-enter-duration)
224
+ var(--ghost-motion-easing-decelerate) both;
225
+ scale: var(--ghost-motion-scale);
226
+ }
227
+
228
+ @media (prefers-reduced-motion: reduce) {
229
+ :where([data-motion]) {
230
+ animation-name: ghost-motion-fade;
231
+ animation-duration: var(--ghost-motion-fade-duration);
232
+ animation-timing-function: var(--ghost-motion-easing-standard);
233
+ scale: 1;
234
+ translate: 0;
235
+ }
236
+
237
+ :where([data-interactive~='spotlight'] > [data-part='glow']) {
238
+ display: none;
239
+ }
240
+ }
241
+
242
+ /*
243
+ * Spotlight (ADR 0009). Transform-free overlay so controls keep box-shadow
244
+ * and focus rings. Opt-in via data-interactive; idle/off stay opacity 0.
245
+ */
246
+ :where([data-interactive~='spotlight']) {
247
+ isolation: isolate;
248
+ position: relative;
249
+ }
250
+
251
+ :where([data-interactive~='spotlight'] > [data-part='glow']) {
252
+ background: radial-gradient(
253
+ circle at var(--ghost-pointer-x, 50%) var(--ghost-pointer-y, 50%),
254
+ color-mix(
255
+ in oklch,
256
+ var(--ghost-interactive-spotlight-color) 100%,
257
+ transparent
258
+ ),
259
+ transparent var(--ghost-interactive-spotlight-size)
260
+ );
261
+ border-radius: inherit;
262
+ display: block;
263
+ inset: 0;
264
+ opacity: 0;
265
+ pointer-events: none;
266
+ position: absolute;
267
+ transition: opacity var(--ghost-interactive-leave-spring-duration)
268
+ var(--ghost-interactive-leave-spring);
269
+ /* Behind in-flow copy, with the button state layer. Isolation on the host
270
+ keeps -1 above the fill instead of disappearing behind the canvas. */
271
+ z-index: -1;
272
+ }
273
+
274
+ :where(
275
+ [data-interactive~='spotlight'][data-state='tracking'] > [data-part='glow'],
276
+ [data-interactive~='spotlight'][data-interactive-state='tracking']
277
+ > [data-part='glow']
278
+ ) {
279
+ opacity: calc(
280
+ var(--ghost-interactive-spotlight-opacity) *
281
+ var(--ghost-motion-intensity, 1)
282
+ );
283
+ transition-duration: var(--ghost-motion-duration-instant);
284
+ }
285
+
286
+ ::view-transition-old(root),
287
+ ::view-transition-new(root) {
288
+ animation-duration: var(--ghost-motion-duration-moderate);
289
+ animation-timing-function: var(--ghost-motion-easing-standard);
290
+ }
291
+
292
+ @media (forced-colors: active) {
293
+ :where([data-elevation]) {
294
+ background-color: Canvas;
295
+ border-color: CanvasText;
296
+ box-shadow: none;
297
+ color: CanvasText;
298
+ }
299
+
300
+ :where(
301
+ [data-material='solid'],
302
+ [data-material='glass'],
303
+ [data-material='grain']
304
+ ) {
305
+ background-color: Canvas;
306
+ background-image: none;
307
+ border-color: CanvasText;
308
+ -webkit-backdrop-filter: none;
309
+ backdrop-filter: none;
310
+ color: CanvasText;
311
+ }
312
+
313
+ :where([data-material='glass'])::before,
314
+ :where([data-material='grain'])::before,
315
+ :where([data-gradient='border'])::before {
316
+ content: none;
317
+ }
318
+
319
+ :where([data-gradient]) {
320
+ background-color: Canvas;
321
+ background-image: none;
322
+ color: CanvasText;
323
+ }
324
+
325
+ :where([data-interactive~='spotlight'] > [data-part='glow']) {
326
+ display: none;
327
+ }
328
+ }
329
+ }
330
+ @layer ghostvue-theme {
331
+ :where(.ghost-themed-scope) {
332
+ display: contents;
333
+ }
334
+
335
+ :where(.ghost-theme) {
336
+ background-color: var(--ghost-surface-bg);
337
+ color: var(--ghost-surface-fg);
338
+ font-family: var(--ghost-type-family-sans);
339
+ font-feature-settings: var(--ghost-type-feature-default);
340
+ }
341
+ }