@funkit/connect 9.7.1 → 9.7.2-next.1

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/__generated__/default_feature_gates.d.ts +1 -0
  3. package/dist/chunk-64NZSUGQ.js +368 -0
  4. package/dist/chunk-B2B6HDIE.js +238 -0
  5. package/dist/chunk-OQNN7EMQ.js +238 -0
  6. package/dist/chunk-S65TG73G.js +247 -0
  7. package/dist/chunk-VLAOBEJN.js +247 -0
  8. package/dist/clients/chunk-3LSYVQXK.js +289 -0
  9. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  10. package/dist/clients/chunk-V526Q43Z.js +271 -0
  11. package/dist/clients/fanatics.css +1 -1
  12. package/dist/clients/lighter.css +14393 -0
  13. package/dist/clients/lighter.d.ts +138 -0
  14. package/dist/clients/lighter.js +563 -0
  15. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
  16. package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
  17. package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
  18. package/dist/hooks/useTokenChain.d.ts +21 -0
  19. package/dist/index.css +10 -10
  20. package/dist/index.js +16 -8
  21. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
  22. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
  23. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
  24. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
  25. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
  26. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  27. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
  28. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
  29. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
  30. package/dist/modals/WithdrwalModal/types.d.ts +5 -0
  31. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  32. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/chunk-34HACM5U.js +110 -0
  36. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
  37. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
  38. package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +87 -0
  39. package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +69 -0
  40. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
  41. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
  42. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
  43. package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +218 -0
  44. package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +103 -0
  45. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
  46. package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +98 -0
  47. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
  48. package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +92 -0
  49. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
  50. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
  51. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
  52. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
  53. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
  54. package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +94 -0
  55. package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +93 -0
  56. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
  57. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
  58. package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +100 -0
  59. package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +70 -0
  60. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
  61. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +106 -0
  63. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
  64. package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +96 -0
  65. package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +95 -0
  66. package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +92 -0
  67. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
  68. package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +96 -0
  69. package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +99 -0
  70. package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +66 -0
  71. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  73. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/index.js +47 -47
  78. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  80. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  81. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  82. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  83. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  84. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  85. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  86. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  87. package/package.json +3 -3
@@ -0,0 +1,238 @@
1
+ "use client";
2
+ import {
3
+ baseTheme
4
+ } from "./chunk-64NZSUGQ.js";
5
+
6
+ // src/themes/darkTheme.ts
7
+ var accentColors = {
8
+ blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
9
+ green: { accentColor: "#66CC00", accentColorForeground: "#000" },
10
+ orange: { accentColor: "#F6851B", accentColorForeground: "#000" },
11
+ pink: { accentColor: "#FF7AB8", accentColorForeground: "#000" },
12
+ purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
13
+ red: { accentColor: "#F34126", accentColorForeground: "#FFF" },
14
+ white: { accentColor: "#FFF", accentColorForeground: "#000" }
15
+ };
16
+ var defaultAccentColor = accentColors.white;
17
+ var darkTheme = ({
18
+ accentColor = defaultAccentColor.accentColor,
19
+ accentColorForeground = defaultAccentColor.accentColorForeground,
20
+ customColors,
21
+ customShadows,
22
+ ...baseThemeOptions
23
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a bunch of ?? defaults
24
+ } = {}) => ({
25
+ ...baseTheme(baseThemeOptions),
26
+ colors: {
27
+ accentColor,
28
+ accentColorForeground,
29
+ actionButtonBorder: "rgba(255, 255, 255, 0.04)",
30
+ connectButtonBackground: "#000",
31
+ connectButtonBackgroundError: "#C60000",
32
+ connectButtonText: "#FFF",
33
+ connectButtonTextError: "#FFF",
34
+ connectionIndicator: "#30E000",
35
+ error: accentColors.red.accentColor,
36
+ errorBackground: "#F2E6E4",
37
+ errorBorder: "rgba(243, 65, 38, 0.2)",
38
+ generalBorder: "#292929",
39
+ // strokeColor in figma
40
+ generalBorderDim: "rgba(255, 255, 255, 0.04)",
41
+ menuItemBackground: "rgba(255, 255, 255, 0.03)",
42
+ selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
43
+ focusedOptionBorder: "#8C8C8C",
44
+ standby: "#F6851B",
45
+ success: "#66CC00",
46
+ delayedStatusIcon: customColors?.secondaryText ?? "#8C8C8C",
47
+ // backward compatibility
48
+ chainIconBorder: "#fff",
49
+ // FUNKIT COLORS
50
+ // modal backgrounds
51
+ modalBackdrop: "rgba(0, 0, 0, 0.2)",
52
+ modalBackground: "#000000",
53
+ modalBorder: "#292929",
54
+ modalTopbarIcon: "#FFF",
55
+ modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
56
+ modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#333333",
57
+ modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#333333",
58
+ modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(255, 255, 255, 0.35)",
59
+ offBackground: "#1F1F1F",
60
+ offBackgroundInverse: "#F2F2F2",
61
+ hoverState: "#333333",
62
+ lightStroke: "#333333",
63
+ mediumStroke: "#333333",
64
+ heavyStroke: "rgba(117, 117, 117, 0.40)",
65
+ strokeColor: "#333333",
66
+ //Text
67
+ primaryText: "#FFF",
68
+ secondaryText: "#8C8C8C",
69
+ tertiaryText: "rgba(255, 255, 255, 0.35)",
70
+ textSelection: "rgba(255, 255, 255, 0.10)",
71
+ selectedDropdownItemText: customColors?.primaryText ?? "#FFF",
72
+ copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
73
+ copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
74
+ copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
75
+ copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
76
+ copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
77
+ funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
78
+ funFeatureListBackgroundHover: customColors?.hoverState ?? "#333333",
79
+ funFeatureListBorderColor: "transparent",
80
+ funFeatureListBorderColorHover: "transparent",
81
+ selectedDropdownItemBackground: "transparent",
82
+ alwaysVisibleLabelBackgroundHover: "transparent",
83
+ // input
84
+ inputLabel: customColors?.primaryText ?? "#FFF",
85
+ inputBackground: "#000000",
86
+ inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
87
+ inputBorderBase: "#333333",
88
+ inputBorderHover: "#525252",
89
+ // tab
90
+ activeTabBorderColor: "#333333",
91
+ activeTabBackground: "#333333",
92
+ // button
93
+ actionColor: "#FFF",
94
+ actionColorHover: "rgba(255, 255, 255, 0.8)",
95
+ actionColorDisabled: "rgba(255, 255, 255, 0.65)",
96
+ buttonPrimary: accentColor,
97
+ buttonDisabled: "rgba(255, 255, 255, 0.20)",
98
+ buttonTextPrimary: "#000000",
99
+ buttonTextHover: "#000000",
100
+ buttonTextDisabled: "#000000",
101
+ buttonWarning: accentColors.red.accentColor,
102
+ buttonSuccess: "#2EA200",
103
+ transparent: "transparent",
104
+ buttonBackgroundTertiary: "#333333",
105
+ buttonBackgroundHoverTertiary: "#333333",
106
+ buttonBackgroundDisabledTertiary: "transparent",
107
+ buttonTextTertiary: "#FFF",
108
+ buttonTextDisabledTertiary: "rgba(255, 255, 255, 0.65)",
109
+ buttonBackground: "#FFF",
110
+ buttonBackgroundHover: "#f2f2f2",
111
+ buttonBackgroundPressed: "#FFF",
112
+ buttonBackgroundDisabled: "rgba(255, 255, 255, 0.65)",
113
+ buttonTextSecondaryDisabled: "rgba(255, 255, 255, 0.65)",
114
+ buttonTextSecondary: "#FFFFFF",
115
+ buttonIconBackgroundHover: "#333333",
116
+ buttonIconBackgroundPressed: "#333333",
117
+ buttonIconStroke: "rgba(255, 255, 255, 0.35)",
118
+ buttonBorderTertiary: "transparent",
119
+ buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
120
+ buttonFocusedOutline: "none",
121
+ buttonBorderGradient: "none",
122
+ buttonHoverBorderGradient: "none",
123
+ buttonDisabledBorderGradient: "none",
124
+ // TODO: Make common colors when refactoring the design system
125
+ inputAmountQuickOptionBaseBackground: "#1F1F1F",
126
+ inputAmountQuickOptionHoverBackground: "#333333",
127
+ inputAmountQuickOptionActiveBackground: "#333333",
128
+ inputAmountQuickOptionDisabledBackground: "#333333",
129
+ inputAmountQuickOptionBaseBorder: "#f2f2f2",
130
+ inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
131
+ inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
132
+ inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
133
+ inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
134
+ youPayYouReceiveBackground: "#000000",
135
+ // modalBackground
136
+ youPayYouReceiveBorder: "#333333",
137
+ // mediumStroke
138
+ youPayYouReceivePrimaryText: "#FFF",
139
+ // primaryText
140
+ youPayYouReceiveSecondaryText: "#8C8C8C",
141
+ // secondaryText
142
+ withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
143
+ withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
144
+ withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
145
+ // badges
146
+ badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
147
+ badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
148
+ badgeTextSuccess: "rgb(124, 242, 136)",
149
+ newBadgeBackground: "linear-gradient(180deg, rgba(57, 76, 56, 0.55) 0%, rgba(61, 81, 65, 0.55) 100%)",
150
+ newBadgeBorder: "rgba(122, 221, 122, 0.3)",
151
+ newBadgeText: "#A4FF9A",
152
+ approvedBadgeBackground: "linear-gradient(180deg, rgba(236, 255, 234, 0.20) 0%, rgba(228, 255, 233, 0.20) 100%)",
153
+ approvedBadgeBorder: "rgba(109, 216, 109, 0.08)",
154
+ approvedBadgeText: "#8FFFA9",
155
+ failedBadgeBackground: "rgba(255, 61, 61, 0.18)",
156
+ failedBadgeBorder: "rgba(255, 255, 255, 0.10)",
157
+ failedBadgeText: "#F88877",
158
+ announceGradientFrom: "#AAAAAA",
159
+ announceGradientTo: "#BEBEBE",
160
+ fiatPendingGradientFrom: "#AAAAAA",
161
+ fiatPendingGradientTo: "#BEBEBE",
162
+ fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.30)",
163
+ fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.30)",
164
+ fiatStatusIconBorder: "rgba(255, 255, 255, 0.06)",
165
+ fiatAccountIconFill: "#002F5E",
166
+ fiatAccountGradientFrom: "#3A82FE",
167
+ fiatAccountGradientTo: "#73A7FF",
168
+ modalHeaderDivider: "#333333",
169
+ // lightStroke
170
+ modalFooterDivider: "#333333",
171
+ // lightStroke
172
+ spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
173
+ // 30% buttonTextPrimary
174
+ spinnerIndicator: customColors?.primaryText ?? "#000",
175
+ // 100% buttonTextPrimary
176
+ spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
177
+ // 30% buttonTextPrimary
178
+ spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
179
+ // 100% buttonTextPrimary
180
+ // Override colors
181
+ ...customColors || {},
182
+ // option Boxes
183
+ optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
184
+ // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
185
+ optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
186
+ optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
187
+ optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
188
+ optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
189
+ optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
190
+ dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
191
+ openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
192
+ dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
193
+ dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
+ dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
195
+ dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
196
+ dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
197
+ // primaryText
198
+ txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
199
+ txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
200
+ counterRingColor: customColors?.counterRingColor ?? accentColor,
201
+ cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
202
+ cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
203
+ },
204
+ shadows: {
205
+ connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
206
+ dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
207
+ selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
208
+ selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
209
+ dropdown: "0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 2px 6px rgba(0, 0, 0, 0.03), 0px 4px 42px rgba(0, 0, 0, 0.06)",
210
+ notification: "0px 0px 0px 1px rgba(255, 255, 255, 0.20), 0px 2px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 42px 0px rgba(0, 0, 0, 0.06)",
211
+ qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
212
+ buttonShadow: "none",
213
+ buttonShadowTertiary: "none",
214
+ buttonHoverShadow: "none",
215
+ buttonHoverShadowTertiary: "none",
216
+ buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
217
+ buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
218
+ buttonDisabledShadow: "none",
219
+ buttonDisabledShadowTertiary: "none",
220
+ buttonInnerShadow: "none",
221
+ buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
222
+ buttonFocusedInnerShadow: "none",
223
+ buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
224
+ buttonHoverInnerShadow: "none",
225
+ buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
226
+ buttonDisabledInnerShadow: "none",
227
+ buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
228
+ selectedDropdownItem: "none",
229
+ // Override shadows
230
+ ...customShadows || {}
231
+ },
232
+ moonpayTheme: "dark"
233
+ });
234
+ darkTheme.accentColors = accentColors;
235
+
236
+ export {
237
+ darkTheme
238
+ };
@@ -0,0 +1,247 @@
1
+ "use client";
2
+ import {
3
+ baseTheme
4
+ } from "./chunk-O35RTEEF.js";
5
+
6
+ // src/themes/darkTheme.ts
7
+ var accentColors = {
8
+ blue: { accentColor: "#3898FF", accentColorForeground: "#FFF" },
9
+ green: { accentColor: "#66CC00", accentColorForeground: "#000" },
10
+ orange: { accentColor: "#F6851B", accentColorForeground: "#000" },
11
+ pink: { accentColor: "#FF7AB8", accentColorForeground: "#000" },
12
+ purple: { accentColor: "#7A70FF", accentColorForeground: "#FFF" },
13
+ red: { accentColor: "#F34126", accentColorForeground: "#FFF" },
14
+ white: { accentColor: "#FFF", accentColorForeground: "#000" }
15
+ };
16
+ var defaultAccentColor = accentColors.white;
17
+ var darkTheme = ({
18
+ accentColor = defaultAccentColor.accentColor,
19
+ accentColorForeground = defaultAccentColor.accentColorForeground,
20
+ customColors,
21
+ customShadows,
22
+ ...baseThemeOptions
23
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: just a bunch of ?? defaults
24
+ } = {}) => ({
25
+ ...baseTheme(baseThemeOptions),
26
+ colors: {
27
+ accentColor,
28
+ accentColorForeground,
29
+ actionButtonBorder: "rgba(255, 255, 255, 0.04)",
30
+ connectButtonBackground: "#000",
31
+ connectButtonBackgroundError: "#C60000",
32
+ connectButtonText: "#FFF",
33
+ connectButtonTextError: "#FFF",
34
+ connectionIndicator: "#30E000",
35
+ error: accentColors.red.accentColor,
36
+ errorBackground: "#F2E6E4",
37
+ errorBorder: "rgba(243, 65, 38, 0.2)",
38
+ generalBorder: "#292929",
39
+ // strokeColor in figma
40
+ generalBorderDim: "rgba(255, 255, 255, 0.04)",
41
+ menuItemBackground: "rgba(255, 255, 255, 0.03)",
42
+ selectedOptionBorder: "rgba(224, 232, 255, 0.1)",
43
+ focusedOptionBorder: "#8C8C8C",
44
+ standby: "#F6851B",
45
+ success: "#66CC00",
46
+ delayedStatusIcon: customColors?.secondaryText ?? "#8C8C8C",
47
+ // backward compatibility
48
+ chainIconBorder: "#fff",
49
+ // FUNKIT COLORS
50
+ // modal backgrounds
51
+ modalBackdrop: "rgba(0, 0, 0, 0.2)",
52
+ modalBackground: "#000000",
53
+ modalBorder: "#292929",
54
+ modalTopbarIcon: "#FFF",
55
+ modalTopbarIconBackground: customColors?.modalTopbarIconBackground ?? "transparent",
56
+ modalTopbarIconBackgroundHover: customColors?.modalTopbarIconBackgroundHover ?? customColors?.buttonIconBackgroundHover ?? "#333333",
57
+ modalTopbarIconBackgroundPressed: customColors?.modalTopbarIconBackgroundPressed ?? customColors?.buttonIconBackgroundPressed ?? "#333333",
58
+ modalTopbarIconStroke: customColors?.modalTopbarIconStroke ?? customColors?.buttonIconStroke ?? "rgba(255, 255, 255, 0.35)",
59
+ offBackground: "#1F1F1F",
60
+ offBackgroundInverse: "#F2F2F2",
61
+ hoverState: "#333333",
62
+ lightStroke: "#333333",
63
+ mediumStroke: "#333333",
64
+ heavyStroke: "rgba(117, 117, 117, 0.40)",
65
+ strokeColor: "#333333",
66
+ //Text
67
+ primaryText: "#FFF",
68
+ secondaryText: "#8C8C8C",
69
+ tertiaryText: "rgba(255, 255, 255, 0.35)",
70
+ textSelection: "rgba(255, 255, 255, 0.10)",
71
+ selectedDropdownItemText: customColors?.primaryText ?? "#FFF",
72
+ copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
73
+ copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
74
+ copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
75
+ useConnectedBackgroundBase: customColors?.mediumStroke ?? "#333333",
76
+ useConnectedBackgroundHover: customColors?.mediumStroke ?? "#333333",
77
+ copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
78
+ copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
79
+ funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
80
+ funFeatureListBackgroundHover: customColors?.hoverState ?? "#333333",
81
+ funFeatureListBorderColor: "transparent",
82
+ funFeatureListBorderColorHover: "transparent",
83
+ selectedDropdownItemBackground: "transparent",
84
+ alwaysVisibleLabelBackgroundHover: "transparent",
85
+ // input
86
+ inputLabel: customColors?.primaryText ?? "#FFF",
87
+ inputBackground: "#000000",
88
+ inputBackgroundHover: customColors?.offBackground ?? "#1F1F1F",
89
+ inputBorderBase: "#333333",
90
+ inputBorderHover: "#525252",
91
+ // tab
92
+ activeTabBorderColor: "#333333",
93
+ activeTabBackground: "#333333",
94
+ inactiveTabBorderColor: "transparent",
95
+ inactiveTabBackgroundBase: "transparent",
96
+ inactiveTabBackgroundHover: "transparent",
97
+ inactiveTabBackgroundActive: "transparent",
98
+ activeTabText: customColors?.primaryText ?? "#FFF",
99
+ inactiveTabTextBase: customColors?.secondaryText ?? "#8C8C8C",
100
+ inactiveTabHover: customColors?.primaryText ?? "#FFF",
101
+ // button
102
+ actionColor: "#FFF",
103
+ actionColorHover: "rgba(255, 255, 255, 0.8)",
104
+ actionColorDisabled: "rgba(255, 255, 255, 0.65)",
105
+ buttonPrimary: accentColor,
106
+ buttonDisabled: "rgba(255, 255, 255, 0.20)",
107
+ buttonTextPrimary: "#000000",
108
+ buttonTextHover: "#000000",
109
+ buttonTextDisabled: "#000000",
110
+ buttonWarning: accentColors.red.accentColor,
111
+ buttonSuccess: "#2EA200",
112
+ transparent: "transparent",
113
+ buttonBackgroundTertiary: "#333333",
114
+ buttonBackgroundHoverTertiary: "#333333",
115
+ buttonBackgroundDisabledTertiary: "transparent",
116
+ buttonTextTertiary: "#FFF",
117
+ buttonTextDisabledTertiary: "rgba(255, 255, 255, 0.65)",
118
+ buttonBackground: "#FFF",
119
+ buttonBackgroundHover: "#f2f2f2",
120
+ buttonBackgroundPressed: "#FFF",
121
+ buttonBackgroundDisabled: "rgba(255, 255, 255, 0.65)",
122
+ buttonTextSecondaryDisabled: "rgba(255, 255, 255, 0.65)",
123
+ buttonTextSecondary: "#FFFFFF",
124
+ buttonIconBackgroundHover: "#333333",
125
+ buttonIconBackgroundPressed: "#333333",
126
+ buttonIconStroke: "rgba(255, 255, 255, 0.35)",
127
+ buttonBorderTertiary: "transparent",
128
+ buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
129
+ buttonFocusedOutline: "none",
130
+ buttonBorderGradient: "none",
131
+ buttonHoverBorderGradient: "none",
132
+ buttonDisabledBorderGradient: "none",
133
+ // TODO: Make common colors when refactoring the design system
134
+ inputAmountQuickOptionBaseBackground: "#1F1F1F",
135
+ inputAmountQuickOptionHoverBackground: "#333333",
136
+ inputAmountQuickOptionActiveBackground: "#333333",
137
+ inputAmountQuickOptionDisabledBackground: "#333333",
138
+ inputAmountQuickOptionBaseBorder: "#f2f2f2",
139
+ inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
140
+ inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
141
+ inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
142
+ inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
143
+ youPayYouReceiveBackground: "#000000",
144
+ // modalBackground
145
+ youPayYouReceiveBorder: "#333333",
146
+ // mediumStroke
147
+ youPayYouReceivePrimaryText: "#FFF",
148
+ // primaryText
149
+ youPayYouReceiveSecondaryText: "#8C8C8C",
150
+ // secondaryText
151
+ withdrawalYouWillReceiveLabel: customColors?.withdrawalYouWillReceiveLabel ?? customColors?.primaryText ?? "#FFF",
152
+ withdrawalYouWillReceiveValueCrypto: customColors?.withdrawalYouWillReceiveValueCrypto ?? customColors?.primaryText ?? "#FFF",
153
+ withdrawalYouWillReceiveValueUsd: customColors?.withdrawalYouWillReceiveValueUsd ?? customColors?.secondaryText ?? "#8C8C8C",
154
+ // badges
155
+ badgeBackgroundSuccess: "rgba(124, 242, 136, 0.1)",
156
+ badgeBorderSuccess: "rgba(124, 242, 136, 0.2)",
157
+ badgeTextSuccess: "rgb(124, 242, 136)",
158
+ newBadgeBackground: "linear-gradient(180deg, rgba(57, 76, 56, 0.55) 0%, rgba(61, 81, 65, 0.55) 100%)",
159
+ newBadgeBorder: "rgba(122, 221, 122, 0.3)",
160
+ newBadgeText: "#A4FF9A",
161
+ approvedBadgeBackground: "linear-gradient(180deg, rgba(236, 255, 234, 0.20) 0%, rgba(228, 255, 233, 0.20) 100%)",
162
+ approvedBadgeBorder: "rgba(109, 216, 109, 0.08)",
163
+ approvedBadgeText: "#8FFFA9",
164
+ failedBadgeBackground: "rgba(255, 61, 61, 0.18)",
165
+ failedBadgeBorder: "rgba(255, 255, 255, 0.10)",
166
+ failedBadgeText: "#F88877",
167
+ announceGradientFrom: "#AAAAAA",
168
+ announceGradientTo: "#BEBEBE",
169
+ fiatPendingGradientFrom: "#AAAAAA",
170
+ fiatPendingGradientTo: "#BEBEBE",
171
+ fiatSuccessBackgroundFill: "rgba(102, 204, 0, 0.30)",
172
+ fiatFailedBackgroundFill: "rgba(255, 61, 61, 0.30)",
173
+ fiatStatusIconBorder: "rgba(255, 255, 255, 0.06)",
174
+ fiatAccountIconFill: "#002F5E",
175
+ fiatAccountGradientFrom: "#3A82FE",
176
+ fiatAccountGradientTo: "#73A7FF",
177
+ modalHeaderDivider: "#333333",
178
+ // lightStroke
179
+ modalFooterDivider: "#333333",
180
+ // lightStroke
181
+ spinnerBackground: customColors?.mediumStroke ?? "rgba(0, 0, 0, 0.3)",
182
+ // 30% buttonTextPrimary
183
+ spinnerIndicator: customColors?.primaryText ?? "#000",
184
+ // 100% buttonTextPrimary
185
+ spinnerBackgroundVerifyAccount: "rgba(0, 0, 0, 0.3)",
186
+ // 30% buttonTextPrimary
187
+ spinnerIndicatorVerifyAccount: customColors?.primaryText ?? "#000",
188
+ // 100% buttonTextPrimary
189
+ // Override colors
190
+ ...customColors || {},
191
+ // option Boxes
192
+ optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
193
+ // keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
194
+ optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
195
+ optionBoxBorderBase: customColors?.optionBoxBorderBase ?? customColors?.mediumStroke ?? "#333333",
196
+ optionBoxBorderHover: customColors?.optionBoxBorderHover ?? customColors?.mediumStroke ?? "#333333",
197
+ optionBoxDefaultModeNotActiveBorderBase: customColors?.optionBoxDefaultModeNotActiveBorderBase ?? "transparent",
198
+ optionBoxDefaultModeNotActiveBorderHover: customColors?.optionBoxDefaultModeNotActiveBorderHover ?? "transparent",
199
+ dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
200
+ openDropdownBackgroundColor: customColors?.openDropdownBackgroundColor ?? customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
201
+ dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
202
+ dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
203
+ dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
204
+ dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
205
+ dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
206
+ // primaryText
207
+ txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
208
+ txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
209
+ counterRingColor: customColors?.counterRingColor ?? accentColor,
210
+ cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
211
+ cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
212
+ },
213
+ shadows: {
214
+ connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
215
+ dialog: "0px 8px 32px rgba(0, 0, 0, 0.32)",
216
+ selectedOption: "0px 2px 6px rgba(0, 0, 0, 0.24)",
217
+ selectedWallet: "0px 2px 6px rgba(0, 0, 0, 0.24)",
218
+ dropdown: "0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 2px 6px rgba(0, 0, 0, 0.03), 0px 4px 42px rgba(0, 0, 0, 0.06)",
219
+ notification: "0px 0px 0px 1px rgba(255, 255, 255, 0.20), 0px 2px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 42px 0px rgba(0, 0, 0, 0.06)",
220
+ qrCode: "0px 0px 0px 1px rgba(255, 255, 255, 0.16)",
221
+ buttonShadow: "none",
222
+ buttonShadowTertiary: "none",
223
+ buttonHoverShadow: "none",
224
+ buttonHoverShadowTertiary: "none",
225
+ buttonFocusedShadow: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
226
+ buttonFocusedShadowTertiary: "0px 0px 0px 2px rgba(255, 255, 255, 0.25)",
227
+ buttonDisabledShadow: "none",
228
+ buttonDisabledShadowTertiary: "none",
229
+ buttonInnerShadow: "none",
230
+ buttonInnerShadowTertiary: customShadows?.buttonInnerShadow ?? "none",
231
+ buttonFocusedInnerShadow: "none",
232
+ buttonFocusedInnerShadowTertiary: customShadows?.buttonFocusedInnerShadow ?? "none",
233
+ buttonHoverInnerShadow: "none",
234
+ buttonHoverInnerShadowTertiary: customShadows?.buttonHoverInnerShadow ?? "none",
235
+ buttonDisabledInnerShadow: "none",
236
+ buttonDisabledInnerShadowTertiary: customShadows?.buttonDisabledInnerShadow ?? "none",
237
+ selectedDropdownItem: "none",
238
+ // Override shadows
239
+ ...customShadows || {}
240
+ },
241
+ moonpayTheme: "dark"
242
+ });
243
+ darkTheme.accentColors = accentColors;
244
+
245
+ export {
246
+ darkTheme
247
+ };