Skip to content

Commit 2e42c94

Browse files
committed
Changes in appkit causing issues
1 parent 78fb1fc commit 2e42c94

2 files changed

Lines changed: 156 additions & 24 deletions

File tree

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
"@radix-ui/react-toggle": "^1.1.1",
4444
"@radix-ui/react-toggle-group": "^1.1.1",
4545
"@radix-ui/react-tooltip": "^1.1.6",
46-
"@reown/appkit": "^1.7.15",
47-
"@reown/appkit-adapter-ethers": "^1.7.2",
48-
"@reown/appkit-adapter-solana": "^1.7.2",
49-
"@reown/appkit-adapter-wagmi": "^1.7.15",
46+
"@reown/appkit": "^1.8.0",
47+
"@reown/appkit-adapter-ethers": "^1.8.0",
48+
"@reown/appkit-adapter-solana": "^1.8.0",
49+
"@reown/appkit-adapter-wagmi": "^1.8.0",
5050
"@solana/wallet-adapter-react": "^0.15.36",
5151
"@solana/wallet-adapter-react-ui": "^0.9.36",
5252
"@solana/wallet-adapter-wallets": "^0.19.34",
@@ -111,5 +111,8 @@
111111
"@types/react-simple-maps": "^3.0.6",
112112
"tailwindcss": "^4",
113113
"typescript": "^5"
114+
},
115+
"overrides": {
116+
"@reown/appkit": "$@reown/appkit"
114117
}
115-
}
118+
}

src/app/globals.css

Lines changed: 148 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ body {
123123

124124
@layer base {
125125
* {
126-
@apply border-border outline-ring/50;
126+
@apply border-border outline-ring/50;
127127
}
128128
body {
129129
@apply bg-background text-foreground;
@@ -146,24 +146,6 @@ body {
146146
}
147147
}
148148

149-
/* Ensure AppKit connect button retains rounded style in production */
150-
appkit-button, appkit-button * {
151-
border-radius: 9999px !important; /* rounded-full */
152-
}
153-
154-
/* Prevent global outline/border rules from leaking into AppKit components */
155-
appkit-button *,
156-
.w3m-button * {
157-
outline: none;
158-
}
159-
160-
/* Avoid page background being dimmed incorrectly; rely on AppKit's own overlay */
161-
.w3m-modal,
162-
.w3m-overlay {
163-
backdrop-filter: blur(8px);
164-
z-index: 9999 !important;
165-
}
166-
167149

168150

169151
/* Custom animations for partner marquee */
@@ -274,3 +256,150 @@ appkit-button *,
274256
font-weight: 500 !important;
275257
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
276258
}
259+
260+
/* AppKit Connect Wallet Button Styles - compact rectangular blue button */
261+
appkit-button {
262+
border-radius: 20px !important;
263+
width: auto !important;
264+
height: 40px !important;
265+
min-width: 140px !important;
266+
min-height: 40px !important;
267+
padding: 8px 20px !important;
268+
display: inline-flex !important;
269+
align-items: center !important;
270+
justify-content: center !important;
271+
background: #3b82f6 !important;
272+
border: none !important;
273+
cursor: pointer !important;
274+
transition: all 0.15s ease !important;
275+
pointer-events: auto !important;
276+
font-size: 15px !important;
277+
font-weight: 600 !important;
278+
color: white !important;
279+
}
280+
281+
/* Hover/active apply to the full custom element */
282+
appkit-button:hover,
283+
appkit-button:active {
284+
background: #2563eb !important;
285+
transform: translateY(-1px) !important;
286+
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
287+
}
288+
289+
/* Ensure inner native button follows parent size and is interactive */
290+
appkit-button button,
291+
appkit-button > * {
292+
border-radius: 20px !important;
293+
width: 100% !important;
294+
height: 100% !important;
295+
background: transparent !important; /* inherit parent's background */
296+
border: none !important;
297+
color: inherit !important;
298+
font-size: inherit !important;
299+
font-weight: inherit !important;
300+
pointer-events: auto !important;
301+
}
302+
303+
/* Remove pseudo content if any */
304+
appkit-button::before {
305+
content: none !important;
306+
}
307+
308+
/* AppKit Modal Overlay */
309+
w3m-modal {
310+
z-index: 9999 !important;
311+
}
312+
313+
/* AppKit Modal Content - Dark Theme */
314+
315+
w3m-modal .w3m-modal {
316+
border-radius: 16px !important;
317+
background: #1a1a1a !important;
318+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
319+
border: 1px solid #333333 !important;
320+
}
321+
322+
/* Modal backdrop: keep page visible (no large black overlay) */
323+
w3m-modal::part(backdrop) {
324+
background: transparent !important;
325+
}
326+
327+
/* Modal container - dark theme but do not force entire modal subtree to that color */
328+
w3m-modal::part(container) {
329+
border-radius: 16px !important;
330+
background: #1a1a1a !important;
331+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
332+
max-width: 400px !important;
333+
width: 90vw !important;
334+
border: 1px solid #333333 !important;
335+
}
336+
337+
/* Limit dark styling to modal container and its known parts only so the page behind remains visible */
338+
w3m-modal::part(container),
339+
w3m-modal .w3m-modal {
340+
color: #ffffff !important;
341+
}
342+
343+
/* Wallet option buttons - Dark theme */
344+
w3m-modal ::part(wallet-button) {
345+
background: #2a2a2a !important;
346+
border: 1px solid #404040 !important;
347+
border-radius: 12px !important;
348+
transition: all 0.2s ease !important;
349+
color: #ffffff !important;
350+
}
351+
352+
w3m-modal ::part(wallet-button):hover {
353+
background: #333333 !important;
354+
border-color: #3b82f6 !important;
355+
}
356+
357+
/* Override any light theme styles */
358+
w3m-modal .w3m-header,
359+
w3m-modal .w3m-content,
360+
w3m-modal .w3m-footer {
361+
background: #1a1a1a !important;
362+
color: #ffffff !important;
363+
}
364+
365+
/* Search input styling */
366+
w3m-modal input {
367+
background: #2a2a2a !important;
368+
border: 1px solid #404040 !important;
369+
color: #ffffff !important;
370+
}
371+
372+
/* Close button */
373+
w3m-modal .w3m-close-button {
374+
color: #ffffff !important;
375+
}
376+
377+
/* Ensure AppKit buttons work properly */
378+
appkit-button, w3m-button, w3m-connect-button {
379+
pointer-events: auto !important;
380+
cursor: pointer !important;
381+
}
382+
383+
appkit-button *, w3m-button *, w3m-connect-button * {
384+
pointer-events: none !important;
385+
}
386+
387+
/* Additional AppKit modal fixes */
388+
w3m-modal, w3m-modal * {
389+
z-index: 9999 !important;
390+
}
391+
392+
/* Override AppKit CSS variables for dark theme */
393+
w3m-modal {
394+
--w3m-color-bg-1: #1a1a1a !important;
395+
--w3m-color-bg-2: #2a2a2a !important;
396+
--w3m-color-bg-3: #333333 !important;
397+
--w3m-color-fg-1: #ffffff !important;
398+
--w3m-color-fg-2: #e5e5e5 !important;
399+
--w3m-color-fg-3: #cccccc !important;
400+
--w3m-accent-color: #3b82f6 !important;
401+
--w3m-accent-fill-color: #ffffff !important;
402+
--w3m-border-radius-master: 16px !important;
403+
--w3m-border-radius-xs: 8px !important;
404+
--w3m-border-radius-sm: 12px !important;
405+
}

0 commit comments

Comments
 (0)