@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.
- package/LICENSE +22 -0
- package/README.md +59 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/base.css +341 -0
- package/dist/calm.css +1909 -0
- package/dist/components.d.ts +153 -0
- package/dist/components.js +148 -0
- package/dist/default.css +11271 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5952 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5286 -0
- package/dist/generated/tokens.js +5283 -0
- package/dist/ghost-accordion-content.d.ts +26 -0
- package/dist/ghost-accordion-content.js +22 -0
- package/dist/ghost-accordion-item.d.ts +24 -0
- package/dist/ghost-accordion-item.js +16 -0
- package/dist/ghost-accordion-trigger.d.ts +17 -0
- package/dist/ghost-accordion-trigger.js +33 -0
- package/dist/ghost-accordion.d.ts +72 -0
- package/dist/ghost-accordion.js +56 -0
- package/dist/ghost-avatar.d.ts +60 -0
- package/dist/ghost-avatar.js +39 -0
- package/dist/ghost-badge.d.ts +46 -0
- package/dist/ghost-badge.js +33 -0
- package/dist/ghost-breadcrumb-ellipsis.d.ts +16 -0
- package/dist/ghost-breadcrumb-ellipsis.js +20 -0
- package/dist/ghost-breadcrumb-item.d.ts +18 -0
- package/dist/ghost-breadcrumb-item.js +20 -0
- package/dist/ghost-breadcrumb-link.d.ts +18 -0
- package/dist/ghost-breadcrumb-link.js +33 -0
- package/dist/ghost-breadcrumb-list.d.ts +18 -0
- package/dist/ghost-breadcrumb-list.js +27 -0
- package/dist/ghost-breadcrumb-page.d.ts +18 -0
- package/dist/ghost-breadcrumb-page.js +20 -0
- package/dist/ghost-breadcrumb-separator.d.ts +18 -0
- package/dist/ghost-breadcrumb-separator.js +20 -0
- package/dist/ghost-breadcrumb.d.ts +34 -0
- package/dist/ghost-breadcrumb.js +27 -0
- package/dist/ghost-button.d.ts +102 -0
- package/dist/ghost-button.js +66 -0
- package/dist/ghost-calendar-cell.d.ts +15 -0
- package/dist/ghost-calendar-cell.js +12 -0
- package/dist/ghost-calendar-grid.d.ts +5 -0
- package/dist/ghost-calendar-grid.js +21 -0
- package/dist/ghost-calendar-header.d.ts +3 -0
- package/dist/ghost-calendar-header.js +9 -0
- package/dist/ghost-calendar-heading.d.ts +3 -0
- package/dist/ghost-calendar-heading.js +9 -0
- package/dist/ghost-calendar-next-button.d.ts +9 -0
- package/dist/ghost-calendar-next-button.js +18 -0
- package/dist/ghost-calendar-prev-button.d.ts +9 -0
- package/dist/ghost-calendar-prev-button.js +18 -0
- package/dist/ghost-calendar.d.ts +119 -0
- package/dist/ghost-calendar.js +101 -0
- package/dist/ghost-card.d.ts +33 -0
- package/dist/ghost-card.js +36 -0
- package/dist/ghost-checkbox-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -0
- package/dist/ghost-checkbox.d.ts +76 -0
- package/dist/ghost-checkbox.js +59 -0
- package/dist/ghost-collapsible-content.d.ts +28 -0
- package/dist/ghost-collapsible-content.js +41 -0
- package/dist/ghost-collapsible-trigger.d.ts +28 -0
- package/dist/ghost-collapsible-trigger.js +41 -0
- package/dist/ghost-collapsible.d.ts +44 -0
- package/dist/ghost-collapsible.js +38 -0
- package/dist/ghost-combobox-content.d.ts +82 -0
- package/dist/ghost-combobox-content.js +58 -0
- package/dist/ghost-combobox-input.d.ts +28 -0
- package/dist/ghost-combobox-input.js +36 -0
- package/dist/ghost-combobox-trigger.d.ts +28 -0
- package/dist/ghost-combobox-trigger.js +36 -0
- package/dist/ghost-combobox.d.ts +179 -0
- package/dist/ghost-combobox.js +98 -0
- package/dist/ghost-command-palette-content.d.ts +86 -0
- package/dist/ghost-command-palette-content.js +55 -0
- package/dist/ghost-command-palette-overlay.d.ts +40 -0
- package/dist/ghost-command-palette-overlay.js +40 -0
- package/dist/ghost-command-palette.d.ts +114 -0
- package/dist/ghost-command-palette.js +93 -0
- package/dist/ghost-context-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-context-menu-checkbox-item.js +57 -0
- package/dist/ghost-context-menu-content.d.ts +85 -0
- package/dist/ghost-context-menu-content.js +75 -0
- package/dist/ghost-context-menu-group.d.ts +19 -0
- package/dist/ghost-context-menu-group.js +23 -0
- package/dist/ghost-context-menu-item.d.ts +32 -0
- package/dist/ghost-context-menu-item.js +43 -0
- package/dist/ghost-context-menu-label.d.ts +19 -0
- package/dist/ghost-context-menu-label.js +23 -0
- package/dist/ghost-context-menu-radio-group.d.ts +50 -0
- package/dist/ghost-context-menu-radio-group.js +46 -0
- package/dist/ghost-context-menu-radio-item.d.ts +40 -0
- package/dist/ghost-context-menu-radio-item.js +53 -0
- package/dist/ghost-context-menu-separator.d.ts +28 -0
- package/dist/ghost-context-menu-separator.js +28 -0
- package/dist/ghost-context-menu-trigger.d.ts +28 -0
- package/dist/ghost-context-menu-trigger.js +41 -0
- package/dist/ghost-context-menu.d.ts +35 -0
- package/dist/ghost-context-menu.js +33 -0
- package/dist/ghost-data-table-preset.d.ts +31 -0
- package/dist/ghost-data-table-preset.js +12 -0
- package/dist/ghost-data-table-table.d.ts +30 -0
- package/dist/ghost-data-table-table.js +9 -0
- package/dist/ghost-data-table.d.ts +94 -0
- package/dist/ghost-data-table.js +105 -0
- package/dist/ghost-date-picker-calendar.d.ts +9 -0
- package/dist/ghost-date-picker-calendar.js +30 -0
- package/dist/ghost-date-picker-content.d.ts +95 -0
- package/dist/ghost-date-picker-content.js +58 -0
- package/dist/ghost-date-picker-input.d.ts +46 -0
- package/dist/ghost-date-picker-input.js +39 -0
- package/dist/ghost-date-picker-trigger.d.ts +6 -0
- package/dist/ghost-date-picker-trigger.js +22 -0
- package/dist/ghost-date-picker.d.ts +245 -0
- package/dist/ghost-date-picker.js +68 -0
- package/dist/ghost-dialog-close.d.ts +28 -0
- package/dist/ghost-dialog-close.js +37 -0
- package/dist/ghost-dialog-content.d.ts +95 -0
- package/dist/ghost-dialog-content.js +78 -0
- package/dist/ghost-dialog-description.d.ts +19 -0
- package/dist/ghost-dialog-description.js +37 -0
- package/dist/ghost-dialog-overlay.d.ts +40 -0
- package/dist/ghost-dialog-overlay.js +46 -0
- package/dist/ghost-dialog-title.d.ts +19 -0
- package/dist/ghost-dialog-title.js +33 -0
- package/dist/ghost-dialog-trigger.d.ts +28 -0
- package/dist/ghost-dialog-trigger.js +37 -0
- package/dist/ghost-dialog.d.ts +44 -0
- package/dist/ghost-dialog.js +38 -0
- package/dist/ghost-drawer-close.d.ts +28 -0
- package/dist/ghost-drawer-close.js +37 -0
- package/dist/ghost-drawer-content.d.ts +87 -0
- package/dist/ghost-drawer-content.js +73 -0
- package/dist/ghost-drawer-description.d.ts +19 -0
- package/dist/ghost-drawer-description.js +36 -0
- package/dist/ghost-drawer-overlay.d.ts +40 -0
- package/dist/ghost-drawer-overlay.js +46 -0
- package/dist/ghost-drawer-title.d.ts +19 -0
- package/dist/ghost-drawer-title.js +32 -0
- package/dist/ghost-drawer-trigger.d.ts +28 -0
- package/dist/ghost-drawer-trigger.js +37 -0
- package/dist/ghost-drawer.d.ts +62 -0
- package/dist/ghost-drawer.js +48 -0
- package/dist/ghost-dropdown-menu-checkbox-item.d.ts +50 -0
- package/dist/ghost-dropdown-menu-checkbox-item.js +57 -0
- package/dist/ghost-dropdown-menu-content.d.ts +85 -0
- package/dist/ghost-dropdown-menu-content.js +75 -0
- package/dist/ghost-dropdown-menu-group.d.ts +19 -0
- package/dist/ghost-dropdown-menu-group.js +23 -0
- package/dist/ghost-dropdown-menu-item.d.ts +32 -0
- package/dist/ghost-dropdown-menu-item.js +47 -0
- package/dist/ghost-dropdown-menu-label.d.ts +19 -0
- package/dist/ghost-dropdown-menu-label.js +23 -0
- package/dist/ghost-dropdown-menu-radio-group.d.ts +50 -0
- package/dist/ghost-dropdown-menu-radio-group.js +46 -0
- package/dist/ghost-dropdown-menu-radio-item.d.ts +40 -0
- package/dist/ghost-dropdown-menu-radio-item.js +53 -0
- package/dist/ghost-dropdown-menu-separator.d.ts +28 -0
- package/dist/ghost-dropdown-menu-separator.js +28 -0
- package/dist/ghost-dropdown-menu-trigger.d.ts +28 -0
- package/dist/ghost-dropdown-menu-trigger.js +41 -0
- package/dist/ghost-dropdown-menu.d.ts +35 -0
- package/dist/ghost-dropdown-menu.js +33 -0
- package/dist/ghost-empty-state.d.ts +31 -0
- package/dist/ghost-empty-state.js +35 -0
- package/dist/ghost-field.d.ts +53 -0
- package/dist/ghost-field.js +49 -0
- package/dist/ghost-file-upload-dropzone.d.ts +9 -0
- package/dist/ghost-file-upload-dropzone.js +23 -0
- package/dist/ghost-file-upload-item-remove.d.ts +10 -0
- package/dist/ghost-file-upload-item-remove.js +30 -0
- package/dist/ghost-file-upload-list.d.ts +10 -0
- package/dist/ghost-file-upload-list.js +24 -0
- package/dist/ghost-file-upload-trigger.d.ts +18 -0
- package/dist/ghost-file-upload-trigger.js +30 -0
- package/dist/ghost-file-upload.d.ts +147 -0
- package/dist/ghost-file-upload.js +98 -0
- package/dist/ghost-hover-card-content.d.ts +85 -0
- package/dist/ghost-hover-card-content.js +75 -0
- package/dist/ghost-hover-card-trigger.d.ts +28 -0
- package/dist/ghost-hover-card-trigger.js +41 -0
- package/dist/ghost-hover-card.d.ts +62 -0
- package/dist/ghost-hover-card.js +48 -0
- package/dist/ghost-inline-alert.d.ts +62 -0
- package/dist/ghost-inline-alert.js +50 -0
- package/dist/ghost-input.d.ts +100 -0
- package/dist/ghost-input.js +60 -0
- package/dist/ghost-interactive-surface.d.ts +31 -0
- package/dist/ghost-interactive-surface.js +36 -0
- package/dist/ghost-kbd.d.ts +42 -0
- package/dist/ghost-kbd.js +32 -0
- package/dist/ghost-link.d.ts +94 -0
- package/dist/ghost-link.js +59 -0
- package/dist/ghost-menubar-checkbox-item.d.ts +50 -0
- package/dist/ghost-menubar-checkbox-item.js +57 -0
- package/dist/ghost-menubar-content.d.ts +85 -0
- package/dist/ghost-menubar-content.js +71 -0
- package/dist/ghost-menubar-group.d.ts +19 -0
- package/dist/ghost-menubar-group.js +19 -0
- package/dist/ghost-menubar-item.d.ts +32 -0
- package/dist/ghost-menubar-item.js +43 -0
- package/dist/ghost-menubar-label.d.ts +19 -0
- package/dist/ghost-menubar-label.js +19 -0
- package/dist/ghost-menubar-menu.d.ts +35 -0
- package/dist/ghost-menubar-menu.js +33 -0
- package/dist/ghost-menubar-radio-group.d.ts +50 -0
- package/dist/ghost-menubar-radio-group.js +46 -0
- package/dist/ghost-menubar-radio-item.d.ts +40 -0
- package/dist/ghost-menubar-radio-item.js +53 -0
- package/dist/ghost-menubar-separator.d.ts +28 -0
- package/dist/ghost-menubar-separator.js +28 -0
- package/dist/ghost-menubar-trigger.d.ts +28 -0
- package/dist/ghost-menubar-trigger.js +37 -0
- package/dist/ghost-menubar.d.ts +28 -0
- package/dist/ghost-menubar.js +33 -0
- package/dist/ghost-number-input.d.ts +153 -0
- package/dist/ghost-number-input.js +87 -0
- package/dist/ghost-pagination.d.ts +151 -0
- package/dist/ghost-pagination.js +71 -0
- package/dist/ghost-popover-close.d.ts +28 -0
- package/dist/ghost-popover-close.js +37 -0
- package/dist/ghost-popover-content.d.ts +86 -0
- package/dist/ghost-popover-content.js +72 -0
- package/dist/ghost-popover-trigger.d.ts +28 -0
- package/dist/ghost-popover-trigger.js +37 -0
- package/dist/ghost-popover.d.ts +35 -0
- package/dist/ghost-popover.js +33 -0
- package/dist/ghost-progress.d.ts +69 -0
- package/dist/ghost-progress.js +37 -0
- package/dist/ghost-radio-group-item.d.ts +37 -0
- package/dist/ghost-radio-group-item.js +33 -0
- package/dist/ghost-radio-group.d.ts +91 -0
- package/dist/ghost-radio-group.js +65 -0
- package/dist/ghost-scroll-area.d.ts +49 -0
- package/dist/ghost-scroll-area.js +32 -0
- package/dist/ghost-scroll-spy-item.d.ts +27 -0
- package/dist/ghost-scroll-spy-item.js +29 -0
- package/dist/ghost-scroll-spy-link.d.ts +44 -0
- package/dist/ghost-scroll-spy-link.js +39 -0
- package/dist/ghost-scroll-spy-list.d.ts +18 -0
- package/dist/ghost-scroll-spy-list.js +27 -0
- package/dist/ghost-scroll-spy.d.ts +121 -0
- package/dist/ghost-scroll-spy.js +83 -0
- package/dist/ghost-segmented-control-item.d.ts +36 -0
- package/dist/ghost-segmented-control-item.js +47 -0
- package/dist/ghost-segmented-control.d.ts +77 -0
- package/dist/ghost-segmented-control.js +73 -0
- package/dist/ghost-select-content.d.ts +82 -0
- package/dist/ghost-select-content.js +58 -0
- package/dist/ghost-select-trigger.d.ts +28 -0
- package/dist/ghost-select-trigger.js +36 -0
- package/dist/ghost-select.d.ts +54 -0
- package/dist/ghost-select.js +51 -0
- package/dist/ghost-separator.d.ts +41 -0
- package/dist/ghost-separator.js +34 -0
- package/dist/ghost-skeleton.d.ts +34 -0
- package/dist/ghost-skeleton.js +31 -0
- package/dist/ghost-slider.d.ts +150 -0
- package/dist/ghost-slider.js +83 -0
- package/dist/ghost-spinner.d.ts +42 -0
- package/dist/ghost-spinner.js +26 -0
- package/dist/ghost-submenu-content.d.ts +22 -0
- package/dist/ghost-submenu-content.js +17 -0
- package/dist/ghost-submenu-trigger.d.ts +11 -0
- package/dist/ghost-submenu-trigger.js +11 -0
- package/dist/ghost-submenu.d.ts +1 -0
- package/dist/ghost-submenu.js +1 -0
- package/dist/ghost-switch.d.ts +102 -0
- package/dist/ghost-switch.js +68 -0
- package/dist/ghost-table.d.ts +30 -0
- package/dist/ghost-table.js +36 -0
- package/dist/ghost-tabs-content.d.ts +27 -0
- package/dist/ghost-tabs-content.js +38 -0
- package/dist/ghost-tabs-list.d.ts +19 -0
- package/dist/ghost-tabs-list.js +33 -0
- package/dist/ghost-tabs-trigger.d.ts +36 -0
- package/dist/ghost-tabs-trigger.js +43 -0
- package/dist/ghost-tabs.d.ts +59 -0
- package/dist/ghost-tabs.js +45 -0
- package/dist/ghost-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -0
- package/dist/ghost-textarea.d.ts +109 -0
- package/dist/ghost-textarea.js +66 -0
- package/dist/ghost-toast-viewport.d.ts +43 -0
- package/dist/ghost-toast-viewport.js +74 -0
- package/dist/ghost-toast.d.ts +54 -0
- package/dist/ghost-toast.js +48 -0
- package/dist/ghost-toggle-group-item.d.ts +36 -0
- package/dist/ghost-toggle-group-item.js +43 -0
- package/dist/ghost-toggle-group.d.ts +77 -0
- package/dist/ghost-toggle-group.js +69 -0
- package/dist/ghost-toolbar.d.ts +6 -0
- package/dist/ghost-toolbar.js +24 -0
- package/dist/ghost-tooltip-content.d.ts +86 -0
- package/dist/ghost-tooltip-content.js +72 -0
- package/dist/ghost-tooltip-trigger.d.ts +28 -0
- package/dist/ghost-tooltip-trigger.js +37 -0
- package/dist/ghost-tooltip.d.ts +62 -0
- package/dist/ghost-tooltip.js +50 -0
- package/dist/ghost-tree-group.d.ts +32 -0
- package/dist/ghost-tree-group.js +39 -0
- package/dist/ghost-tree-item.d.ts +45 -0
- package/dist/ghost-tree-item.js +42 -0
- package/dist/ghost-tree-trigger.d.ts +40 -0
- package/dist/ghost-tree-trigger.js +43 -0
- package/dist/ghost-tree.d.ts +122 -0
- package/dist/ghost-tree.js +98 -0
- package/dist/index.d.ts +153 -0
- package/dist/index.js +149 -0
- package/dist/manifest.json +6835 -0
- package/dist/mono.css +1874 -0
- package/dist/recipes/accordion.css +42 -0
- package/dist/recipes/avatar.css +87 -0
- package/dist/recipes/badge.css +170 -0
- package/dist/recipes/breadcrumb.css +149 -0
- package/dist/recipes/button.css +632 -0
- package/dist/recipes/calendar.css +292 -0
- package/dist/recipes/card.css +54 -0
- package/dist/recipes/checkbox-group.css +30 -0
- package/dist/recipes/checkbox.css +262 -0
- package/dist/recipes/collapsible.css +304 -0
- package/dist/recipes/combobox.css +276 -0
- package/dist/recipes/command-palette.css +296 -0
- package/dist/recipes/context-menu.css +138 -0
- package/dist/recipes/data-table.css +462 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +199 -0
- package/dist/recipes/drawer.css +436 -0
- package/dist/recipes/dropdown-menu.css +138 -0
- package/dist/recipes/empty-state.css +66 -0
- package/dist/recipes/field.css +63 -0
- package/dist/recipes/file-upload.css +260 -0
- package/dist/recipes/hover-card.css +83 -0
- package/dist/recipes/inline-alert.css +172 -0
- package/dist/recipes/input.css +176 -0
- package/dist/recipes/kbd.css +113 -0
- package/dist/recipes/link.css +158 -0
- package/dist/recipes/menubar.css +161 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +102 -0
- package/dist/recipes/progress.css +124 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +72 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +237 -0
- package/dist/recipes/select.css +299 -0
- package/dist/recipes/separator.css +41 -0
- package/dist/recipes/skeleton.css +132 -0
- package/dist/recipes/slider.css +239 -0
- package/dist/recipes/spinner.css +93 -0
- package/dist/recipes/switch.css +314 -0
- package/dist/recipes/table.css +120 -0
- package/dist/recipes/tabs.css +139 -0
- package/dist/recipes/tags-input.css +120 -0
- package/dist/recipes/textarea.css +148 -0
- package/dist/recipes/toast.css +321 -0
- package/dist/recipes/toggle-group.css +92 -0
- package/dist/recipes/toolbar.css +25 -0
- package/dist/recipes/tooltip.css +48 -0
- package/dist/recipes/tree.css +231 -0
- package/dist/start-theme-transition.d.ts +9 -0
- package/dist/start-theme-transition.js +27 -0
- package/dist/tokens/primitives.json +612 -0
- package/dist/tokens/seeds.json +23 -0
- package/dist/tokens/semantic.compact.json +175 -0
- package/dist/tokens/semantic.dark.json +583 -0
- package/dist/tokens/semantic.json +1656 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1874 -0
- package/dist/tokens.json +6152 -0
- package/dist/vibrant.css +1874 -0
- 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
|
-
#
|
|
1
|
+
# @ghostvue/themes
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
}
|