@ghostvue/themes 0.1.0 → 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/dist/calm.css +24 -14
- package/dist/components.d.ts +7 -2
- package/dist/components.js +6 -1
- package/dist/default.css +1006 -752
- package/dist/define.js +21 -3
- package/dist/generated/tokens.d.ts +11 -0
- package/dist/generated/tokens.js +11 -0
- package/dist/ghost-checkbox-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -0
- package/dist/ghost-field.d.ts +12 -3
- package/dist/ghost-field.js +6 -1
- package/dist/ghost-select.d.ts +52 -113
- package/dist/ghost-select.js +45 -68
- 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-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -1
- package/dist/manifest.json +471 -11
- package/dist/mono.css +24 -14
- package/dist/recipes/checkbox-group.css +30 -0
- package/dist/recipes/command-palette.css +52 -0
- package/dist/recipes/context-menu.css +95 -184
- package/dist/recipes/data-table.css +151 -144
- package/dist/recipes/dialog.css +68 -10
- package/dist/recipes/drawer.css +109 -11
- package/dist/recipes/dropdown-menu.css +95 -189
- package/dist/recipes/hover-card.css +19 -0
- package/dist/recipes/menubar.css +110 -191
- package/dist/recipes/popover.css +19 -0
- package/dist/recipes/progress.css +7 -2
- package/dist/recipes/scroll-area.css +43 -2
- package/dist/recipes/segmented-control.css +62 -3
- package/dist/recipes/tags-input.css +120 -0
- package/dist/tokens/semantic.json +5 -0
- package/dist/tokens.css +24 -14
- package/dist/tokens.json +15 -0
- package/dist/vibrant.css +24 -14
- package/package.json +3 -3
|
@@ -1386,6 +1386,11 @@
|
|
|
1386
1386
|
"$type": "dimension",
|
|
1387
1387
|
"$value": "{space.5}",
|
|
1388
1388
|
"$description": "Large inset. 20px at comfortable density."
|
|
1389
|
+
},
|
|
1390
|
+
"scrollbar": {
|
|
1391
|
+
"$type": "dimension",
|
|
1392
|
+
"$value": "{space.4}",
|
|
1393
|
+
"$description": "16px clearance a scroll container keeps beside its scrollbar so overlay scrollbars never cover content. Same across densities: platform scrollbars do not scale with density."
|
|
1389
1394
|
}
|
|
1390
1395
|
},
|
|
1391
1396
|
"stack": {
|
package/dist/tokens.css
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
* flash the opposite palette.
|
|
11
11
|
*/
|
|
12
12
|
@layer ghostvue-theme {
|
|
13
|
+
:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) {
|
|
14
|
+
--_ghost-progress-intensity-baseline: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) {
|
|
14
18
|
--ghost-action-danger-bg: #b91c1c;
|
|
15
19
|
--ghost-action-danger-bg-active: #640004;
|
|
@@ -158,6 +162,7 @@
|
|
|
158
162
|
--ghost-space-inset-2xs: 0.25rem;
|
|
159
163
|
--ghost-space-inset-lg: 1.25rem;
|
|
160
164
|
--ghost-space-inset-md: 1rem;
|
|
165
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
161
166
|
--ghost-space-inset-sm: 0.75rem;
|
|
162
167
|
--ghost-space-inset-xs: 0.5rem;
|
|
163
168
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -229,11 +234,11 @@
|
|
|
229
234
|
|
|
230
235
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
231
236
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
232
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
237
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
233
238
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
234
239
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
235
240
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
236
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
241
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
237
242
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
238
243
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
239
244
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -402,6 +407,7 @@
|
|
|
402
407
|
--ghost-space-inset-2xs: 0.25rem;
|
|
403
408
|
--ghost-space-inset-lg: 1.25rem;
|
|
404
409
|
--ghost-space-inset-md: 1rem;
|
|
410
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
405
411
|
--ghost-space-inset-sm: 0.75rem;
|
|
406
412
|
--ghost-space-inset-xs: 0.5rem;
|
|
407
413
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -473,11 +479,11 @@
|
|
|
473
479
|
|
|
474
480
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
475
481
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
476
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
482
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
477
483
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
478
484
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
479
485
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
480
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
486
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
481
487
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
482
488
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
483
489
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -647,6 +653,7 @@
|
|
|
647
653
|
--ghost-space-inset-2xs: 0.25rem;
|
|
648
654
|
--ghost-space-inset-lg: 1.25rem;
|
|
649
655
|
--ghost-space-inset-md: 1rem;
|
|
656
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
650
657
|
--ghost-space-inset-sm: 0.75rem;
|
|
651
658
|
--ghost-space-inset-xs: 0.5rem;
|
|
652
659
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -718,11 +725,11 @@
|
|
|
718
725
|
|
|
719
726
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='light']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='light'])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='light']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='light'])) :where(*) {
|
|
720
727
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
721
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
728
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
722
729
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
723
730
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
724
731
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
725
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
732
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
726
733
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
727
734
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
728
735
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -891,6 +898,7 @@
|
|
|
891
898
|
--ghost-space-inset-2xs: 0.25rem;
|
|
892
899
|
--ghost-space-inset-lg: 1.25rem;
|
|
893
900
|
--ghost-space-inset-md: 1rem;
|
|
901
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
894
902
|
--ghost-space-inset-sm: 0.75rem;
|
|
895
903
|
--ghost-space-inset-xs: 0.5rem;
|
|
896
904
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -962,11 +970,11 @@
|
|
|
962
970
|
|
|
963
971
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='dark']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='dark'])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='dark']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='dark'])) :where(*) {
|
|
964
972
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
965
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
973
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
966
974
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
967
975
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
968
976
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
969
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
977
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
970
978
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
971
979
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
972
980
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1136,6 +1144,7 @@
|
|
|
1136
1144
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1137
1145
|
--ghost-space-inset-lg: 1.25rem;
|
|
1138
1146
|
--ghost-space-inset-md: 1rem;
|
|
1147
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1139
1148
|
--ghost-space-inset-sm: 0.75rem;
|
|
1140
1149
|
--ghost-space-inset-xs: 0.5rem;
|
|
1141
1150
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1207,11 +1216,11 @@
|
|
|
1207
1216
|
|
|
1208
1217
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])) :where(*) {
|
|
1209
1218
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1210
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1219
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1211
1220
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1212
1221
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1213
1222
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1214
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1223
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1215
1224
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1216
1225
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1217
1226
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1382,6 +1391,7 @@
|
|
|
1382
1391
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1383
1392
|
--ghost-space-inset-lg: 1.25rem;
|
|
1384
1393
|
--ghost-space-inset-md: 1rem;
|
|
1394
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1385
1395
|
--ghost-space-inset-sm: 0.75rem;
|
|
1386
1396
|
--ghost-space-inset-xs: 0.5rem;
|
|
1387
1397
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1453,11 +1463,11 @@
|
|
|
1453
1463
|
|
|
1454
1464
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])) :where(*) {
|
|
1455
1465
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1456
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1466
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1457
1467
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1458
1468
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1459
1469
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1460
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1470
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1461
1471
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1462
1472
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1463
1473
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1631,7 +1641,7 @@
|
|
|
1631
1641
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1632
1642
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1633
1643
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1634
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1644
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1635
1645
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1636
1646
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1637
1647
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1655,7 +1665,7 @@
|
|
|
1655
1665
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1656
1666
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1657
1667
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1658
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1668
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1659
1669
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1660
1670
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1661
1671
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
package/dist/tokens.json
CHANGED
|
@@ -5078,6 +5078,21 @@
|
|
|
5078
5078
|
"dark": "space.4"
|
|
5079
5079
|
}
|
|
5080
5080
|
},
|
|
5081
|
+
{
|
|
5082
|
+
"name": "space.inset.scrollbar",
|
|
5083
|
+
"type": "dimension",
|
|
5084
|
+
"tier": "semantic",
|
|
5085
|
+
"description": "16px clearance a scroll container keeps beside its scrollbar so overlay scrollbars never cover content. Same across densities: platform scrollbars do not scale with density.",
|
|
5086
|
+
"value": {
|
|
5087
|
+
"light": "1rem",
|
|
5088
|
+
"dark": "1rem"
|
|
5089
|
+
},
|
|
5090
|
+
"cssVar": "--ghost-space-inset-scrollbar",
|
|
5091
|
+
"aliases": {
|
|
5092
|
+
"light": "space.4",
|
|
5093
|
+
"dark": "space.4"
|
|
5094
|
+
}
|
|
5095
|
+
},
|
|
5081
5096
|
{
|
|
5082
5097
|
"name": "space.inset.sm",
|
|
5083
5098
|
"type": "dimension",
|
package/dist/vibrant.css
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
* flash the opposite palette.
|
|
11
11
|
*/
|
|
12
12
|
@layer ghostvue-theme {
|
|
13
|
+
:where([data-ghost-theme='vibrant']) {
|
|
14
|
+
--_ghost-progress-intensity-baseline: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
:where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) {
|
|
14
18
|
--ghost-action-danger-bg: #b91c1c;
|
|
15
19
|
--ghost-action-danger-bg-active: #640004;
|
|
@@ -158,6 +162,7 @@
|
|
|
158
162
|
--ghost-space-inset-2xs: 0.25rem;
|
|
159
163
|
--ghost-space-inset-lg: 1.25rem;
|
|
160
164
|
--ghost-space-inset-md: 1rem;
|
|
165
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
161
166
|
--ghost-space-inset-sm: 0.75rem;
|
|
162
167
|
--ghost-space-inset-xs: 0.5rem;
|
|
163
168
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -229,11 +234,11 @@
|
|
|
229
234
|
|
|
230
235
|
:where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
231
236
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
232
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
237
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
233
238
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
234
239
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
235
240
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
236
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
241
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
237
242
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
238
243
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
239
244
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -402,6 +407,7 @@
|
|
|
402
407
|
--ghost-space-inset-2xs: 0.25rem;
|
|
403
408
|
--ghost-space-inset-lg: 1.25rem;
|
|
404
409
|
--ghost-space-inset-md: 1rem;
|
|
410
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
405
411
|
--ghost-space-inset-sm: 0.75rem;
|
|
406
412
|
--ghost-space-inset-xs: 0.5rem;
|
|
407
413
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -473,11 +479,11 @@
|
|
|
473
479
|
|
|
474
480
|
:where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
475
481
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
476
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
482
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
477
483
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
478
484
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
479
485
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
480
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
486
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
481
487
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
482
488
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
483
489
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -647,6 +653,7 @@
|
|
|
647
653
|
--ghost-space-inset-2xs: 0.25rem;
|
|
648
654
|
--ghost-space-inset-lg: 1.25rem;
|
|
649
655
|
--ghost-space-inset-md: 1rem;
|
|
656
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
650
657
|
--ghost-space-inset-sm: 0.75rem;
|
|
651
658
|
--ghost-space-inset-xs: 0.5rem;
|
|
652
659
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -718,11 +725,11 @@
|
|
|
718
725
|
|
|
719
726
|
:where(:where([data-ghost-theme='vibrant']):where([data-ghost-mode='light']), :where([data-ghost-theme='vibrant']) :where([data-ghost-mode='light'])), :where(:where([data-ghost-theme='vibrant']):where([data-ghost-mode='light']), :where([data-ghost-theme='vibrant']) :where([data-ghost-mode='light'])) :where(*) {
|
|
720
727
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
721
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
728
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
722
729
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
723
730
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
724
731
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
725
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
732
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
726
733
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
727
734
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
728
735
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -891,6 +898,7 @@
|
|
|
891
898
|
--ghost-space-inset-2xs: 0.25rem;
|
|
892
899
|
--ghost-space-inset-lg: 1.25rem;
|
|
893
900
|
--ghost-space-inset-md: 1rem;
|
|
901
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
894
902
|
--ghost-space-inset-sm: 0.75rem;
|
|
895
903
|
--ghost-space-inset-xs: 0.5rem;
|
|
896
904
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -962,11 +970,11 @@
|
|
|
962
970
|
|
|
963
971
|
:where(:where([data-ghost-theme='vibrant']):where([data-ghost-mode='dark']), :where([data-ghost-theme='vibrant']) :where([data-ghost-mode='dark'])), :where(:where([data-ghost-theme='vibrant']):where([data-ghost-mode='dark']), :where([data-ghost-theme='vibrant']) :where([data-ghost-mode='dark'])) :where(*) {
|
|
964
972
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
965
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
973
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
966
974
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
967
975
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
968
976
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
969
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
977
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
970
978
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
971
979
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
972
980
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1136,6 +1144,7 @@
|
|
|
1136
1144
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1137
1145
|
--ghost-space-inset-lg: 1.25rem;
|
|
1138
1146
|
--ghost-space-inset-md: 1rem;
|
|
1147
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1139
1148
|
--ghost-space-inset-sm: 0.75rem;
|
|
1140
1149
|
--ghost-space-inset-xs: 0.5rem;
|
|
1141
1150
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1207,11 +1216,11 @@
|
|
|
1207
1216
|
|
|
1208
1217
|
:where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode])), :where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode])) :where(*) {
|
|
1209
1218
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1210
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1219
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1211
1220
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1212
1221
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1213
1222
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1214
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1223
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1215
1224
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1216
1225
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1217
1226
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1382,6 +1391,7 @@
|
|
|
1382
1391
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1383
1392
|
--ghost-space-inset-lg: 1.25rem;
|
|
1384
1393
|
--ghost-space-inset-md: 1rem;
|
|
1394
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1385
1395
|
--ghost-space-inset-sm: 0.75rem;
|
|
1386
1396
|
--ghost-space-inset-xs: 0.5rem;
|
|
1387
1397
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1453,11 +1463,11 @@
|
|
|
1453
1463
|
|
|
1454
1464
|
:where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode])), :where(:where([data-ghost-theme='vibrant']):not([data-ghost-mode])) :where(*) {
|
|
1455
1465
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1456
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1466
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1457
1467
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1458
1468
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1459
1469
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1460
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1470
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1461
1471
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1462
1472
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1463
1473
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1631,7 +1641,7 @@
|
|
|
1631
1641
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1632
1642
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1633
1643
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1634
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1644
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1635
1645
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1636
1646
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1637
1647
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1655,7 +1665,7 @@
|
|
|
1655
1665
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1656
1666
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1657
1667
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1658
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1668
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1659
1669
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1660
1670
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1661
1671
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostvue/themes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Optional design-token and theme infrastructure for GhostVue.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"vue": "^3.5.0",
|
|
52
|
-
"@ghostvue/vue": "^0.
|
|
52
|
+
"@ghostvue/vue": "^0.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"culori": "4.0.2",
|
|
56
56
|
"esbuild": "0.28.2",
|
|
57
57
|
"vue": "3.5.45",
|
|
58
|
-
"@ghostvue/vue": "0.
|
|
58
|
+
"@ghostvue/vue": "0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"typesVersions": {
|
|
61
61
|
"*": {
|