@locusgraph/tokens 0.6.0 → 0.7.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/core.css
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
@import "./variables/palette.css";
|
|
2
2
|
@import "./variables/mapping.css";
|
|
3
3
|
@import "./base/elements.css";
|
|
4
|
+
@import "./effects/motion/motion.css";
|
|
4
5
|
@import "./effects/keyframes.css";
|
|
6
|
+
@import "./effects/micro/archive.css";
|
|
5
7
|
@import "./effects/utilities.css";
|
|
6
8
|
@import "./effects/scroll-fade.css";
|
|
7
9
|
@import "./effects/enter.css";
|
|
10
|
+
@import "./effects/motion/morph.css";
|
|
8
11
|
@import "./effects/brand.css";
|
|
@@ -95,3 +95,42 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
@keyframes locus-ring {
|
|
100
|
+
0%,
|
|
101
|
+
100% {
|
|
102
|
+
rotate: 0deg;
|
|
103
|
+
}
|
|
104
|
+
15% {
|
|
105
|
+
rotate: 16deg;
|
|
106
|
+
}
|
|
107
|
+
30% {
|
|
108
|
+
rotate: -13deg;
|
|
109
|
+
}
|
|
110
|
+
45% {
|
|
111
|
+
rotate: 9deg;
|
|
112
|
+
}
|
|
113
|
+
60% {
|
|
114
|
+
rotate: -5deg;
|
|
115
|
+
}
|
|
116
|
+
75% {
|
|
117
|
+
rotate: 2deg;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@keyframes locus-pop {
|
|
122
|
+
from {
|
|
123
|
+
opacity: 0;
|
|
124
|
+
scale: 0.6;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (prefers-reduced-motion: reduce) {
|
|
129
|
+
@keyframes locus-ring {
|
|
130
|
+
}
|
|
131
|
+
@keyframes locus-pop {
|
|
132
|
+
from {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@keyframes locus-archive-lid {
|
|
2
|
+
0% {
|
|
3
|
+
rotate: 0deg;
|
|
4
|
+
translate: 0 0;
|
|
5
|
+
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
|
6
|
+
}
|
|
7
|
+
20%,
|
|
8
|
+
55% {
|
|
9
|
+
rotate: -10deg;
|
|
10
|
+
translate: 0 -20px;
|
|
11
|
+
animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
12
|
+
}
|
|
13
|
+
72%,
|
|
14
|
+
100% {
|
|
15
|
+
rotate: 0deg;
|
|
16
|
+
translate: 0 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes locus-archive-paper {
|
|
21
|
+
0%,
|
|
22
|
+
10% {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
translate: 0 -96px;
|
|
25
|
+
}
|
|
26
|
+
18% {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
translate: 0 -96px;
|
|
29
|
+
animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
|
|
30
|
+
}
|
|
31
|
+
52% {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
translate: 0 48px;
|
|
34
|
+
}
|
|
35
|
+
60%,
|
|
36
|
+
100% {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
translate: 0 48px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes locus-archive-fill {
|
|
43
|
+
0%,
|
|
44
|
+
66% {
|
|
45
|
+
fill: transparent;
|
|
46
|
+
stroke: currentColor;
|
|
47
|
+
}
|
|
48
|
+
80%,
|
|
49
|
+
100% {
|
|
50
|
+
fill: var(--locus-good-fill);
|
|
51
|
+
stroke: var(--locus-good-fill);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes locus-archive-ink {
|
|
56
|
+
0%,
|
|
57
|
+
66% {
|
|
58
|
+
stroke: currentColor;
|
|
59
|
+
}
|
|
60
|
+
80%,
|
|
61
|
+
100% {
|
|
62
|
+
stroke: var(--locus-good-fill);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes locus-archive-handle {
|
|
67
|
+
0%,
|
|
68
|
+
66% {
|
|
69
|
+
stroke: currentColor;
|
|
70
|
+
}
|
|
71
|
+
80%,
|
|
72
|
+
100% {
|
|
73
|
+
stroke: var(--locus-background);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@keyframes locus-archive-settle {
|
|
78
|
+
0%,
|
|
79
|
+
72% {
|
|
80
|
+
scale: 1;
|
|
81
|
+
}
|
|
82
|
+
82% {
|
|
83
|
+
scale: 0.9;
|
|
84
|
+
}
|
|
85
|
+
100% {
|
|
86
|
+
scale: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media (prefers-reduced-motion: reduce) {
|
|
91
|
+
@keyframes locus-archive-lid {
|
|
92
|
+
}
|
|
93
|
+
@keyframes locus-archive-paper {
|
|
94
|
+
0%,
|
|
95
|
+
100% {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@keyframes locus-archive-settle {
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@keyframes locus-morph-in {
|
|
2
|
+
from {
|
|
3
|
+
clip-path: var(--locus-morph-from, inset(0 round var(--locus-morph-radius, 0)));
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
clip-path: inset(-1.5rem round calc(var(--locus-morph-radius, 0px) + 1.5rem));
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes locus-morph-out {
|
|
11
|
+
from {
|
|
12
|
+
clip-path: inset(-1.5rem round calc(var(--locus-morph-radius, 0px) + 1.5rem));
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
to {
|
|
16
|
+
clip-path: var(--locus-morph-from, inset(0 round var(--locus-morph-radius, 0)));
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes locus-stagger {
|
|
22
|
+
from {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
translate: 0 4px;
|
|
25
|
+
filter: blur(2px);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@utility locus-morph-in {
|
|
30
|
+
animation: locus-morph-in 240ms var(--ease-locus-out) both;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@utility locus-morph-out {
|
|
34
|
+
animation: locus-morph-out 150ms var(--ease-locus-out) both;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@utility locus-stagger-children {
|
|
38
|
+
& > * {
|
|
39
|
+
animation: locus-stagger 200ms var(--ease-locus-out) both;
|
|
40
|
+
animation-delay: calc(40ms + var(--locus-stagger-step, 4) * 20ms);
|
|
41
|
+
}
|
|
42
|
+
& > :nth-child(1) {
|
|
43
|
+
--locus-stagger-step: 0;
|
|
44
|
+
}
|
|
45
|
+
& > :nth-child(2) {
|
|
46
|
+
--locus-stagger-step: 1;
|
|
47
|
+
}
|
|
48
|
+
& > :nth-child(3) {
|
|
49
|
+
--locus-stagger-step: 2;
|
|
50
|
+
}
|
|
51
|
+
& > :nth-child(4) {
|
|
52
|
+
--locus-stagger-step: 3;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (prefers-reduced-motion: reduce) {
|
|
57
|
+
@keyframes locus-morph-in {
|
|
58
|
+
from {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes locus-morph-out {
|
|
64
|
+
to {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes locus-stagger {
|
|
70
|
+
from {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--ease-locus-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
3
|
+
--ease-locus-in-out: cubic-bezier(0.77, 0, 0.175, 1);
|
|
4
|
+
--ease-locus-drawer: cubic-bezier(0.32, 0.72, 0, 1);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@layer base {
|
|
8
|
+
:where([data-slot$="-content"], [data-slot$="-overlay"], [data-slot$="-viewport"]) {
|
|
9
|
+
--tw-ease: var(--ease-locus-out);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (prefers-reduced-motion: reduce) {
|
|
14
|
+
:is([data-slot$="-content"], [data-slot$="-overlay"], [data-slot$="-viewport"]) {
|
|
15
|
+
--tw-enter-scale: 1;
|
|
16
|
+
--tw-exit-scale: 1;
|
|
17
|
+
--tw-enter-translate-x: 0;
|
|
18
|
+
--tw-enter-translate-y: 0;
|
|
19
|
+
--tw-exit-translate-x: 0;
|
|
20
|
+
--tw-exit-translate-y: 0;
|
|
21
|
+
--tw-enter-rotate: 0;
|
|
22
|
+
--tw-exit-rotate: 0;
|
|
23
|
+
--tw-enter-blur: 0;
|
|
24
|
+
--tw-exit-blur: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot]:active {
|
|
28
|
+
scale: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
@custom-variant dark (&:is(.dark *));
|
|
2
2
|
|
|
3
|
+
@custom-variant locus-label-hover {
|
|
4
|
+
@media (hover: hover) and (pointer: fine) {
|
|
5
|
+
&:is(
|
|
6
|
+
:hover,
|
|
7
|
+
:has(> label:hover) > *,
|
|
8
|
+
[data-slot="field"]:has(label:hover) > *
|
|
9
|
+
):not(:disabled, [data-disabled]) {
|
|
10
|
+
@slot;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
3
15
|
@theme inline {
|
|
4
16
|
--color-background: var(--background, var(--locus-background));
|
|
5
17
|
--color-surface: var(--locus-surface);
|
|
@@ -39,6 +51,8 @@
|
|
|
39
51
|
--color-sidebar-border: var(--sidebar-border, var(--locus-sidebar-border));
|
|
40
52
|
--color-sidebar-ring: var(--sidebar-ring, var(--locus-sidebar-ring));
|
|
41
53
|
--shadow-overlay: var(--locus-overlay-shadow);
|
|
54
|
+
--text-3xs: 0.625rem;
|
|
55
|
+
--text-3xs--line-height: 0.875rem;
|
|
42
56
|
--text-2xs: 0.6875rem;
|
|
43
57
|
--text-2xs--line-height: 1rem;
|
|
44
58
|
--text-code: 0.8125rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusgraph/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "LocusGraph design tokens: theme CSS for Tailwind v4, typography, brand effects and motion, plus the color and type values for places CSS cannot reach.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|