WalletConnect / web-examples

Wallet and dapp examples implementing WalletConnect v2
https://walletconnect.com
Apache License 2.0
360 stars 319 forks source link

Unable to style the connect button in the Svelte web example #587

Closed 612crypto closed 2 months ago

612crypto commented 2 months ago

I am using the Svelte web example as a starting point. I am trying to style the connect button, but I can't seem to figure it out.

I tried using the themeVariables option found here. I added this to the code in /src/lib/web3modal.ts, but it doesn't seem to have any effect (the button remains the default blue).

createWeb3Modal({
    wagmiConfig,
    projectId,
    themeMode: 'dark',
    themeVariables: {
        '--wcm-font-family': 'Roboto, sans-serif',
        '--wcm-accent-color': '#FFD700'
    }
    featuredWalletIds: [],
    enableAnalytics: true,
    customWallets
})

Any ideas?

glitch-txs commented 2 months ago

This is an issue in the Web3Modal SDK, please open an issue there