@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.
- 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 +1899 -0
- package/dist/components.d.ts +148 -0
- package/dist/components.js +143 -0
- package/dist/default.css +11017 -0
- package/dist/define.d.ts +75 -0
- package/dist/define.js +5934 -0
- package/dist/flagship-themes.d.ts +5 -0
- package/dist/flagship-themes.js +3 -0
- package/dist/generated/tokens.d.ts +5275 -0
- package/dist/generated/tokens.js +5272 -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.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 +44 -0
- package/dist/ghost-field.js +44 -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 +115 -0
- package/dist/ghost-select.js +74 -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-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-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 +148 -0
- package/dist/index.js +144 -0
- package/dist/manifest.json +6375 -0
- package/dist/mono.css +1864 -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.css +262 -0
- package/dist/recipes/collapsible.css +304 -0
- package/dist/recipes/combobox.css +276 -0
- package/dist/recipes/command-palette.css +244 -0
- package/dist/recipes/context-menu.css +227 -0
- package/dist/recipes/data-table.css +455 -0
- package/dist/recipes/date-picker.css +292 -0
- package/dist/recipes/dialog.css +141 -0
- package/dist/recipes/drawer.css +338 -0
- package/dist/recipes/dropdown-menu.css +232 -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 +64 -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 +242 -0
- package/dist/recipes/number-input.css +222 -0
- package/dist/recipes/pagination.css +143 -0
- package/dist/recipes/popover.css +83 -0
- package/dist/recipes/progress.css +119 -0
- package/dist/recipes/radio-group.css +200 -0
- package/dist/recipes/scroll-area.css +31 -0
- package/dist/recipes/scroll-spy.css +72 -0
- package/dist/recipes/segmented-control.css +178 -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/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 +1651 -0
- package/dist/tokens/semantic.spacious.json +175 -0
- package/dist/tokens.css +1864 -0
- package/dist/tokens.json +6137 -0
- package/dist/vibrant.css +1864 -0
- package/package.json +75 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostAccordion stacks disclosure items and reuses collapsible surfaces.
|
|
3
|
+
*
|
|
4
|
+
* Visual opt-in is `.ghost-theme` / `.ghost-themed-scope` or the `data-themed`
|
|
5
|
+
* marker the themed root and item wrappers add. Do not select the headless
|
|
6
|
+
* behavior hooks (`data-ghost-accordion`, `data-ghost-accordion-value`, bare
|
|
7
|
+
* `data-part='header'`): every unstyled `@ghostvue/vue` accordion renders them,
|
|
8
|
+
* so matching them would style headless instances whenever this sheet loads.
|
|
9
|
+
*/
|
|
10
|
+
@layer ghostvue-theme {
|
|
11
|
+
:where(
|
|
12
|
+
.ghost-theme .ghost-accordion,
|
|
13
|
+
.ghost-themed-scope .ghost-accordion,
|
|
14
|
+
.ghost-accordion[data-themed]
|
|
15
|
+
) {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--ghost-space-gap-xs);
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(
|
|
23
|
+
.ghost-theme .ghost-accordion-item,
|
|
24
|
+
.ghost-themed-scope .ghost-accordion-item,
|
|
25
|
+
.ghost-accordion-item[data-themed]
|
|
26
|
+
) {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* The header is the item's own part; the child combinator keeps a nested
|
|
33
|
+
headless accordion inside a themed panel unstyled. */
|
|
34
|
+
:where(
|
|
35
|
+
.ghost-theme .ghost-accordion-header,
|
|
36
|
+
.ghost-themed-scope .ghost-accordion-header,
|
|
37
|
+
.ghost-accordion-item[data-themed] > .ghost-accordion-header
|
|
38
|
+
) {
|
|
39
|
+
margin: 0;
|
|
40
|
+
font: inherit;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostAvatar. Visual values come from semantic --ghost-* tokens. Private
|
|
3
|
+
* --_ghost-avatar-* properties are per-instance wiring, not a public API.
|
|
4
|
+
* Defaults are md (omitted data-size). Circular frame with object-fit cover.
|
|
5
|
+
*/
|
|
6
|
+
@layer ghostvue-theme {
|
|
7
|
+
:where(.ghost-theme .ghost-avatar, .ghost-themed-scope .ghost-avatar) {
|
|
8
|
+
--_ghost-avatar-size: var(--ghost-control-size-md-min);
|
|
9
|
+
--_ghost-avatar-font-size: var(--ghost-control-size-md-font);
|
|
10
|
+
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: color-mix(
|
|
13
|
+
in oklch,
|
|
14
|
+
var(--ghost-action-neutral-bg) calc(100% * var(--ghost-state-mix-soft)),
|
|
15
|
+
var(--ghost-surface-bg)
|
|
16
|
+
);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
color: var(--ghost-action-neutral-bg);
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
flex: none;
|
|
22
|
+
font-family: var(--ghost-type-family-sans);
|
|
23
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
24
|
+
font-size: var(--_ghost-avatar-font-size);
|
|
25
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
26
|
+
block-size: var(--_ghost-avatar-size);
|
|
27
|
+
inline-size: var(--_ghost-avatar-size);
|
|
28
|
+
justify-content: center;
|
|
29
|
+
line-height: var(--ghost-type-line-tight);
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
position: relative;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(
|
|
36
|
+
.ghost-theme .ghost-avatar [data-part='image'],
|
|
37
|
+
.ghost-themed-scope .ghost-avatar [data-part='image']
|
|
38
|
+
) {
|
|
39
|
+
block-size: 100%;
|
|
40
|
+
display: block;
|
|
41
|
+
inline-size: 100%;
|
|
42
|
+
object-fit: cover;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where(
|
|
46
|
+
.ghost-theme .ghost-avatar [data-part='fallback'],
|
|
47
|
+
.ghost-themed-scope .ghost-avatar [data-part='fallback']
|
|
48
|
+
) {
|
|
49
|
+
align-items: center;
|
|
50
|
+
display: flex;
|
|
51
|
+
block-size: 100%;
|
|
52
|
+
inline-size: 100%;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
user-select: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(
|
|
58
|
+
.ghost-theme .ghost-avatar[data-size='sm'],
|
|
59
|
+
.ghost-themed-scope .ghost-avatar[data-size='sm']
|
|
60
|
+
) {
|
|
61
|
+
--_ghost-avatar-size: var(--ghost-control-size-sm-min);
|
|
62
|
+
--_ghost-avatar-font-size: var(--ghost-control-size-sm-font);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(
|
|
66
|
+
.ghost-theme .ghost-avatar[data-size='lg'],
|
|
67
|
+
.ghost-themed-scope .ghost-avatar[data-size='lg']
|
|
68
|
+
) {
|
|
69
|
+
--_ghost-avatar-size: var(--ghost-control-size-lg-min);
|
|
70
|
+
--_ghost-avatar-font-size: var(--ghost-control-size-lg-font);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(
|
|
74
|
+
.ghost-theme .ghost-avatar[data-state='loading'],
|
|
75
|
+
.ghost-themed-scope .ghost-avatar[data-state='loading']
|
|
76
|
+
) {
|
|
77
|
+
opacity: 0.92;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (forced-colors: active) {
|
|
81
|
+
:where(.ghost-theme .ghost-avatar, .ghost-themed-scope .ghost-avatar) {
|
|
82
|
+
background-color: Canvas;
|
|
83
|
+
border: var(--ghost-border-hairline-width) solid CanvasText;
|
|
84
|
+
color: CanvasText;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostBadge. Visual values come from semantic --ghost-* tokens. Private
|
|
3
|
+
* --_ghost-badge-* properties are per-instance wiring, not a public API.
|
|
4
|
+
* Defaults are soft / neutral / sm (omitted data-* hooks). No hover or press:
|
|
5
|
+
* the contract is non-interactive. No control-size min: those minima are
|
|
6
|
+
* touch targets and would make table-cell badges too tall.
|
|
7
|
+
*/
|
|
8
|
+
@layer ghostvue-theme {
|
|
9
|
+
:where(.ghost-theme .ghost-badge, .ghost-themed-scope .ghost-badge) {
|
|
10
|
+
--_ghost-badge-tone-color: var(--ghost-action-neutral-bg);
|
|
11
|
+
--_ghost-badge-tone-contrast: var(--ghost-action-neutral-fg);
|
|
12
|
+
--_ghost-badge-tone-border: var(--ghost-action-neutral-border);
|
|
13
|
+
--_ghost-badge-fill: none;
|
|
14
|
+
--_ghost-badge-background: color-mix(
|
|
15
|
+
in oklch,
|
|
16
|
+
var(--_ghost-badge-tone-color) calc(100% * var(--ghost-state-mix-soft)),
|
|
17
|
+
var(--ghost-surface-bg)
|
|
18
|
+
);
|
|
19
|
+
--_ghost-badge-border-color: color-mix(
|
|
20
|
+
in oklch,
|
|
21
|
+
var(--_ghost-badge-tone-color) calc(100% * var(--ghost-state-mix-border)),
|
|
22
|
+
var(--ghost-surface-bg)
|
|
23
|
+
);
|
|
24
|
+
--_ghost-badge-color: var(--_ghost-badge-tone-color);
|
|
25
|
+
--_ghost-badge-font-size: var(--ghost-type-size-xs);
|
|
26
|
+
--_ghost-badge-padding-block: var(--ghost-space-gap-xs);
|
|
27
|
+
--_ghost-badge-padding-inline: var(--ghost-space-inset-xs);
|
|
28
|
+
|
|
29
|
+
align-items: center;
|
|
30
|
+
background-color: var(--_ghost-badge-background);
|
|
31
|
+
background-image: var(--_ghost-badge-fill);
|
|
32
|
+
border: var(--ghost-border-hairline-width) solid
|
|
33
|
+
var(--_ghost-badge-border-color);
|
|
34
|
+
border-radius: var(--ghost-radius-pill);
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
color: var(--_ghost-badge-color);
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
font-family: var(--ghost-action-label-family);
|
|
39
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
40
|
+
font-size: var(--_ghost-badge-font-size);
|
|
41
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
42
|
+
gap: var(--ghost-space-gap-xs);
|
|
43
|
+
letter-spacing: var(--ghost-action-label-letter);
|
|
44
|
+
line-height: var(--ghost-type-line-tight);
|
|
45
|
+
max-inline-size: 100%;
|
|
46
|
+
padding-block: var(--_ghost-badge-padding-block);
|
|
47
|
+
padding-inline: var(--_ghost-badge-padding-inline);
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(
|
|
53
|
+
.ghost-theme .ghost-badge[data-tone='accent'],
|
|
54
|
+
.ghost-themed-scope .ghost-badge[data-tone='accent']
|
|
55
|
+
) {
|
|
56
|
+
--_ghost-badge-tone-color: var(--ghost-action-primary-bg);
|
|
57
|
+
--_ghost-badge-tone-contrast: var(--ghost-action-primary-fg);
|
|
58
|
+
--_ghost-badge-tone-border: var(--ghost-action-primary-border);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(
|
|
62
|
+
.ghost-theme .ghost-badge[data-tone='danger'],
|
|
63
|
+
.ghost-themed-scope .ghost-badge[data-tone='danger']
|
|
64
|
+
) {
|
|
65
|
+
--_ghost-badge-tone-color: var(--ghost-action-danger-bg);
|
|
66
|
+
--_ghost-badge-tone-contrast: var(--ghost-action-danger-fg);
|
|
67
|
+
--_ghost-badge-tone-border: var(--ghost-action-danger-border);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(
|
|
71
|
+
.ghost-theme .ghost-badge[data-variant='solid'],
|
|
72
|
+
.ghost-themed-scope .ghost-badge[data-variant='solid']
|
|
73
|
+
) {
|
|
74
|
+
--_ghost-badge-background: var(--_ghost-badge-tone-color);
|
|
75
|
+
--_ghost-badge-border-color: var(--_ghost-badge-tone-border);
|
|
76
|
+
--_ghost-badge-color: var(--_ghost-badge-tone-contrast);
|
|
77
|
+
--_ghost-badge-fill: var(--ghost-gradient-action-neutral);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where(
|
|
81
|
+
.ghost-theme .ghost-badge[data-tone='accent'][data-variant='solid'],
|
|
82
|
+
.ghost-themed-scope .ghost-badge[data-tone='accent'][data-variant='solid']
|
|
83
|
+
) {
|
|
84
|
+
--_ghost-badge-fill: var(--ghost-gradient-action-primary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(
|
|
88
|
+
.ghost-theme .ghost-badge[data-tone='danger'][data-variant='solid'],
|
|
89
|
+
.ghost-themed-scope .ghost-badge[data-tone='danger'][data-variant='solid']
|
|
90
|
+
) {
|
|
91
|
+
--_ghost-badge-fill: var(--ghost-gradient-action-danger);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(
|
|
95
|
+
.ghost-theme .ghost-badge[data-variant='outline'],
|
|
96
|
+
.ghost-themed-scope .ghost-badge[data-variant='outline']
|
|
97
|
+
) {
|
|
98
|
+
--_ghost-badge-background: transparent;
|
|
99
|
+
--_ghost-badge-border-color: var(--_ghost-badge-tone-border);
|
|
100
|
+
--_ghost-badge-color: var(--_ghost-badge-tone-color);
|
|
101
|
+
--_ghost-badge-fill: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(
|
|
105
|
+
.ghost-theme .ghost-badge[data-variant='ghost'],
|
|
106
|
+
.ghost-themed-scope .ghost-badge[data-variant='ghost']
|
|
107
|
+
) {
|
|
108
|
+
--_ghost-badge-background: transparent;
|
|
109
|
+
--_ghost-badge-border-color: transparent;
|
|
110
|
+
--_ghost-badge-color: var(--_ghost-badge-tone-color);
|
|
111
|
+
--_ghost-badge-fill: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(
|
|
115
|
+
.ghost-theme .ghost-badge[data-size='md'],
|
|
116
|
+
.ghost-themed-scope .ghost-badge[data-size='md']
|
|
117
|
+
) {
|
|
118
|
+
--_ghost-badge-font-size: var(--ghost-type-size-sm);
|
|
119
|
+
--_ghost-badge-padding-block: var(--ghost-space-inset-xs);
|
|
120
|
+
--_ghost-badge-padding-inline: var(--ghost-space-inset-sm);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where(
|
|
124
|
+
.ghost-theme .ghost-badge:focus-visible,
|
|
125
|
+
.ghost-themed-scope .ghost-badge:focus-visible
|
|
126
|
+
) {
|
|
127
|
+
box-shadow: 0 0 0 var(--ghost-focus-ring-offset)
|
|
128
|
+
var(--ghost-focus-ring-contrast);
|
|
129
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
130
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:where(
|
|
134
|
+
.ghost-theme .ghost-badge [data-part='icon'],
|
|
135
|
+
.ghost-themed-scope .ghost-badge [data-part='icon']
|
|
136
|
+
) {
|
|
137
|
+
block-size: var(--ghost-action-icon-size);
|
|
138
|
+
flex: none;
|
|
139
|
+
inline-size: var(--ghost-action-icon-size);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:where(
|
|
143
|
+
.ghost-theme .ghost-badge [data-part='icon'] svg,
|
|
144
|
+
.ghost-themed-scope .ghost-badge [data-part='icon'] svg
|
|
145
|
+
) {
|
|
146
|
+
block-size: 100%;
|
|
147
|
+
display: block;
|
|
148
|
+
inline-size: 100%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (forced-colors: active) {
|
|
152
|
+
:where(.ghost-theme .ghost-badge, .ghost-themed-scope .ghost-badge) {
|
|
153
|
+
--_ghost-badge-fill: none;
|
|
154
|
+
|
|
155
|
+
background-color: Canvas;
|
|
156
|
+
background-image: none;
|
|
157
|
+
border-color: CanvasText;
|
|
158
|
+
box-shadow: none;
|
|
159
|
+
color: CanvasText;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:where(
|
|
163
|
+
.ghost-theme .ghost-badge:focus-visible,
|
|
164
|
+
.ghost-themed-scope .ghost-badge:focus-visible
|
|
165
|
+
) {
|
|
166
|
+
box-shadow: none;
|
|
167
|
+
outline-color: Highlight;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostBreadcrumb trail. Values use semantic --ghost-* tokens only.
|
|
3
|
+
*/
|
|
4
|
+
@layer ghostvue-theme {
|
|
5
|
+
:where(
|
|
6
|
+
.ghost-theme .ghost-breadcrumb-list,
|
|
7
|
+
.ghost-themed-scope .ghost-breadcrumb-list,
|
|
8
|
+
.ghost-breadcrumb-list[data-themed]
|
|
9
|
+
) {
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
font-family: var(--ghost-type-family-sans);
|
|
14
|
+
font-feature-settings: var(--ghost-type-feature-default);
|
|
15
|
+
gap: var(--ghost-space-gap-sm);
|
|
16
|
+
list-style: none;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(
|
|
22
|
+
.ghost-theme .ghost-breadcrumb-item,
|
|
23
|
+
.ghost-themed-scope .ghost-breadcrumb-item,
|
|
24
|
+
.ghost-breadcrumb-item[data-themed]
|
|
25
|
+
) {
|
|
26
|
+
align-items: center;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
/* gap-sm: compact densities resolve gap-xs to 0, gluing separators to links. */
|
|
29
|
+
gap: var(--ghost-space-gap-sm);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(
|
|
33
|
+
.ghost-theme .ghost-breadcrumb-link,
|
|
34
|
+
.ghost-themed-scope .ghost-breadcrumb-link,
|
|
35
|
+
.ghost-breadcrumb-link[data-themed]
|
|
36
|
+
) {
|
|
37
|
+
color: var(--ghost-text-muted);
|
|
38
|
+
font: inherit;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
transition: color var(--ghost-motion-duration-fast)
|
|
41
|
+
var(--ghost-motion-easing-standard);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(
|
|
45
|
+
.ghost-theme .ghost-breadcrumb-link:hover,
|
|
46
|
+
.ghost-themed-scope .ghost-breadcrumb-link:hover,
|
|
47
|
+
.ghost-breadcrumb-link[data-themed]:hover
|
|
48
|
+
) {
|
|
49
|
+
color: var(--ghost-surface-fg);
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(
|
|
54
|
+
.ghost-theme .ghost-breadcrumb-link:focus-visible,
|
|
55
|
+
.ghost-themed-scope .ghost-breadcrumb-link:focus-visible,
|
|
56
|
+
.ghost-breadcrumb-link[data-themed]:focus-visible
|
|
57
|
+
) {
|
|
58
|
+
border-radius: var(--ghost-radius-sm);
|
|
59
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
60
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(
|
|
64
|
+
.ghost-theme .ghost-breadcrumb-page,
|
|
65
|
+
.ghost-themed-scope .ghost-breadcrumb-page,
|
|
66
|
+
.ghost-breadcrumb-page[data-themed]
|
|
67
|
+
) {
|
|
68
|
+
color: var(--ghost-surface-fg);
|
|
69
|
+
font: inherit;
|
|
70
|
+
font-weight: var(--ghost-type-weight-medium);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(
|
|
74
|
+
.ghost-theme .ghost-breadcrumb-separator,
|
|
75
|
+
.ghost-themed-scope .ghost-breadcrumb-separator,
|
|
76
|
+
.ghost-breadcrumb-separator[data-themed]
|
|
77
|
+
) {
|
|
78
|
+
color: var(--ghost-text-subtle);
|
|
79
|
+
user-select: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/*
|
|
83
|
+
* The ellipsis class sits on the trigger button itself. The headless part
|
|
84
|
+
* mirrors `data-themed` onto the trigger and onto the body-portaled content,
|
|
85
|
+
* so both are reachable without a `.ghost-theme` ancestor.
|
|
86
|
+
*/
|
|
87
|
+
:where(
|
|
88
|
+
.ghost-theme .ghost-breadcrumb-ellipsis,
|
|
89
|
+
.ghost-themed-scope .ghost-breadcrumb-ellipsis,
|
|
90
|
+
.ghost-breadcrumb-ellipsis[data-themed]
|
|
91
|
+
) {
|
|
92
|
+
align-items: center;
|
|
93
|
+
background: transparent;
|
|
94
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
95
|
+
border-radius: var(--ghost-radius-sm);
|
|
96
|
+
color: var(--ghost-text-muted);
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
font: inherit;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
line-height: 1;
|
|
102
|
+
min-height: var(--ghost-control-size-sm-min);
|
|
103
|
+
min-width: var(--ghost-control-size-sm-min);
|
|
104
|
+
padding: 0 var(--ghost-space-inset-xs);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(
|
|
108
|
+
.ghost-theme .ghost-breadcrumb-ellipsis:hover,
|
|
109
|
+
.ghost-themed-scope .ghost-breadcrumb-ellipsis:hover,
|
|
110
|
+
.ghost-breadcrumb-ellipsis[data-themed]:hover,
|
|
111
|
+
.ghost-theme .ghost-breadcrumb-ellipsis[aria-expanded='true'],
|
|
112
|
+
.ghost-themed-scope .ghost-breadcrumb-ellipsis[aria-expanded='true'],
|
|
113
|
+
.ghost-breadcrumb-ellipsis[data-themed][aria-expanded='true']
|
|
114
|
+
) {
|
|
115
|
+
background-color: var(--ghost-surface-muted-bg);
|
|
116
|
+
color: var(--ghost-surface-fg);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(
|
|
120
|
+
.ghost-theme .ghost-breadcrumb-ellipsis:focus-visible,
|
|
121
|
+
.ghost-themed-scope .ghost-breadcrumb-ellipsis:focus-visible,
|
|
122
|
+
.ghost-breadcrumb-ellipsis[data-themed]:focus-visible
|
|
123
|
+
) {
|
|
124
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
125
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Surface, border, elevation and z-index come from ghost-popover.css. */
|
|
129
|
+
:where(
|
|
130
|
+
.ghost-theme .ghost-breadcrumb-ellipsis-content,
|
|
131
|
+
.ghost-themed-scope .ghost-breadcrumb-ellipsis-content,
|
|
132
|
+
.ghost-breadcrumb-ellipsis-content[data-themed]
|
|
133
|
+
) {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
min-width: 10rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:where(
|
|
140
|
+
.ghost-theme .ghost-breadcrumb-ellipsis-content > .ghost-breadcrumb-link,
|
|
141
|
+
.ghost-themed-scope
|
|
142
|
+
.ghost-breadcrumb-ellipsis-content
|
|
143
|
+
> .ghost-breadcrumb-link,
|
|
144
|
+
.ghost-breadcrumb-ellipsis-content[data-themed] > .ghost-breadcrumb-link
|
|
145
|
+
) {
|
|
146
|
+
border-radius: var(--ghost-radius-sm);
|
|
147
|
+
padding: var(--ghost-space-inset-xs);
|
|
148
|
+
}
|
|
149
|
+
}
|