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/native/index.d.ts
CHANGED
|
@@ -9,26 +9,26 @@ export { AmountInput, AssetSelector, Balance, CryptoAddressInput, NetworkSelecto
|
|
|
9
9
|
* <ThemeProvider brandConfig={kaleidoswapBrandConfig}>
|
|
10
10
|
*/
|
|
11
11
|
declare const kaleidoswapBrandConfig: {
|
|
12
|
-
primaryColor: "#
|
|
13
|
-
secondaryColor: "
|
|
12
|
+
primaryColor: "#2BEE79";
|
|
13
|
+
secondaryColor: "hsl(154 26% 17%)";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Full custom theme tokens for more granular control.
|
|
17
17
|
*/
|
|
18
18
|
declare const kaleidoswapTokens: {
|
|
19
19
|
readonly colors: {
|
|
20
|
-
readonly primary: "#
|
|
21
|
-
readonly primaryFg: "#
|
|
22
|
-
readonly background: "
|
|
23
|
-
readonly surface: "
|
|
24
|
-
readonly surfaceHighlight: "
|
|
25
|
-
readonly border: "
|
|
26
|
-
readonly textPrimary: "#
|
|
27
|
-
readonly textSecondary: "
|
|
28
|
-
readonly success: "#
|
|
29
|
-
readonly warning: "#
|
|
30
|
-
readonly error: "
|
|
31
|
-
readonly info: "#
|
|
20
|
+
readonly primary: "#2BEE79";
|
|
21
|
+
readonly primaryFg: "#051B10";
|
|
22
|
+
readonly background: "hsl(158 58% 7%)";
|
|
23
|
+
readonly surface: "hsl(156 32% 12%)";
|
|
24
|
+
readonly surfaceHighlight: "hsl(154 26% 17%)";
|
|
25
|
+
readonly border: "hsl(150 20% 24%)";
|
|
26
|
+
readonly textPrimary: "#ffffff";
|
|
27
|
+
readonly textSecondary: "rgba(255, 255, 255, 0.55)";
|
|
28
|
+
readonly success: "#2BEE79";
|
|
29
|
+
readonly warning: "#F7931A";
|
|
30
|
+
readonly error: "hsl(0 62% 50%)";
|
|
31
|
+
readonly info: "#2BEE79";
|
|
32
32
|
readonly network: {
|
|
33
33
|
readonly bitcoin: "#F7931A";
|
|
34
34
|
readonly rgb: "#DD352E";
|
|
@@ -84,9 +84,9 @@ declare const variantConfig: {
|
|
|
84
84
|
readonly iconColor: "#60A5FA";
|
|
85
85
|
};
|
|
86
86
|
readonly success: {
|
|
87
|
-
readonly bg: "#
|
|
88
|
-
readonly borderColor: "#
|
|
89
|
-
readonly iconColor: "#
|
|
87
|
+
readonly bg: "#2BEE791A";
|
|
88
|
+
readonly borderColor: "#2BEE7933";
|
|
89
|
+
readonly iconColor: "#2BEE79";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
interface AlertBannerProps {
|
|
@@ -103,15 +103,15 @@ interface SectionLabelProps {
|
|
|
103
103
|
declare function SectionLabel({ children, style }: SectionLabelProps): react_jsx_runtime.JSX.Element;
|
|
104
104
|
|
|
105
105
|
declare const colors: {
|
|
106
|
-
readonly textPrimary: "#
|
|
107
|
-
readonly textSecondary: "
|
|
108
|
-
readonly textMuted: "
|
|
109
|
-
readonly textDimmed: "#
|
|
106
|
+
readonly textPrimary: "#ffffff";
|
|
107
|
+
readonly textSecondary: "rgba(255, 255, 255, 0.55)";
|
|
108
|
+
readonly textMuted: "hsl(150 20% 24%)";
|
|
109
|
+
readonly textDimmed: "#2BEE79";
|
|
110
110
|
/** Semantic */
|
|
111
|
-
readonly success: "#
|
|
112
|
-
readonly warning: "#
|
|
113
|
-
readonly error: "
|
|
114
|
-
readonly info: "#
|
|
111
|
+
readonly success: "#2BEE79";
|
|
112
|
+
readonly warning: "#F7931A";
|
|
113
|
+
readonly error: "hsl(0 62% 50%)";
|
|
114
|
+
readonly info: "#2BEE79";
|
|
115
115
|
/** Network / Layer */
|
|
116
116
|
readonly network: {
|
|
117
117
|
readonly bitcoin: "#F7931A";
|
|
@@ -126,31 +126,31 @@ declare const colors: {
|
|
|
126
126
|
readonly receive: "#2BEE79";
|
|
127
127
|
readonly swap: "#4290FF";
|
|
128
128
|
};
|
|
129
|
-
readonly background: "
|
|
130
|
-
readonly foreground: "#
|
|
131
|
-
readonly border: "
|
|
132
|
-
readonly input: "
|
|
133
|
-
readonly destructive: "
|
|
134
|
-
readonly secondary: "
|
|
135
|
-
readonly secondaryFg: "#
|
|
136
|
-
readonly muted: "
|
|
137
|
-
readonly mutedFg: "
|
|
138
|
-
readonly primary: "#
|
|
139
|
-
readonly primaryFg: "#
|
|
140
|
-
readonly accent: "
|
|
141
|
-
readonly accentFg: "#
|
|
142
|
-
readonly ring: "#
|
|
143
|
-
readonly card: "
|
|
144
|
-
readonly cardFg: "#
|
|
145
|
-
readonly popover: "
|
|
146
|
-
readonly popoverFg: "#
|
|
147
|
-
readonly chart1: "#
|
|
148
|
-
readonly chart2: "#
|
|
149
|
-
readonly chart3: "#
|
|
150
|
-
readonly chart4: "#
|
|
151
|
-
readonly chart5: "#
|
|
152
|
-
readonly semanticBackground: "
|
|
153
|
-
readonly semanticBorder: "
|
|
129
|
+
readonly background: "hsl(158 58% 7%)";
|
|
130
|
+
readonly foreground: "#ffffff";
|
|
131
|
+
readonly border: "hsl(150 20% 24%)";
|
|
132
|
+
readonly input: "rgba(255, 255, 255, 0.15)";
|
|
133
|
+
readonly destructive: "hsl(0 62% 50%)";
|
|
134
|
+
readonly secondary: "hsl(154 26% 17%)";
|
|
135
|
+
readonly secondaryFg: "#ffffff";
|
|
136
|
+
readonly muted: "hsl(156 32% 12%)";
|
|
137
|
+
readonly mutedFg: "rgba(255, 255, 255, 0.55)";
|
|
138
|
+
readonly primary: "#2BEE79";
|
|
139
|
+
readonly primaryFg: "#051B10";
|
|
140
|
+
readonly accent: "hsl(154 26% 17%)";
|
|
141
|
+
readonly accentFg: "#ffffff";
|
|
142
|
+
readonly ring: "#2BEE79";
|
|
143
|
+
readonly card: "hsl(156 32% 12%)";
|
|
144
|
+
readonly cardFg: "#ffffff";
|
|
145
|
+
readonly popover: "hsl(154 26% 17%)";
|
|
146
|
+
readonly popoverFg: "#ffffff";
|
|
147
|
+
readonly chart1: "#2BEE79";
|
|
148
|
+
readonly chart2: "#F6C343";
|
|
149
|
+
readonly chart3: "#F7931A";
|
|
150
|
+
readonly chart4: "#7C3AED";
|
|
151
|
+
readonly chart5: "#DD352E";
|
|
152
|
+
readonly semanticBackground: "hsl(156 32% 12%)";
|
|
153
|
+
readonly semanticBorder: "hsl(150 20% 24%)";
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
/**
|
|
@@ -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
|
@@ -3,31 +3,31 @@ import { ThemeProvider } from "@tetherto/wdk-uikit-react-native";
|
|
|
3
3
|
|
|
4
4
|
// src/tokens/colors.ts
|
|
5
5
|
var darkSemanticColors = {
|
|
6
|
-
background: "
|
|
7
|
-
foreground: "#
|
|
8
|
-
border: "
|
|
9
|
-
input: "
|
|
10
|
-
destructive: "
|
|
11
|
-
secondary: "
|
|
12
|
-
secondaryFg: "#
|
|
13
|
-
muted: "
|
|
14
|
-
mutedFg: "
|
|
15
|
-
primary: "#
|
|
16
|
-
primaryFg: "#
|
|
17
|
-
accent: "
|
|
18
|
-
accentFg: "#
|
|
19
|
-
ring: "#
|
|
20
|
-
card: "
|
|
21
|
-
cardFg: "#
|
|
22
|
-
popover: "
|
|
23
|
-
popoverFg: "#
|
|
24
|
-
chart1: "#
|
|
25
|
-
chart2: "#
|
|
26
|
-
chart3: "#
|
|
27
|
-
chart4: "#
|
|
28
|
-
chart5: "#
|
|
29
|
-
semanticBackground: "
|
|
30
|
-
semanticBorder: "
|
|
6
|
+
background: "hsl(158 58% 7%)",
|
|
7
|
+
foreground: "#ffffff",
|
|
8
|
+
border: "hsl(150 20% 24%)",
|
|
9
|
+
input: "rgba(255, 255, 255, 0.15)",
|
|
10
|
+
destructive: "hsl(0 62% 50%)",
|
|
11
|
+
secondary: "hsl(154 26% 17%)",
|
|
12
|
+
secondaryFg: "#ffffff",
|
|
13
|
+
muted: "hsl(156 32% 12%)",
|
|
14
|
+
mutedFg: "rgba(255, 255, 255, 0.55)",
|
|
15
|
+
primary: "#2BEE79",
|
|
16
|
+
primaryFg: "#051B10",
|
|
17
|
+
accent: "hsl(154 26% 17%)",
|
|
18
|
+
accentFg: "#ffffff",
|
|
19
|
+
ring: "#2BEE79",
|
|
20
|
+
card: "hsl(156 32% 12%)",
|
|
21
|
+
cardFg: "#ffffff",
|
|
22
|
+
popover: "hsl(154 26% 17%)",
|
|
23
|
+
popoverFg: "#ffffff",
|
|
24
|
+
chart1: "#2BEE79",
|
|
25
|
+
chart2: "#F6C343",
|
|
26
|
+
chart3: "#F7931A",
|
|
27
|
+
chart4: "#7C3AED",
|
|
28
|
+
chart5: "#DD352E",
|
|
29
|
+
semanticBackground: "hsl(156 32% 12%)",
|
|
30
|
+
semanticBorder: "hsl(150 20% 24%)"
|
|
31
31
|
};
|
|
32
32
|
var colors = {
|
|
33
33
|
...darkSemanticColors,
|
|
@@ -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,32 +34,57 @@ __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
|
-
background: "
|
|
36
|
-
foreground: "#
|
|
37
|
-
border: "
|
|
38
|
-
input: "
|
|
39
|
-
destructive: "
|
|
40
|
-
secondary: "
|
|
41
|
-
secondaryFg: "#
|
|
42
|
-
muted: "
|
|
43
|
-
mutedFg: "
|
|
44
|
-
primary: "#
|
|
45
|
-
primaryFg: "#
|
|
46
|
-
accent: "
|
|
47
|
-
accentFg: "#
|
|
48
|
-
ring: "#
|
|
49
|
-
card: "
|
|
50
|
-
cardFg: "#
|
|
51
|
-
popover: "
|
|
52
|
-
popoverFg: "#
|
|
53
|
-
chart1: "#
|
|
54
|
-
chart2: "#
|
|
55
|
-
chart3: "#
|
|
56
|
-
chart4: "#
|
|
57
|
-
chart5: "#
|
|
58
|
-
semanticBackground: "
|
|
59
|
-
semanticBorder: "
|
|
63
|
+
background: "hsl(158 58% 7%)",
|
|
64
|
+
foreground: "#ffffff",
|
|
65
|
+
border: "hsl(150 20% 24%)",
|
|
66
|
+
input: "rgba(255, 255, 255, 0.15)",
|
|
67
|
+
destructive: "hsl(0 62% 50%)",
|
|
68
|
+
secondary: "hsl(154 26% 17%)",
|
|
69
|
+
secondaryFg: "#ffffff",
|
|
70
|
+
muted: "hsl(156 32% 12%)",
|
|
71
|
+
mutedFg: "rgba(255, 255, 255, 0.55)",
|
|
72
|
+
primary: "#2BEE79",
|
|
73
|
+
primaryFg: "#051B10",
|
|
74
|
+
accent: "hsl(154 26% 17%)",
|
|
75
|
+
accentFg: "#ffffff",
|
|
76
|
+
ring: "#2BEE79",
|
|
77
|
+
card: "hsl(156 32% 12%)",
|
|
78
|
+
cardFg: "#ffffff",
|
|
79
|
+
popover: "hsl(154 26% 17%)",
|
|
80
|
+
popoverFg: "#ffffff",
|
|
81
|
+
chart1: "#2BEE79",
|
|
82
|
+
chart2: "#F6C343",
|
|
83
|
+
chart3: "#F7931A",
|
|
84
|
+
chart4: "#7C3AED",
|
|
85
|
+
chart5: "#DD352E",
|
|
86
|
+
semanticBackground: "hsl(156 32% 12%)",
|
|
87
|
+
semanticBorder: "hsl(150 20% 24%)"
|
|
60
88
|
};
|
|
61
89
|
var colors = {
|
|
62
90
|
...darkSemanticColors,
|
|
@@ -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,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 };
|