kaleido-ui 0.1.2 → 0.1.3
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/css/kaleido-ui.css +238 -72
- package/dist/native/index.cjs +8 -2
- package/dist/native/index.d.cts +7 -2
- package/dist/native/index.d.ts +7 -2
- package/dist/native/index.js +8 -2
- package/dist/tokens/index.cjs +85 -2
- package/dist/tokens/index.d.cts +124 -3
- package/dist/tokens/index.d.ts +124 -3
- package/dist/tokens/index.js +82 -2
- package/dist/web/index.cjs +112 -103
- package/dist/web/index.d.cts +16 -12
- package/dist/web/index.d.ts +16 -12
- package/dist/web/index.js +110 -101
- package/package.json +6 -10
- package/dist/tailwind/index.cjs +0 -225
- package/dist/tailwind/index.d.cts +0 -162
- package/dist/tailwind/index.d.ts +0 -162
- package/dist/tailwind/index.js +0 -202
- package/tailwind/index.d.ts +0 -1
- package/tailwind/index.js +0 -1
package/dist/css/kaleido-ui.css
CHANGED
|
@@ -1,84 +1,250 @@
|
|
|
1
|
+
/* AUTO-GENERATED — do not edit by hand.
|
|
2
|
+
* Source: scripts/generate-css.ts ← src/tokens/
|
|
3
|
+
* Regenerate: npm run generate:css
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ── Material Symbols ──────────────────────────────────────────────────── */
|
|
1
7
|
.material-symbols-outlined {
|
|
2
|
-
font-variation-settings:
|
|
3
|
-
'FILL' 0,
|
|
4
|
-
'wght' 400,
|
|
5
|
-
'GRAD' 0,
|
|
6
|
-
'opsz' 24;
|
|
8
|
+
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
7
9
|
}
|
|
8
|
-
|
|
9
10
|
.material-symbols-outlined.filled {
|
|
10
|
-
font-variation-settings:
|
|
11
|
-
'FILL' 1,
|
|
12
|
-
'wght' 400,
|
|
13
|
-
'GRAD' 0,
|
|
14
|
-
'opsz' 24;
|
|
11
|
+
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
15
12
|
}
|
|
16
13
|
|
|
14
|
+
/* ── Semantic colors (light mode) — from src/tokens/colors.ts ───────────── */
|
|
17
15
|
:root {
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--
|
|
26
|
-
--
|
|
27
|
-
--chart-4: #ffb900;
|
|
28
|
-
--chart-5: #fe9a00;
|
|
29
|
-
--destructive: #e7000b;
|
|
30
|
-
--destructive-foreground: #fafafa;
|
|
31
|
-
--foreground: #0a0a0a;
|
|
32
|
-
--input: #e5e5e5;
|
|
33
|
-
--muted: #f5f5f5;
|
|
34
|
-
--muted-foreground: #737373;
|
|
35
|
-
--popover: #ffffff;
|
|
36
|
-
--popover-foreground: #0a0a0a;
|
|
37
|
-
--primary: #171717;
|
|
38
|
-
--primary-foreground: #fafafa;
|
|
39
|
-
--ring: #a1a1a1;
|
|
40
|
-
--secondary: #f5f5f5;
|
|
16
|
+
--background: #ffffff;
|
|
17
|
+
--foreground: #0a0a0a;
|
|
18
|
+
--card: #ffffff;
|
|
19
|
+
--card-foreground: #0a0a0a;
|
|
20
|
+
--popover: #ffffff;
|
|
21
|
+
--popover-foreground: #0a0a0a;
|
|
22
|
+
--primary: #171717;
|
|
23
|
+
--primary-foreground: #fafafa;
|
|
24
|
+
--secondary: #f5f5f5;
|
|
41
25
|
--secondary-foreground: #171717;
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
26
|
+
--muted: #f5f5f5;
|
|
27
|
+
--muted-foreground: #737373;
|
|
28
|
+
--accent: #f5f5f5;
|
|
29
|
+
--accent-foreground: #171717;
|
|
30
|
+
--destructive: #e7000b;
|
|
31
|
+
--border: #e5e5e5;
|
|
32
|
+
--input: #e5e5e5;
|
|
33
|
+
--ring: #a1a1a1;
|
|
34
|
+
--chart-1: #2BEE79;
|
|
35
|
+
--chart-2: #F6C343;
|
|
36
|
+
--chart-3: #F7931A;
|
|
37
|
+
--chart-4: #7C3AED;
|
|
38
|
+
--chart-5: #DD352E;
|
|
55
39
|
}
|
|
56
40
|
|
|
41
|
+
/* ── Semantic colors (dark mode) — from src/tokens/colors.ts ───────────── */
|
|
57
42
|
.dark {
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--chart-4: #7C3AED;
|
|
68
|
-
--chart-5: #DD352E;
|
|
69
|
-
--destructive: hsl(0 62% 50%);
|
|
70
|
-
--destructive-foreground: #ffffff;
|
|
71
|
-
--foreground: #ffffff;
|
|
72
|
-
--input: rgba(255, 255, 255, 0.15);
|
|
73
|
-
--muted: hsl(156 32% 12%);
|
|
74
|
-
--muted-foreground: rgba(255, 255, 255, 0.55);
|
|
75
|
-
--popover: hsl(154 26% 17%);
|
|
76
|
-
--popover-foreground: #ffffff;
|
|
77
|
-
--primary: #2BEE79;
|
|
78
|
-
--primary-foreground: #051B10;
|
|
79
|
-
--ring: #2BEE79;
|
|
80
|
-
--secondary: hsl(154 26% 17%);
|
|
43
|
+
--background: hsl(158 58% 7%);
|
|
44
|
+
--foreground: #ffffff;
|
|
45
|
+
--card: hsl(156 32% 12%);
|
|
46
|
+
--card-foreground: #ffffff;
|
|
47
|
+
--popover: hsl(154 26% 17%);
|
|
48
|
+
--popover-foreground: #ffffff;
|
|
49
|
+
--primary: #2BEE79;
|
|
50
|
+
--primary-foreground: #051B10;
|
|
51
|
+
--secondary: hsl(154 26% 17%);
|
|
81
52
|
--secondary-foreground: #ffffff;
|
|
82
|
-
--
|
|
83
|
-
--
|
|
53
|
+
--muted: hsl(156 32% 12%);
|
|
54
|
+
--muted-foreground: rgba(255, 255, 255, 0.55);
|
|
55
|
+
--accent: hsl(154 26% 17%);
|
|
56
|
+
--accent-foreground: #ffffff;
|
|
57
|
+
--destructive: hsl(0 62% 50%);
|
|
58
|
+
--border: hsl(150 20% 24%);
|
|
59
|
+
--input: rgba(255, 255, 255, 0.15);
|
|
60
|
+
--ring: #2BEE79;
|
|
61
|
+
--chart-1: #2BEE79;
|
|
62
|
+
--chart-2: #F6C343;
|
|
63
|
+
--chart-3: #F7931A;
|
|
64
|
+
--chart-4: #7C3AED;
|
|
65
|
+
--chart-5: #DD352E;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ─────────────────────────────────────────────────────────────────────────
|
|
69
|
+
Tailwind v4 @theme
|
|
70
|
+
@theme inline — semantic colors: utilities reference CSS vars so dark mode works at runtime.
|
|
71
|
+
@theme — static tokens: Tailwind owns the variable + generates the utility.
|
|
72
|
+
───────────────────────────────────────────────────────────────────────── */
|
|
73
|
+
|
|
74
|
+
@theme inline {
|
|
75
|
+
/* Semantic colors */
|
|
76
|
+
--color-background: var(--background);
|
|
77
|
+
--color-foreground: var(--foreground);
|
|
78
|
+
--color-card: var(--card);
|
|
79
|
+
--color-card-foreground: var(--card-foreground);
|
|
80
|
+
--color-popover: var(--popover);
|
|
81
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
82
|
+
--color-primary: var(--primary);
|
|
83
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
84
|
+
--color-secondary: var(--secondary);
|
|
85
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
86
|
+
--color-muted: var(--muted);
|
|
87
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
88
|
+
--color-accent: var(--accent);
|
|
89
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
90
|
+
--color-destructive: var(--destructive);
|
|
91
|
+
--color-border: var(--border);
|
|
92
|
+
--color-input: var(--input);
|
|
93
|
+
--color-ring: var(--ring);
|
|
94
|
+
--color-chart-1: var(--chart-1);
|
|
95
|
+
--color-chart-2: var(--chart-2);
|
|
96
|
+
--color-chart-3: var(--chart-3);
|
|
97
|
+
--color-chart-4: var(--chart-4);
|
|
98
|
+
--color-chart-5: var(--chart-5);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@theme {
|
|
102
|
+
/* Network colors */
|
|
103
|
+
--color-network-bitcoin: #F7931A;
|
|
104
|
+
--color-network-rgb: #DD352E;
|
|
105
|
+
--color-network-arkade: #7C3AED;
|
|
106
|
+
--color-network-spark: #FF6D00;
|
|
107
|
+
--color-network-lightning: #F6C343;
|
|
108
|
+
|
|
109
|
+
/* Transaction colors */
|
|
110
|
+
--color-tx-sent: #F94040;
|
|
111
|
+
--color-tx-receive: #2BEE79;
|
|
112
|
+
--color-tx-swap: #4290FF;
|
|
113
|
+
|
|
114
|
+
/* Typography */
|
|
115
|
+
--font-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
|
|
116
|
+
--font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
|
|
117
|
+
--font-mono: 'Geist Mono', monospace;
|
|
118
|
+
--text-xxs: 10px;
|
|
119
|
+
--text-xxs--line-height: 14px;
|
|
120
|
+
--text-tiny: 11px;
|
|
121
|
+
--text-tiny--line-height: 16px;
|
|
122
|
+
--text-caption: 13px;
|
|
123
|
+
--text-caption--line-height: 18px;
|
|
124
|
+
--text-body: 15px;
|
|
125
|
+
--text-body--line-height: 22px;
|
|
126
|
+
--text-subhead: 17px;
|
|
127
|
+
--text-subhead--line-height: 24px;
|
|
128
|
+
--text-title: 20px;
|
|
129
|
+
--text-title--line-height: 28px;
|
|
130
|
+
--text-headline: 28px;
|
|
131
|
+
--text-headline--line-height: 34px;
|
|
132
|
+
--text-display: 36px;
|
|
133
|
+
--text-display--line-height: 40px;
|
|
134
|
+
|
|
135
|
+
/* Border radius */
|
|
136
|
+
--radius-none: 0px;
|
|
137
|
+
--radius-xs: 2px;
|
|
138
|
+
--radius-sm: 4px;
|
|
139
|
+
--radius-md: 6px;
|
|
140
|
+
--radius-lg: 8px;
|
|
141
|
+
--radius-xl: 12px;
|
|
142
|
+
--radius-2xl: 16px;
|
|
143
|
+
--radius-3xl: 24px;
|
|
144
|
+
--radius-4xl: 32px;
|
|
145
|
+
--radius-full: 9999px;
|
|
146
|
+
--radius-card: 16px;
|
|
147
|
+
--radius-panel: 24px;
|
|
148
|
+
--radius-nav: 32px;
|
|
149
|
+
--radius-pill: 9999px;
|
|
150
|
+
|
|
151
|
+
/* Shadows */
|
|
152
|
+
--shadow-glow: 0 0 20px rgba(10, 10, 10, 0.15);
|
|
153
|
+
--shadow-glow-strong: 0 0 30px rgba(10, 10, 10, 0.25);
|
|
154
|
+
--shadow-glow-subtle: 0 0 15px rgba(10, 10, 10, 0.12);
|
|
155
|
+
--shadow-glow-accent: 0 4px 30px rgba(10, 10, 10, 0.18);
|
|
156
|
+
|
|
157
|
+
/* Transitions */
|
|
158
|
+
--transition-fast: 150ms ease-out;
|
|
159
|
+
--transition-default: 200ms ease-out;
|
|
160
|
+
--transition-slow: 300ms ease-out;
|
|
161
|
+
|
|
162
|
+
/* Animations */
|
|
163
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
164
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
165
|
+
--animate-fade-in: fade-in 0.3s ease-out;
|
|
166
|
+
--animate-slide-up: slide-up 0.3s ease-out;
|
|
167
|
+
--animate-slide-in-from-bottom: slide-in-from-bottom 0.4s ease-out;
|
|
168
|
+
--animate-stagger-up: stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
|
|
169
|
+
--animate-shimmer: shimmer 2s linear infinite;
|
|
170
|
+
--animate-bounce-slight: bounce-slight 2s infinite;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* ── Keyframes — from src/tokens/animations.ts ──────────────────────────── */
|
|
174
|
+
@keyframes accordion-down {
|
|
175
|
+
from {
|
|
176
|
+
height: 0;
|
|
177
|
+
}
|
|
178
|
+
to {
|
|
179
|
+
height: var(--radix-accordion-content-height);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@keyframes accordion-up {
|
|
184
|
+
from {
|
|
185
|
+
height: var(--radix-accordion-content-height);
|
|
186
|
+
}
|
|
187
|
+
to {
|
|
188
|
+
height: 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@keyframes fade-in {
|
|
193
|
+
from {
|
|
194
|
+
opacity: 0;
|
|
195
|
+
}
|
|
196
|
+
to {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@keyframes slide-up {
|
|
202
|
+
from {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
transform: translateY(10px);
|
|
205
|
+
}
|
|
206
|
+
to {
|
|
207
|
+
opacity: 1;
|
|
208
|
+
transform: translateY(0);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@keyframes slide-in-from-bottom {
|
|
213
|
+
from {
|
|
214
|
+
opacity: 0;
|
|
215
|
+
transform: translateY(20px);
|
|
216
|
+
}
|
|
217
|
+
to {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: translateY(0);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@keyframes shimmer {
|
|
224
|
+
0% {
|
|
225
|
+
background-position: -200% 0;
|
|
226
|
+
}
|
|
227
|
+
100% {
|
|
228
|
+
background-position: 200% 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@keyframes stagger-up {
|
|
233
|
+
0% {
|
|
234
|
+
opacity: 0;
|
|
235
|
+
transform: translateY(15px);
|
|
236
|
+
}
|
|
237
|
+
100% {
|
|
238
|
+
opacity: 1;
|
|
239
|
+
transform: translateY(0);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@keyframes bounce-slight {
|
|
244
|
+
0%, 100% {
|
|
245
|
+
transform: translateY(-5%);
|
|
246
|
+
}
|
|
247
|
+
50% {
|
|
248
|
+
transform: translateY(0);
|
|
249
|
+
}
|
|
84
250
|
}
|
package/dist/native/index.cjs
CHANGED
|
@@ -280,15 +280,21 @@ var fontWeight = {
|
|
|
280
280
|
|
|
281
281
|
// src/tokens/radius.ts
|
|
282
282
|
var radius = {
|
|
283
|
+
none: "0px",
|
|
284
|
+
xs: "2px",
|
|
283
285
|
sm: "4px",
|
|
284
286
|
md: "6px",
|
|
285
287
|
lg: "8px",
|
|
286
288
|
xl: "12px",
|
|
289
|
+
"2xl": "16px",
|
|
290
|
+
"3xl": "24px",
|
|
291
|
+
"4xl": "32px",
|
|
292
|
+
full: "9999px",
|
|
293
|
+
// Semantic aliases
|
|
287
294
|
card: "16px",
|
|
288
295
|
panel: "24px",
|
|
289
|
-
pill: "9999px",
|
|
290
296
|
nav: "32px",
|
|
291
|
-
|
|
297
|
+
pill: "9999px"
|
|
292
298
|
};
|
|
293
299
|
|
|
294
300
|
// src/tokens/shadows.ts
|
package/dist/native/index.d.cts
CHANGED
|
@@ -184,15 +184,20 @@ declare const fontWeight: {
|
|
|
184
184
|
* KaleidoSwap Border Radius Tokens
|
|
185
185
|
*/
|
|
186
186
|
declare const radius: {
|
|
187
|
+
readonly none: "0px";
|
|
188
|
+
readonly xs: "2px";
|
|
187
189
|
readonly sm: "4px";
|
|
188
190
|
readonly md: "6px";
|
|
189
191
|
readonly lg: "8px";
|
|
190
192
|
readonly xl: "12px";
|
|
193
|
+
readonly '2xl': "16px";
|
|
194
|
+
readonly '3xl': "24px";
|
|
195
|
+
readonly '4xl': "32px";
|
|
196
|
+
readonly full: "9999px";
|
|
191
197
|
readonly card: "16px";
|
|
192
198
|
readonly panel: "24px";
|
|
193
|
-
readonly pill: "9999px";
|
|
194
199
|
readonly nav: "32px";
|
|
195
|
-
readonly
|
|
200
|
+
readonly pill: "9999px";
|
|
196
201
|
};
|
|
197
202
|
|
|
198
203
|
/**
|
package/dist/native/index.d.ts
CHANGED
|
@@ -184,15 +184,20 @@ declare const fontWeight: {
|
|
|
184
184
|
* KaleidoSwap Border Radius Tokens
|
|
185
185
|
*/
|
|
186
186
|
declare const radius: {
|
|
187
|
+
readonly none: "0px";
|
|
188
|
+
readonly xs: "2px";
|
|
187
189
|
readonly sm: "4px";
|
|
188
190
|
readonly md: "6px";
|
|
189
191
|
readonly lg: "8px";
|
|
190
192
|
readonly xl: "12px";
|
|
193
|
+
readonly '2xl': "16px";
|
|
194
|
+
readonly '3xl': "24px";
|
|
195
|
+
readonly '4xl': "32px";
|
|
196
|
+
readonly full: "9999px";
|
|
191
197
|
readonly card: "16px";
|
|
192
198
|
readonly panel: "24px";
|
|
193
|
-
readonly pill: "9999px";
|
|
194
199
|
readonly nav: "32px";
|
|
195
|
-
readonly
|
|
200
|
+
readonly pill: "9999px";
|
|
196
201
|
};
|
|
197
202
|
|
|
198
203
|
/**
|
package/dist/native/index.js
CHANGED
|
@@ -242,15 +242,21 @@ var fontWeight = {
|
|
|
242
242
|
|
|
243
243
|
// src/tokens/radius.ts
|
|
244
244
|
var radius = {
|
|
245
|
+
none: "0px",
|
|
246
|
+
xs: "2px",
|
|
245
247
|
sm: "4px",
|
|
246
248
|
md: "6px",
|
|
247
249
|
lg: "8px",
|
|
248
250
|
xl: "12px",
|
|
251
|
+
"2xl": "16px",
|
|
252
|
+
"3xl": "24px",
|
|
253
|
+
"4xl": "32px",
|
|
254
|
+
full: "9999px",
|
|
255
|
+
// Semantic aliases
|
|
249
256
|
card: "16px",
|
|
250
257
|
panel: "24px",
|
|
251
|
-
pill: "9999px",
|
|
252
258
|
nav: "32px",
|
|
253
|
-
|
|
259
|
+
pill: "9999px"
|
|
254
260
|
};
|
|
255
261
|
|
|
256
262
|
// src/tokens/shadows.ts
|
package/dist/tokens/index.cjs
CHANGED
|
@@ -20,9 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/tokens/index.ts
|
|
21
21
|
var tokens_exports = {};
|
|
22
22
|
__export(tokens_exports, {
|
|
23
|
+
animation: () => animation,
|
|
23
24
|
colors: () => colors,
|
|
24
25
|
fontFamily: () => fontFamily,
|
|
25
26
|
fontWeight: () => fontWeight,
|
|
27
|
+
keyframes: () => keyframes,
|
|
28
|
+
lightSemanticColors: () => lightSemanticColors,
|
|
26
29
|
radius: () => radius,
|
|
27
30
|
shadow: () => shadow,
|
|
28
31
|
transition: () => transition,
|
|
@@ -31,6 +34,31 @@ __export(tokens_exports, {
|
|
|
31
34
|
module.exports = __toCommonJS(tokens_exports);
|
|
32
35
|
|
|
33
36
|
// src/tokens/colors.ts
|
|
37
|
+
var lightSemanticColors = {
|
|
38
|
+
background: "#ffffff",
|
|
39
|
+
foreground: "#0a0a0a",
|
|
40
|
+
card: "#ffffff",
|
|
41
|
+
cardFg: "#0a0a0a",
|
|
42
|
+
popover: "#ffffff",
|
|
43
|
+
popoverFg: "#0a0a0a",
|
|
44
|
+
primary: "#171717",
|
|
45
|
+
primaryFg: "#fafafa",
|
|
46
|
+
secondary: "#f5f5f5",
|
|
47
|
+
secondaryFg: "#171717",
|
|
48
|
+
muted: "#f5f5f5",
|
|
49
|
+
mutedFg: "#737373",
|
|
50
|
+
accent: "#f5f5f5",
|
|
51
|
+
accentFg: "#171717",
|
|
52
|
+
destructive: "#e7000b",
|
|
53
|
+
border: "#e5e5e5",
|
|
54
|
+
input: "#e5e5e5",
|
|
55
|
+
ring: "#a1a1a1",
|
|
56
|
+
chart1: "#2BEE79",
|
|
57
|
+
chart2: "#F6C343",
|
|
58
|
+
chart3: "#F7931A",
|
|
59
|
+
chart4: "#7C3AED",
|
|
60
|
+
chart5: "#DD352E"
|
|
61
|
+
};
|
|
34
62
|
var darkSemanticColors = {
|
|
35
63
|
background: "hsl(158 58% 7%)",
|
|
36
64
|
foreground: "#ffffff",
|
|
@@ -109,15 +137,21 @@ var fontWeight = {
|
|
|
109
137
|
|
|
110
138
|
// src/tokens/radius.ts
|
|
111
139
|
var radius = {
|
|
140
|
+
none: "0px",
|
|
141
|
+
xs: "2px",
|
|
112
142
|
sm: "4px",
|
|
113
143
|
md: "6px",
|
|
114
144
|
lg: "8px",
|
|
115
145
|
xl: "12px",
|
|
146
|
+
"2xl": "16px",
|
|
147
|
+
"3xl": "24px",
|
|
148
|
+
"4xl": "32px",
|
|
149
|
+
full: "9999px",
|
|
150
|
+
// Semantic aliases
|
|
116
151
|
card: "16px",
|
|
117
152
|
panel: "24px",
|
|
118
|
-
pill: "9999px",
|
|
119
153
|
nav: "32px",
|
|
120
|
-
|
|
154
|
+
pill: "9999px"
|
|
121
155
|
};
|
|
122
156
|
|
|
123
157
|
// src/tokens/shadows.ts
|
|
@@ -134,11 +168,60 @@ var transition = {
|
|
|
134
168
|
default: "200ms ease-out",
|
|
135
169
|
slow: "300ms ease-out"
|
|
136
170
|
};
|
|
171
|
+
|
|
172
|
+
// src/tokens/animations.ts
|
|
173
|
+
var keyframes = {
|
|
174
|
+
"accordion-down": {
|
|
175
|
+
from: { height: "0" },
|
|
176
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
177
|
+
},
|
|
178
|
+
"accordion-up": {
|
|
179
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
180
|
+
to: { height: "0" }
|
|
181
|
+
},
|
|
182
|
+
"fade-in": {
|
|
183
|
+
from: { opacity: "0" },
|
|
184
|
+
to: { opacity: "1" }
|
|
185
|
+
},
|
|
186
|
+
"slide-up": {
|
|
187
|
+
from: { opacity: "0", transform: "translateY(10px)" },
|
|
188
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
189
|
+
},
|
|
190
|
+
"slide-in-from-bottom": {
|
|
191
|
+
from: { opacity: "0", transform: "translateY(20px)" },
|
|
192
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
193
|
+
},
|
|
194
|
+
shimmer: {
|
|
195
|
+
"0%": { backgroundPosition: "-200% 0" },
|
|
196
|
+
"100%": { backgroundPosition: "200% 0" }
|
|
197
|
+
},
|
|
198
|
+
"stagger-up": {
|
|
199
|
+
"0%": { opacity: "0", transform: "translateY(15px)" },
|
|
200
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
201
|
+
},
|
|
202
|
+
"bounce-slight": {
|
|
203
|
+
"0%, 100%": { transform: "translateY(-5%)" },
|
|
204
|
+
"50%": { transform: "translateY(0)" }
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
var animation = {
|
|
208
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
209
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
210
|
+
"fade-in": "fade-in 0.3s ease-out",
|
|
211
|
+
"slide-up": "slide-up 0.3s ease-out",
|
|
212
|
+
"slide-in-from-bottom": "slide-in-from-bottom 0.4s ease-out",
|
|
213
|
+
"stagger-up": "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards",
|
|
214
|
+
shimmer: "shimmer 2s linear infinite",
|
|
215
|
+
"bounce-slight": "bounce-slight 2s infinite"
|
|
216
|
+
};
|
|
137
217
|
// Annotate the CommonJS export names for ESM import in node:
|
|
138
218
|
0 && (module.exports = {
|
|
219
|
+
animation,
|
|
139
220
|
colors,
|
|
140
221
|
fontFamily,
|
|
141
222
|
fontWeight,
|
|
223
|
+
keyframes,
|
|
224
|
+
lightSemanticColors,
|
|
142
225
|
radius,
|
|
143
226
|
shadow,
|
|
144
227
|
transition,
|
package/dist/tokens/index.d.cts
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KaleidoSwap Color Tokens
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for all color constants across web and native.
|
|
5
|
+
*/
|
|
6
|
+
declare const lightSemanticColors: {
|
|
7
|
+
readonly background: "#ffffff";
|
|
8
|
+
readonly foreground: "#0a0a0a";
|
|
9
|
+
readonly card: "#ffffff";
|
|
10
|
+
readonly cardFg: "#0a0a0a";
|
|
11
|
+
readonly popover: "#ffffff";
|
|
12
|
+
readonly popoverFg: "#0a0a0a";
|
|
13
|
+
readonly primary: "#171717";
|
|
14
|
+
readonly primaryFg: "#fafafa";
|
|
15
|
+
readonly secondary: "#f5f5f5";
|
|
16
|
+
readonly secondaryFg: "#171717";
|
|
17
|
+
readonly muted: "#f5f5f5";
|
|
18
|
+
readonly mutedFg: "#737373";
|
|
19
|
+
readonly accent: "#f5f5f5";
|
|
20
|
+
readonly accentFg: "#171717";
|
|
21
|
+
readonly destructive: "#e7000b";
|
|
22
|
+
readonly border: "#e5e5e5";
|
|
23
|
+
readonly input: "#e5e5e5";
|
|
24
|
+
readonly ring: "#a1a1a1";
|
|
25
|
+
readonly chart1: "#2BEE79";
|
|
26
|
+
readonly chart2: "#F6C343";
|
|
27
|
+
readonly chart3: "#F7931A";
|
|
28
|
+
readonly chart4: "#7C3AED";
|
|
29
|
+
readonly chart5: "#DD352E";
|
|
30
|
+
};
|
|
1
31
|
declare const colors: {
|
|
2
32
|
readonly textPrimary: "#ffffff";
|
|
3
33
|
readonly textSecondary: "rgba(255, 255, 255, 0.55)";
|
|
@@ -80,15 +110,20 @@ declare const fontWeight: {
|
|
|
80
110
|
* KaleidoSwap Border Radius Tokens
|
|
81
111
|
*/
|
|
82
112
|
declare const radius: {
|
|
113
|
+
readonly none: "0px";
|
|
114
|
+
readonly xs: "2px";
|
|
83
115
|
readonly sm: "4px";
|
|
84
116
|
readonly md: "6px";
|
|
85
117
|
readonly lg: "8px";
|
|
86
118
|
readonly xl: "12px";
|
|
119
|
+
readonly '2xl': "16px";
|
|
120
|
+
readonly '3xl': "24px";
|
|
121
|
+
readonly '4xl': "32px";
|
|
122
|
+
readonly full: "9999px";
|
|
87
123
|
readonly card: "16px";
|
|
88
124
|
readonly panel: "24px";
|
|
89
|
-
readonly pill: "9999px";
|
|
90
125
|
readonly nav: "32px";
|
|
91
|
-
readonly
|
|
126
|
+
readonly pill: "9999px";
|
|
92
127
|
};
|
|
93
128
|
|
|
94
129
|
/**
|
|
@@ -110,4 +145,90 @@ declare const transition: {
|
|
|
110
145
|
readonly slow: "300ms ease-out";
|
|
111
146
|
};
|
|
112
147
|
|
|
113
|
-
|
|
148
|
+
/**
|
|
149
|
+
* KaleidoSwap Animation Tokens
|
|
150
|
+
*/
|
|
151
|
+
declare const keyframes: {
|
|
152
|
+
readonly 'accordion-down': {
|
|
153
|
+
readonly from: {
|
|
154
|
+
readonly height: "0";
|
|
155
|
+
};
|
|
156
|
+
readonly to: {
|
|
157
|
+
readonly height: "var(--radix-accordion-content-height)";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly 'accordion-up': {
|
|
161
|
+
readonly from: {
|
|
162
|
+
readonly height: "var(--radix-accordion-content-height)";
|
|
163
|
+
};
|
|
164
|
+
readonly to: {
|
|
165
|
+
readonly height: "0";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
readonly 'fade-in': {
|
|
169
|
+
readonly from: {
|
|
170
|
+
readonly opacity: "0";
|
|
171
|
+
};
|
|
172
|
+
readonly to: {
|
|
173
|
+
readonly opacity: "1";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly 'slide-up': {
|
|
177
|
+
readonly from: {
|
|
178
|
+
readonly opacity: "0";
|
|
179
|
+
readonly transform: "translateY(10px)";
|
|
180
|
+
};
|
|
181
|
+
readonly to: {
|
|
182
|
+
readonly opacity: "1";
|
|
183
|
+
readonly transform: "translateY(0)";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly 'slide-in-from-bottom': {
|
|
187
|
+
readonly from: {
|
|
188
|
+
readonly opacity: "0";
|
|
189
|
+
readonly transform: "translateY(20px)";
|
|
190
|
+
};
|
|
191
|
+
readonly to: {
|
|
192
|
+
readonly opacity: "1";
|
|
193
|
+
readonly transform: "translateY(0)";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly shimmer: {
|
|
197
|
+
readonly '0%': {
|
|
198
|
+
readonly backgroundPosition: "-200% 0";
|
|
199
|
+
};
|
|
200
|
+
readonly '100%': {
|
|
201
|
+
readonly backgroundPosition: "200% 0";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly 'stagger-up': {
|
|
205
|
+
readonly '0%': {
|
|
206
|
+
readonly opacity: "0";
|
|
207
|
+
readonly transform: "translateY(15px)";
|
|
208
|
+
};
|
|
209
|
+
readonly '100%': {
|
|
210
|
+
readonly opacity: "1";
|
|
211
|
+
readonly transform: "translateY(0)";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly 'bounce-slight': {
|
|
215
|
+
readonly '0%, 100%': {
|
|
216
|
+
readonly transform: "translateY(-5%)";
|
|
217
|
+
};
|
|
218
|
+
readonly '50%': {
|
|
219
|
+
readonly transform: "translateY(0)";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
declare const animation: {
|
|
224
|
+
readonly 'accordion-down': "accordion-down 0.2s ease-out";
|
|
225
|
+
readonly 'accordion-up': "accordion-up 0.2s ease-out";
|
|
226
|
+
readonly 'fade-in': "fade-in 0.3s ease-out";
|
|
227
|
+
readonly 'slide-up': "slide-up 0.3s ease-out";
|
|
228
|
+
readonly 'slide-in-from-bottom': "slide-in-from-bottom 0.4s ease-out";
|
|
229
|
+
readonly 'stagger-up': "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards";
|
|
230
|
+
readonly shimmer: "shimmer 2s linear infinite";
|
|
231
|
+
readonly 'bounce-slight': "bounce-slight 2s infinite";
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export { animation, colors, fontFamily, fontWeight, keyframes, lightSemanticColors, radius, shadow, transition, typeScale };
|