kaleido-ui 0.1.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.
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/tailwind/index.ts
21
+ var tailwind_exports = {};
22
+ __export(tailwind_exports, {
23
+ default: () => tailwind_default
24
+ });
25
+ module.exports = __toCommonJS(tailwind_exports);
26
+
27
+ // src/tokens/colors.ts
28
+ var colors = {
29
+ /** Brand */
30
+ primary: "#2BEE79",
31
+ primaryDark: "#1FA855",
32
+ primaryFg: "#102217",
33
+ /** Surfaces (dark theme — the default) */
34
+ bgDark: "#102217",
35
+ surfaceDark: "#162E21",
36
+ surfaceHighlight: "#243E30",
37
+ surfaceBorder: "#244A35",
38
+ surfaceDarker: "#0B1810",
39
+ /** Surfaces (light theme) */
40
+ bgLight: "#F6F8F7",
41
+ surfaceLight: "#FFFFFF",
42
+ /** Text */
43
+ textPrimary: "#FFFFFF",
44
+ textSecondary: "#92C9A8",
45
+ textMuted: "rgba(255,255,255,0.5)",
46
+ textDimmed: "rgba(255,255,255,0.35)",
47
+ /** Semantic */
48
+ success: "#2BEE79",
49
+ warning: "#F59E0B",
50
+ error: "#F94040",
51
+ info: "#4290FF",
52
+ /** Network / Layer */
53
+ network: {
54
+ bitcoin: "#F7931A",
55
+ rgb: "#DD352E",
56
+ arkade: "#7C3AED",
57
+ spark: "#FF6D00",
58
+ lightning: "#F6C343"
59
+ },
60
+ /** Transaction direction */
61
+ tx: {
62
+ sent: "#F94040",
63
+ receive: "#2BEE79",
64
+ swap: "#4290FF"
65
+ }
66
+ };
67
+
68
+ // src/tokens/typography.ts
69
+ var fontFamily = {
70
+ display: "'Geist Sans', system-ui, -apple-system, sans-serif",
71
+ mono: "'Geist Mono', monospace"
72
+ };
73
+ var typeScale = {
74
+ xxs: ["10px", "14px"],
75
+ tiny: ["11px", "16px"],
76
+ caption: ["13px", "18px"],
77
+ body: ["15px", "22px"],
78
+ subhead: ["17px", "24px"],
79
+ title: ["20px", "28px"],
80
+ headline: ["28px", "34px"],
81
+ display: ["36px", "40px"]
82
+ };
83
+
84
+ // src/tokens/radius.ts
85
+ var radius = {
86
+ sm: "8px",
87
+ md: "12px",
88
+ lg: "16px",
89
+ xl: "20px",
90
+ card: "20px",
91
+ panel: "22px",
92
+ pill: "24px",
93
+ nav: "14px",
94
+ full: "9999px"
95
+ };
96
+
97
+ // src/tokens/shadows.ts
98
+ var shadow = {
99
+ glow: "0 0 20px rgba(43, 238, 121, 0.15)",
100
+ glowStrong: "0 0 30px rgba(43, 238, 121, 0.3)",
101
+ glowSubtle: "0 0 15px rgba(43, 238, 121, 0.15)",
102
+ glowAccent: "0 4px 30px rgba(43, 238, 121, 0.25)"
103
+ };
104
+
105
+ // src/tailwind/index.ts
106
+ var preset = {
107
+ darkMode: ["class"],
108
+ theme: {
109
+ extend: {
110
+ colors: {
111
+ border: "hsl(var(--border))",
112
+ input: "hsl(var(--input))",
113
+ ring: "hsl(var(--ring))",
114
+ background: "hsl(var(--background))",
115
+ foreground: "hsl(var(--foreground))",
116
+ primary: {
117
+ DEFAULT: colors.primary,
118
+ foreground: colors.primaryFg,
119
+ dark: colors.primaryDark
120
+ },
121
+ secondary: {
122
+ DEFAULT: "hsl(var(--secondary))",
123
+ foreground: "hsl(var(--secondary-foreground))"
124
+ },
125
+ destructive: {
126
+ DEFAULT: "hsl(var(--destructive))",
127
+ foreground: "hsl(var(--destructive-foreground))"
128
+ },
129
+ muted: {
130
+ DEFAULT: "hsl(var(--muted))",
131
+ foreground: "hsl(var(--muted-foreground))"
132
+ },
133
+ accent: {
134
+ DEFAULT: "hsl(var(--accent))",
135
+ foreground: "hsl(var(--accent-foreground))"
136
+ },
137
+ popover: {
138
+ DEFAULT: "hsl(var(--popover))",
139
+ foreground: "hsl(var(--popover-foreground))"
140
+ },
141
+ card: {
142
+ DEFAULT: "hsl(var(--card))",
143
+ foreground: "hsl(var(--card-foreground))"
144
+ },
145
+ network: colors.network,
146
+ tx: colors.tx,
147
+ "background-light": colors.bgLight,
148
+ "background-dark": colors.bgDark,
149
+ "surface-dark": colors.surfaceDark,
150
+ "surface-light": colors.surfaceLight,
151
+ "surface-highlight": colors.surfaceHighlight,
152
+ "surface-border": colors.surfaceBorder,
153
+ "surface-darker": colors.surfaceDarker
154
+ },
155
+ fontFamily: {
156
+ display: fontFamily.display.split(", "),
157
+ mono: fontFamily.mono.split(", ")
158
+ },
159
+ fontSize: Object.fromEntries(
160
+ Object.entries(typeScale).map(([key, [size, lh]]) => [
161
+ key,
162
+ [size, { lineHeight: lh }]
163
+ ])
164
+ ),
165
+ borderRadius: {
166
+ lg: "var(--radius)",
167
+ md: "calc(var(--radius) - 2px)",
168
+ sm: "calc(var(--radius) - 4px)",
169
+ xl: "0.75rem",
170
+ "2xl": "1rem",
171
+ "3xl": "1.5rem",
172
+ card: radius.card,
173
+ panel: radius.panel,
174
+ pill: radius.pill,
175
+ nav: radius.nav
176
+ },
177
+ boxShadow: {
178
+ glow: shadow.glow,
179
+ "glow-strong": shadow.glowStrong,
180
+ "glow-subtle": shadow.glowSubtle
181
+ },
182
+ keyframes: {
183
+ "accordion-down": {
184
+ from: { height: "0" },
185
+ to: { height: "var(--radix-accordion-content-height)" }
186
+ },
187
+ "accordion-up": {
188
+ from: { height: "var(--radix-accordion-content-height)" },
189
+ to: { height: "0" }
190
+ },
191
+ "pulse-glow": {
192
+ "0%, 100%": { boxShadow: "0 0 20px rgba(43, 238, 121, 0.2)" },
193
+ "50%": { boxShadow: "0 0 30px rgba(43, 238, 121, 0.4)" }
194
+ },
195
+ "fade-in": {
196
+ from: { opacity: "0" },
197
+ to: { opacity: "1" }
198
+ },
199
+ "slide-up": {
200
+ from: { opacity: "0", transform: "translateY(10px)" },
201
+ to: { opacity: "1", transform: "translateY(0)" }
202
+ },
203
+ "slide-in-from-bottom": {
204
+ from: { opacity: "0", transform: "translateY(20px)" },
205
+ to: { opacity: "1", transform: "translateY(0)" }
206
+ },
207
+ shimmer: {
208
+ "0%": { backgroundPosition: "-200% 0" },
209
+ "100%": { backgroundPosition: "200% 0" }
210
+ },
211
+ "stagger-up": {
212
+ "0%": { opacity: "0", transform: "translateY(15px)" },
213
+ "100%": { opacity: "1", transform: "translateY(0)" }
214
+ },
215
+ "bounce-slight": {
216
+ "0%, 100%": { transform: "translateY(-5%)" },
217
+ "50%": { transform: "translateY(0)" }
218
+ }
219
+ },
220
+ animation: {
221
+ "accordion-down": "accordion-down 0.2s ease-out",
222
+ "accordion-up": "accordion-up 0.2s ease-out",
223
+ "pulse-glow": "pulse-glow 2s ease-in-out infinite",
224
+ "fade-in": "fade-in 0.3s ease-out",
225
+ "slide-up": "slide-up 0.3s ease-out",
226
+ "slide-in-from-bottom": "slide-in-from-bottom 0.4s ease-out",
227
+ "stagger-up": "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards",
228
+ shimmer: "shimmer 2s linear infinite",
229
+ "bounce-slight": "bounce-slight 2s infinite"
230
+ }
231
+ }
232
+ },
233
+ plugins: []
234
+ };
235
+ var tailwind_default = preset;
@@ -0,0 +1,182 @@
1
+ declare const preset: {
2
+ darkMode: readonly ["class"];
3
+ theme: {
4
+ extend: {
5
+ colors: {
6
+ border: string;
7
+ input: string;
8
+ ring: string;
9
+ background: string;
10
+ foreground: string;
11
+ primary: {
12
+ DEFAULT: "#2BEE79";
13
+ foreground: "#102217";
14
+ dark: "#1FA855";
15
+ };
16
+ secondary: {
17
+ DEFAULT: string;
18
+ foreground: string;
19
+ };
20
+ destructive: {
21
+ DEFAULT: string;
22
+ foreground: string;
23
+ };
24
+ muted: {
25
+ DEFAULT: string;
26
+ foreground: string;
27
+ };
28
+ accent: {
29
+ DEFAULT: string;
30
+ foreground: string;
31
+ };
32
+ popover: {
33
+ DEFAULT: string;
34
+ foreground: string;
35
+ };
36
+ card: {
37
+ DEFAULT: string;
38
+ foreground: string;
39
+ };
40
+ network: {
41
+ readonly bitcoin: "#F7931A";
42
+ readonly rgb: "#DD352E";
43
+ readonly arkade: "#7C3AED";
44
+ readonly spark: "#FF6D00";
45
+ readonly lightning: "#F6C343";
46
+ };
47
+ tx: {
48
+ readonly sent: "#F94040";
49
+ readonly receive: "#2BEE79";
50
+ readonly swap: "#4290FF";
51
+ };
52
+ 'background-light': "#F6F8F7";
53
+ 'background-dark': "#102217";
54
+ 'surface-dark': "#162E21";
55
+ 'surface-light': "#FFFFFF";
56
+ 'surface-highlight': "#243E30";
57
+ 'surface-border': "#244A35";
58
+ 'surface-darker': "#0B1810";
59
+ };
60
+ fontFamily: {
61
+ display: string[];
62
+ mono: string[];
63
+ };
64
+ fontSize: {
65
+ [k: string]: ("10px" | "11px" | "13px" | "15px" | "17px" | "20px" | "28px" | "36px" | {
66
+ lineHeight: "14px" | "16px" | "18px" | "22px" | "24px" | "28px" | "34px" | "40px";
67
+ })[];
68
+ };
69
+ borderRadius: {
70
+ lg: string;
71
+ md: string;
72
+ sm: string;
73
+ xl: string;
74
+ '2xl': string;
75
+ '3xl': string;
76
+ card: "20px";
77
+ panel: "22px";
78
+ pill: "24px";
79
+ nav: "14px";
80
+ };
81
+ boxShadow: {
82
+ glow: "0 0 20px rgba(43, 238, 121, 0.15)";
83
+ 'glow-strong': "0 0 30px rgba(43, 238, 121, 0.3)";
84
+ 'glow-subtle': "0 0 15px rgba(43, 238, 121, 0.15)";
85
+ };
86
+ keyframes: {
87
+ 'accordion-down': {
88
+ from: {
89
+ height: string;
90
+ };
91
+ to: {
92
+ height: string;
93
+ };
94
+ };
95
+ 'accordion-up': {
96
+ from: {
97
+ height: string;
98
+ };
99
+ to: {
100
+ height: string;
101
+ };
102
+ };
103
+ 'pulse-glow': {
104
+ '0%, 100%': {
105
+ boxShadow: string;
106
+ };
107
+ '50%': {
108
+ boxShadow: string;
109
+ };
110
+ };
111
+ 'fade-in': {
112
+ from: {
113
+ opacity: string;
114
+ };
115
+ to: {
116
+ opacity: string;
117
+ };
118
+ };
119
+ 'slide-up': {
120
+ from: {
121
+ opacity: string;
122
+ transform: string;
123
+ };
124
+ to: {
125
+ opacity: string;
126
+ transform: string;
127
+ };
128
+ };
129
+ 'slide-in-from-bottom': {
130
+ from: {
131
+ opacity: string;
132
+ transform: string;
133
+ };
134
+ to: {
135
+ opacity: string;
136
+ transform: string;
137
+ };
138
+ };
139
+ shimmer: {
140
+ '0%': {
141
+ backgroundPosition: string;
142
+ };
143
+ '100%': {
144
+ backgroundPosition: string;
145
+ };
146
+ };
147
+ 'stagger-up': {
148
+ '0%': {
149
+ opacity: string;
150
+ transform: string;
151
+ };
152
+ '100%': {
153
+ opacity: string;
154
+ transform: string;
155
+ };
156
+ };
157
+ 'bounce-slight': {
158
+ '0%, 100%': {
159
+ transform: string;
160
+ };
161
+ '50%': {
162
+ transform: string;
163
+ };
164
+ };
165
+ };
166
+ animation: {
167
+ 'accordion-down': string;
168
+ 'accordion-up': string;
169
+ 'pulse-glow': string;
170
+ 'fade-in': string;
171
+ 'slide-up': string;
172
+ 'slide-in-from-bottom': string;
173
+ 'stagger-up': string;
174
+ shimmer: string;
175
+ 'bounce-slight': string;
176
+ };
177
+ };
178
+ };
179
+ plugins: any[];
180
+ };
181
+
182
+ export { preset as default };
@@ -0,0 +1,182 @@
1
+ declare const preset: {
2
+ darkMode: readonly ["class"];
3
+ theme: {
4
+ extend: {
5
+ colors: {
6
+ border: string;
7
+ input: string;
8
+ ring: string;
9
+ background: string;
10
+ foreground: string;
11
+ primary: {
12
+ DEFAULT: "#2BEE79";
13
+ foreground: "#102217";
14
+ dark: "#1FA855";
15
+ };
16
+ secondary: {
17
+ DEFAULT: string;
18
+ foreground: string;
19
+ };
20
+ destructive: {
21
+ DEFAULT: string;
22
+ foreground: string;
23
+ };
24
+ muted: {
25
+ DEFAULT: string;
26
+ foreground: string;
27
+ };
28
+ accent: {
29
+ DEFAULT: string;
30
+ foreground: string;
31
+ };
32
+ popover: {
33
+ DEFAULT: string;
34
+ foreground: string;
35
+ };
36
+ card: {
37
+ DEFAULT: string;
38
+ foreground: string;
39
+ };
40
+ network: {
41
+ readonly bitcoin: "#F7931A";
42
+ readonly rgb: "#DD352E";
43
+ readonly arkade: "#7C3AED";
44
+ readonly spark: "#FF6D00";
45
+ readonly lightning: "#F6C343";
46
+ };
47
+ tx: {
48
+ readonly sent: "#F94040";
49
+ readonly receive: "#2BEE79";
50
+ readonly swap: "#4290FF";
51
+ };
52
+ 'background-light': "#F6F8F7";
53
+ 'background-dark': "#102217";
54
+ 'surface-dark': "#162E21";
55
+ 'surface-light': "#FFFFFF";
56
+ 'surface-highlight': "#243E30";
57
+ 'surface-border': "#244A35";
58
+ 'surface-darker': "#0B1810";
59
+ };
60
+ fontFamily: {
61
+ display: string[];
62
+ mono: string[];
63
+ };
64
+ fontSize: {
65
+ [k: string]: ("10px" | "11px" | "13px" | "15px" | "17px" | "20px" | "28px" | "36px" | {
66
+ lineHeight: "14px" | "16px" | "18px" | "22px" | "24px" | "28px" | "34px" | "40px";
67
+ })[];
68
+ };
69
+ borderRadius: {
70
+ lg: string;
71
+ md: string;
72
+ sm: string;
73
+ xl: string;
74
+ '2xl': string;
75
+ '3xl': string;
76
+ card: "20px";
77
+ panel: "22px";
78
+ pill: "24px";
79
+ nav: "14px";
80
+ };
81
+ boxShadow: {
82
+ glow: "0 0 20px rgba(43, 238, 121, 0.15)";
83
+ 'glow-strong': "0 0 30px rgba(43, 238, 121, 0.3)";
84
+ 'glow-subtle': "0 0 15px rgba(43, 238, 121, 0.15)";
85
+ };
86
+ keyframes: {
87
+ 'accordion-down': {
88
+ from: {
89
+ height: string;
90
+ };
91
+ to: {
92
+ height: string;
93
+ };
94
+ };
95
+ 'accordion-up': {
96
+ from: {
97
+ height: string;
98
+ };
99
+ to: {
100
+ height: string;
101
+ };
102
+ };
103
+ 'pulse-glow': {
104
+ '0%, 100%': {
105
+ boxShadow: string;
106
+ };
107
+ '50%': {
108
+ boxShadow: string;
109
+ };
110
+ };
111
+ 'fade-in': {
112
+ from: {
113
+ opacity: string;
114
+ };
115
+ to: {
116
+ opacity: string;
117
+ };
118
+ };
119
+ 'slide-up': {
120
+ from: {
121
+ opacity: string;
122
+ transform: string;
123
+ };
124
+ to: {
125
+ opacity: string;
126
+ transform: string;
127
+ };
128
+ };
129
+ 'slide-in-from-bottom': {
130
+ from: {
131
+ opacity: string;
132
+ transform: string;
133
+ };
134
+ to: {
135
+ opacity: string;
136
+ transform: string;
137
+ };
138
+ };
139
+ shimmer: {
140
+ '0%': {
141
+ backgroundPosition: string;
142
+ };
143
+ '100%': {
144
+ backgroundPosition: string;
145
+ };
146
+ };
147
+ 'stagger-up': {
148
+ '0%': {
149
+ opacity: string;
150
+ transform: string;
151
+ };
152
+ '100%': {
153
+ opacity: string;
154
+ transform: string;
155
+ };
156
+ };
157
+ 'bounce-slight': {
158
+ '0%, 100%': {
159
+ transform: string;
160
+ };
161
+ '50%': {
162
+ transform: string;
163
+ };
164
+ };
165
+ };
166
+ animation: {
167
+ 'accordion-down': string;
168
+ 'accordion-up': string;
169
+ 'pulse-glow': string;
170
+ 'fade-in': string;
171
+ 'slide-up': string;
172
+ 'slide-in-from-bottom': string;
173
+ 'stagger-up': string;
174
+ shimmer: string;
175
+ 'bounce-slight': string;
176
+ };
177
+ };
178
+ };
179
+ plugins: any[];
180
+ };
181
+
182
+ export { preset as default };