kaleido-ui 0.1.1 → 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 +239 -73
- package/dist/native/index.cjs +33 -27
- package/dist/native/index.d.cts +57 -52
- package/dist/native/index.d.ts +57 -52
- package/dist/native/index.js +33 -27
- package/dist/tokens/index.cjs +110 -27
- package/dist/tokens/index.d.cts +157 -36
- package/dist/tokens/index.d.ts +157 -36
- package/dist/tokens/index.js +107 -27
- 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/tokens/index.d.ts
CHANGED
|
@@ -1,13 +1,43 @@
|
|
|
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
|
-
readonly textPrimary: "#
|
|
3
|
-
readonly textSecondary: "
|
|
4
|
-
readonly textMuted: "
|
|
5
|
-
readonly textDimmed: "#
|
|
32
|
+
readonly textPrimary: "#ffffff";
|
|
33
|
+
readonly textSecondary: "rgba(255, 255, 255, 0.55)";
|
|
34
|
+
readonly textMuted: "hsl(150 20% 24%)";
|
|
35
|
+
readonly textDimmed: "#2BEE79";
|
|
6
36
|
/** Semantic */
|
|
7
|
-
readonly success: "#
|
|
8
|
-
readonly warning: "#
|
|
9
|
-
readonly error: "
|
|
10
|
-
readonly info: "#
|
|
37
|
+
readonly success: "#2BEE79";
|
|
38
|
+
readonly warning: "#F7931A";
|
|
39
|
+
readonly error: "hsl(0 62% 50%)";
|
|
40
|
+
readonly info: "#2BEE79";
|
|
11
41
|
/** Network / Layer */
|
|
12
42
|
readonly network: {
|
|
13
43
|
readonly bitcoin: "#F7931A";
|
|
@@ -22,31 +52,31 @@ declare const colors: {
|
|
|
22
52
|
readonly receive: "#2BEE79";
|
|
23
53
|
readonly swap: "#4290FF";
|
|
24
54
|
};
|
|
25
|
-
readonly background: "
|
|
26
|
-
readonly foreground: "#
|
|
27
|
-
readonly border: "
|
|
28
|
-
readonly input: "
|
|
29
|
-
readonly destructive: "
|
|
30
|
-
readonly secondary: "
|
|
31
|
-
readonly secondaryFg: "#
|
|
32
|
-
readonly muted: "
|
|
33
|
-
readonly mutedFg: "
|
|
34
|
-
readonly primary: "#
|
|
35
|
-
readonly primaryFg: "#
|
|
36
|
-
readonly accent: "
|
|
37
|
-
readonly accentFg: "#
|
|
38
|
-
readonly ring: "#
|
|
39
|
-
readonly card: "
|
|
40
|
-
readonly cardFg: "#
|
|
41
|
-
readonly popover: "
|
|
42
|
-
readonly popoverFg: "#
|
|
43
|
-
readonly chart1: "#
|
|
44
|
-
readonly chart2: "#
|
|
45
|
-
readonly chart3: "#
|
|
46
|
-
readonly chart4: "#
|
|
47
|
-
readonly chart5: "#
|
|
48
|
-
readonly semanticBackground: "
|
|
49
|
-
readonly semanticBorder: "
|
|
55
|
+
readonly background: "hsl(158 58% 7%)";
|
|
56
|
+
readonly foreground: "#ffffff";
|
|
57
|
+
readonly border: "hsl(150 20% 24%)";
|
|
58
|
+
readonly input: "rgba(255, 255, 255, 0.15)";
|
|
59
|
+
readonly destructive: "hsl(0 62% 50%)";
|
|
60
|
+
readonly secondary: "hsl(154 26% 17%)";
|
|
61
|
+
readonly secondaryFg: "#ffffff";
|
|
62
|
+
readonly muted: "hsl(156 32% 12%)";
|
|
63
|
+
readonly mutedFg: "rgba(255, 255, 255, 0.55)";
|
|
64
|
+
readonly primary: "#2BEE79";
|
|
65
|
+
readonly primaryFg: "#051B10";
|
|
66
|
+
readonly accent: "hsl(154 26% 17%)";
|
|
67
|
+
readonly accentFg: "#ffffff";
|
|
68
|
+
readonly ring: "#2BEE79";
|
|
69
|
+
readonly card: "hsl(156 32% 12%)";
|
|
70
|
+
readonly cardFg: "#ffffff";
|
|
71
|
+
readonly popover: "hsl(154 26% 17%)";
|
|
72
|
+
readonly popoverFg: "#ffffff";
|
|
73
|
+
readonly chart1: "#2BEE79";
|
|
74
|
+
readonly chart2: "#F6C343";
|
|
75
|
+
readonly chart3: "#F7931A";
|
|
76
|
+
readonly chart4: "#7C3AED";
|
|
77
|
+
readonly chart5: "#DD352E";
|
|
78
|
+
readonly semanticBackground: "hsl(156 32% 12%)";
|
|
79
|
+
readonly semanticBorder: "hsl(150 20% 24%)";
|
|
50
80
|
};
|
|
51
81
|
|
|
52
82
|
/**
|
|
@@ -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 };
|
package/dist/tokens/index.js
CHANGED
|
@@ -1,30 +1,55 @@
|
|
|
1
1
|
// src/tokens/colors.ts
|
|
2
|
+
var lightSemanticColors = {
|
|
3
|
+
background: "#ffffff",
|
|
4
|
+
foreground: "#0a0a0a",
|
|
5
|
+
card: "#ffffff",
|
|
6
|
+
cardFg: "#0a0a0a",
|
|
7
|
+
popover: "#ffffff",
|
|
8
|
+
popoverFg: "#0a0a0a",
|
|
9
|
+
primary: "#171717",
|
|
10
|
+
primaryFg: "#fafafa",
|
|
11
|
+
secondary: "#f5f5f5",
|
|
12
|
+
secondaryFg: "#171717",
|
|
13
|
+
muted: "#f5f5f5",
|
|
14
|
+
mutedFg: "#737373",
|
|
15
|
+
accent: "#f5f5f5",
|
|
16
|
+
accentFg: "#171717",
|
|
17
|
+
destructive: "#e7000b",
|
|
18
|
+
border: "#e5e5e5",
|
|
19
|
+
input: "#e5e5e5",
|
|
20
|
+
ring: "#a1a1a1",
|
|
21
|
+
chart1: "#2BEE79",
|
|
22
|
+
chart2: "#F6C343",
|
|
23
|
+
chart3: "#F7931A",
|
|
24
|
+
chart4: "#7C3AED",
|
|
25
|
+
chart5: "#DD352E"
|
|
26
|
+
};
|
|
2
27
|
var darkSemanticColors = {
|
|
3
|
-
background: "
|
|
4
|
-
foreground: "#
|
|
5
|
-
border: "
|
|
6
|
-
input: "
|
|
7
|
-
destructive: "
|
|
8
|
-
secondary: "
|
|
9
|
-
secondaryFg: "#
|
|
10
|
-
muted: "
|
|
11
|
-
mutedFg: "
|
|
12
|
-
primary: "#
|
|
13
|
-
primaryFg: "#
|
|
14
|
-
accent: "
|
|
15
|
-
accentFg: "#
|
|
16
|
-
ring: "#
|
|
17
|
-
card: "
|
|
18
|
-
cardFg: "#
|
|
19
|
-
popover: "
|
|
20
|
-
popoverFg: "#
|
|
21
|
-
chart1: "#
|
|
22
|
-
chart2: "#
|
|
23
|
-
chart3: "#
|
|
24
|
-
chart4: "#
|
|
25
|
-
chart5: "#
|
|
26
|
-
semanticBackground: "
|
|
27
|
-
semanticBorder: "
|
|
28
|
+
background: "hsl(158 58% 7%)",
|
|
29
|
+
foreground: "#ffffff",
|
|
30
|
+
border: "hsl(150 20% 24%)",
|
|
31
|
+
input: "rgba(255, 255, 255, 0.15)",
|
|
32
|
+
destructive: "hsl(0 62% 50%)",
|
|
33
|
+
secondary: "hsl(154 26% 17%)",
|
|
34
|
+
secondaryFg: "#ffffff",
|
|
35
|
+
muted: "hsl(156 32% 12%)",
|
|
36
|
+
mutedFg: "rgba(255, 255, 255, 0.55)",
|
|
37
|
+
primary: "#2BEE79",
|
|
38
|
+
primaryFg: "#051B10",
|
|
39
|
+
accent: "hsl(154 26% 17%)",
|
|
40
|
+
accentFg: "#ffffff",
|
|
41
|
+
ring: "#2BEE79",
|
|
42
|
+
card: "hsl(156 32% 12%)",
|
|
43
|
+
cardFg: "#ffffff",
|
|
44
|
+
popover: "hsl(154 26% 17%)",
|
|
45
|
+
popoverFg: "#ffffff",
|
|
46
|
+
chart1: "#2BEE79",
|
|
47
|
+
chart2: "#F6C343",
|
|
48
|
+
chart3: "#F7931A",
|
|
49
|
+
chart4: "#7C3AED",
|
|
50
|
+
chart5: "#DD352E",
|
|
51
|
+
semanticBackground: "hsl(156 32% 12%)",
|
|
52
|
+
semanticBorder: "hsl(150 20% 24%)"
|
|
28
53
|
};
|
|
29
54
|
var colors = {
|
|
30
55
|
...darkSemanticColors,
|
|
@@ -77,15 +102,21 @@ var fontWeight = {
|
|
|
77
102
|
|
|
78
103
|
// src/tokens/radius.ts
|
|
79
104
|
var radius = {
|
|
105
|
+
none: "0px",
|
|
106
|
+
xs: "2px",
|
|
80
107
|
sm: "4px",
|
|
81
108
|
md: "6px",
|
|
82
109
|
lg: "8px",
|
|
83
110
|
xl: "12px",
|
|
111
|
+
"2xl": "16px",
|
|
112
|
+
"3xl": "24px",
|
|
113
|
+
"4xl": "32px",
|
|
114
|
+
full: "9999px",
|
|
115
|
+
// Semantic aliases
|
|
84
116
|
card: "16px",
|
|
85
117
|
panel: "24px",
|
|
86
|
-
pill: "9999px",
|
|
87
118
|
nav: "32px",
|
|
88
|
-
|
|
119
|
+
pill: "9999px"
|
|
89
120
|
};
|
|
90
121
|
|
|
91
122
|
// src/tokens/shadows.ts
|
|
@@ -102,10 +133,59 @@ var transition = {
|
|
|
102
133
|
default: "200ms ease-out",
|
|
103
134
|
slow: "300ms ease-out"
|
|
104
135
|
};
|
|
136
|
+
|
|
137
|
+
// src/tokens/animations.ts
|
|
138
|
+
var keyframes = {
|
|
139
|
+
"accordion-down": {
|
|
140
|
+
from: { height: "0" },
|
|
141
|
+
to: { height: "var(--radix-accordion-content-height)" }
|
|
142
|
+
},
|
|
143
|
+
"accordion-up": {
|
|
144
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
145
|
+
to: { height: "0" }
|
|
146
|
+
},
|
|
147
|
+
"fade-in": {
|
|
148
|
+
from: { opacity: "0" },
|
|
149
|
+
to: { opacity: "1" }
|
|
150
|
+
},
|
|
151
|
+
"slide-up": {
|
|
152
|
+
from: { opacity: "0", transform: "translateY(10px)" },
|
|
153
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
154
|
+
},
|
|
155
|
+
"slide-in-from-bottom": {
|
|
156
|
+
from: { opacity: "0", transform: "translateY(20px)" },
|
|
157
|
+
to: { opacity: "1", transform: "translateY(0)" }
|
|
158
|
+
},
|
|
159
|
+
shimmer: {
|
|
160
|
+
"0%": { backgroundPosition: "-200% 0" },
|
|
161
|
+
"100%": { backgroundPosition: "200% 0" }
|
|
162
|
+
},
|
|
163
|
+
"stagger-up": {
|
|
164
|
+
"0%": { opacity: "0", transform: "translateY(15px)" },
|
|
165
|
+
"100%": { opacity: "1", transform: "translateY(0)" }
|
|
166
|
+
},
|
|
167
|
+
"bounce-slight": {
|
|
168
|
+
"0%, 100%": { transform: "translateY(-5%)" },
|
|
169
|
+
"50%": { transform: "translateY(0)" }
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var animation = {
|
|
173
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
174
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
175
|
+
"fade-in": "fade-in 0.3s ease-out",
|
|
176
|
+
"slide-up": "slide-up 0.3s ease-out",
|
|
177
|
+
"slide-in-from-bottom": "slide-in-from-bottom 0.4s ease-out",
|
|
178
|
+
"stagger-up": "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards",
|
|
179
|
+
shimmer: "shimmer 2s linear infinite",
|
|
180
|
+
"bounce-slight": "bounce-slight 2s infinite"
|
|
181
|
+
};
|
|
105
182
|
export {
|
|
183
|
+
animation,
|
|
106
184
|
colors,
|
|
107
185
|
fontFamily,
|
|
108
186
|
fontWeight,
|
|
187
|
+
keyframes,
|
|
188
|
+
lightSemanticColors,
|
|
109
189
|
radius,
|
|
110
190
|
shadow,
|
|
111
191
|
transition,
|