kaleido-ui 0.1.2 → 0.1.4

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.
@@ -1,4 +1,29 @@
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
28
  background: "hsl(158 58% 7%)",
4
29
  foreground: "#ffffff",
@@ -32,11 +57,37 @@ var colors = {
32
57
  textSecondary: darkSemanticColors.mutedFg,
33
58
  textMuted: darkSemanticColors.border,
34
59
  textDimmed: darkSemanticColors.ring,
35
- /** Semantic */
60
+ /** Semantic intent colors (use as text-success, bg-warning/15, etc.) */
36
61
  success: darkSemanticColors.primary,
37
- warning: darkSemanticColors.chart3,
62
+ warning: "#FACC15",
63
+ danger: "#F94040",
64
+ info: "#4290FF",
65
+ /** @deprecated alias for `danger` — kept for back-compat. */
38
66
  error: darkSemanticColors.destructive,
39
- info: darkSemanticColors.chart1,
67
+ /** Surface elevation — translucent overlays applied over the page background */
68
+ surface: {
69
+ base: "rgba(255, 255, 255, 0.03)",
70
+ card: "rgba(255, 255, 255, 0.05)",
71
+ elevated: "rgba(255, 255, 255, 0.08)",
72
+ overlay: "rgba(0, 0, 0, 0.20)",
73
+ overlayStrong: "rgba(0, 0, 0, 0.35)",
74
+ scrim: "rgba(0, 0, 0, 0.60)"
75
+ },
76
+ /** Border ladder — translucent edges on dark surfaces */
77
+ borderToken: {
78
+ subtle: "rgba(255, 255, 255, 0.04)",
79
+ default: "rgba(255, 255, 255, 0.08)",
80
+ strong: "rgba(255, 255, 255, 0.15)"
81
+ },
82
+ /** Text ladder for dark surfaces */
83
+ text: {
84
+ primary: "#ffffff",
85
+ secondary: "rgba(255, 255, 255, 0.65)",
86
+ muted: "rgba(255, 255, 255, 0.45)",
87
+ dimmed: "rgba(255, 255, 255, 0.35)",
88
+ disabled: "rgba(255, 255, 255, 0.25)",
89
+ onAccent: "#051B10"
90
+ },
40
91
  /** Network / Layer */
41
92
  network: {
42
93
  bitcoin: "#F7931A",
@@ -45,6 +96,19 @@ var colors = {
45
96
  spark: "#FF6D00",
46
97
  lightning: "#F6C343"
47
98
  },
99
+ networkChip: {
100
+ bitcoin: "#A65D0D",
101
+ rgb: "#7F2623",
102
+ arkade: "#43208B",
103
+ spark: "#314238",
104
+ lightning: "#53611E"
105
+ },
106
+ /** Asset icon brand colors — used as solid backgrounds behind glyphs */
107
+ assetIcon: {
108
+ eth: "#627EEA",
109
+ usdt: "#26A17B",
110
+ usdc: "#2775CA"
111
+ },
48
112
  /** Transaction direction */
49
113
  tx: {
50
114
  sent: "#F94040",
@@ -74,18 +138,51 @@ var fontWeight = {
74
138
  semibold: "600",
75
139
  bold: "700"
76
140
  };
141
+ var letterSpacing = {
142
+ eyebrow: "0.18em",
143
+ eyebrowWide: "0.22em"
144
+ };
145
+ var iconSize = {
146
+ xxs: "11px",
147
+ // dense inline status / timestamp icons
148
+ xs: "13px",
149
+ sm: "14px",
150
+ md: "16px",
151
+ // default
152
+ lg: "18px",
153
+ xl: "20px",
154
+ "2xl": "24px",
155
+ "3xl": "28px",
156
+ "4xl": "32px",
157
+ "5xl": "40px",
158
+ "6xl": "64px"
159
+ // hero / success / error glyphs
160
+ };
161
+ var iconBoxSize = {
162
+ sm: "14px",
163
+ md: "16px",
164
+ lg: "18px",
165
+ nav: "22px",
166
+ control: "34px"
167
+ };
77
168
 
78
169
  // src/tokens/radius.ts
79
170
  var radius = {
171
+ none: "0px",
172
+ xs: "2px",
80
173
  sm: "4px",
81
174
  md: "6px",
82
175
  lg: "8px",
83
176
  xl: "12px",
177
+ "2xl": "16px",
178
+ "3xl": "24px",
179
+ "4xl": "32px",
180
+ full: "9999px",
181
+ // Semantic aliases
84
182
  card: "16px",
85
183
  panel: "24px",
86
- pill: "9999px",
87
184
  nav: "32px",
88
- full: "9999px"
185
+ pill: "9999px"
89
186
  };
90
187
 
91
188
  // src/tokens/shadows.ts
@@ -93,7 +190,32 @@ var shadow = {
93
190
  glow: "0 0 20px rgba(10, 10, 10, 0.15)",
94
191
  glowStrong: "0 0 30px rgba(10, 10, 10, 0.25)",
95
192
  glowSubtle: "0 0 15px rgba(10, 10, 10, 0.12)",
96
- glowAccent: "0 4px 30px rgba(10, 10, 10, 0.18)"
193
+ glowAccent: "0 4px 30px rgba(10, 10, 10, 0.18)",
194
+ /** Brand green glow — drives all primary CTA / focus halos. */
195
+ glowPrimarySoft: "0 0 8px rgba(43, 238, 121, 0.5)",
196
+ glowPrimary: "0 0 30px rgba(43, 238, 121, 0.45)",
197
+ glowPrimaryStrong: "0 0 40px rgba(43, 238, 121, 0.5)",
198
+ /** Floating popover / modal elevation on dark surfaces. */
199
+ popover: "0 18px 55px rgba(0, 0, 0, 0.65)",
200
+ /** Toast / inline-notification elevation. */
201
+ toast: "0 0 30px rgba(0, 0, 0, 0.3)"
202
+ };
203
+
204
+ // src/tokens/gradients.ts
205
+ var gradient = {
206
+ /**
207
+ * Page-level radial wash — top-right white highlight + bottom-left
208
+ * brand purple bloom. Used by Welcome / LockScreen / Onboarding
209
+ * page shells.
210
+ */
211
+ pageRadial: "radial-gradient(ellipse at 60% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 55%), radial-gradient(ellipse at 30% 85%, rgba(124, 58, 237, 0.08) 0%, transparent 50%)",
212
+ /** Subtle highlight for the swap-input card receive panel. */
213
+ cardSheen: "linear-gradient(to bottom right, rgba(255, 255, 255, 0.01), rgba(43, 238, 121, 0.04))",
214
+ /**
215
+ * Brand headline gradient — white-to-fade. Used by `<HeadlineGradient />`
216
+ * via the `bg-gradient-headline` utility plus `bg-clip-text text-transparent`.
217
+ */
218
+ headline: "linear-gradient(to right, #ffffff, #ffffff, rgba(255, 255, 255, 0.45))"
97
219
  };
98
220
 
99
221
  // src/tokens/transitions.ts
@@ -102,10 +224,63 @@ var transition = {
102
224
  default: "200ms ease-out",
103
225
  slow: "300ms ease-out"
104
226
  };
227
+
228
+ // src/tokens/animations.ts
229
+ var keyframes = {
230
+ "accordion-down": {
231
+ from: { height: "0" },
232
+ to: { height: "var(--radix-accordion-content-height)" }
233
+ },
234
+ "accordion-up": {
235
+ from: { height: "var(--radix-accordion-content-height)" },
236
+ to: { height: "0" }
237
+ },
238
+ "fade-in": {
239
+ from: { opacity: "0" },
240
+ to: { opacity: "1" }
241
+ },
242
+ "slide-up": {
243
+ from: { opacity: "0", transform: "translateY(10px)" },
244
+ to: { opacity: "1", transform: "translateY(0)" }
245
+ },
246
+ "slide-in-from-bottom": {
247
+ from: { opacity: "0", transform: "translateY(20px)" },
248
+ to: { opacity: "1", transform: "translateY(0)" }
249
+ },
250
+ shimmer: {
251
+ "0%": { backgroundPosition: "-200% 0" },
252
+ "100%": { backgroundPosition: "200% 0" }
253
+ },
254
+ "stagger-up": {
255
+ "0%": { opacity: "0", transform: "translateY(15px)" },
256
+ "100%": { opacity: "1", transform: "translateY(0)" }
257
+ },
258
+ "bounce-slight": {
259
+ "0%, 100%": { transform: "translateY(-5%)" },
260
+ "50%": { transform: "translateY(0)" }
261
+ }
262
+ };
263
+ var animation = {
264
+ "accordion-down": "accordion-down 0.2s ease-out",
265
+ "accordion-up": "accordion-up 0.2s ease-out",
266
+ "fade-in": "fade-in 0.3s ease-out",
267
+ "slide-up": "slide-up 0.3s ease-out",
268
+ "slide-in-from-bottom": "slide-in-from-bottom 0.4s ease-out",
269
+ "stagger-up": "stagger-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards",
270
+ shimmer: "shimmer 2s linear infinite",
271
+ "bounce-slight": "bounce-slight 2s infinite"
272
+ };
105
273
  export {
274
+ animation,
106
275
  colors,
107
276
  fontFamily,
108
277
  fontWeight,
278
+ gradient,
279
+ iconBoxSize,
280
+ iconSize,
281
+ keyframes,
282
+ letterSpacing,
283
+ lightSemanticColors,
109
284
  radius,
110
285
  shadow,
111
286
  transition,