ConnectKit Integration for Wallet Connection on Website

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1215
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1043
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    823
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Integrating ConnectKit for Wallet Connection on a Website

ConnectKit from Family is an alternative to RainbowKit with a focus on visual polish and accessibility. Stricter default design, built-in animations, ENS avatar support out of the box. Same stack: wagmi + viem + React.

Installation

npm install connectkit wagmi viem @tanstack/react-query

Basic Setup

// app/providers.tsx
'use client';
import { ConnectKitProvider, getDefaultConfig } from 'connectkit';
import { createConfig, WagmiProvider } from 'wagmi';
import { mainnet, polygon, optimism } from 'wagmi/chains';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

const config = createConfig(
  getDefaultConfig({
    chains: [mainnet, polygon, optimism],
    transports: {
      [mainnet.id]: http(process.env.ETH_RPC_URL!),
      [polygon.id]: http(process.env.POLYGON_RPC_URL!),
      [optimism.id]: http(process.env.OPTIMISM_RPC_URL!),
    },
    walletConnectProjectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID!,
    appName: 'MyApp',
    appDescription: 'DeFi platform',
    appUrl: 'https://myapp.com',
    appIcon: 'https://myapp.com/icon.png',
  }),
);

const queryClient = new QueryClient();

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <WagmiProvider config={config}>
      <QueryClientProvider client={queryClient}>
        <ConnectKitProvider>
          {children}
        </ConnectKitProvider>
      </QueryClientProvider>
    </WagmiProvider>
  );
}
import { ConnectKitButton } from 'connectkit';

export function Header() {
  return (
    <header>
      <ConnectKitButton />
    </header>
  );
}

Theme Customization

ConnectKit supports built-in themes and custom CSS variables:

// Built-in themes
<ConnectKitProvider theme="auto">      {/* follows system theme */}
<ConnectKitProvider theme="dark">
<ConnectKitProvider theme="light">
<ConnectKitProvider theme="retro">     {/* pixel style */}
<ConnectKitProvider theme="midnight">  {/* dark with blue accent */}
<ConnectKitProvider theme="web95">     {/* Windows 95 style */}

Custom variables via customTheme:

<ConnectKitProvider
  customTheme={{
    '--ck-font-family': '"Inter", sans-serif',
    '--ck-border-radius': '12px',
    '--ck-overlay-background': 'rgba(0,0,0,0.6)',
    '--ck-body-background': '#0f0f0f',
    '--ck-body-background-secondary': '#1a1a1a',
    '--ck-body-background-tertiary': '#252525',
    '--ck-body-color': '#ffffff',
    '--ck-body-color-muted': 'rgba(255,255,255,0.5)',
    '--ck-body-color-muted-hover': 'rgba(255,255,255,0.8)',
    '--ck-primary-button-background': '#6366f1',
    '--ck-primary-button-hover-background': '#818cf8',
    '--ck-primary-button-color': '#ffffff',
    '--ck-focus-color': '#6366f1',
    '--ck-connectbutton-background': '#1a1a1a',
    '--ck-connectbutton-hover-background': '#252525',
    '--ck-connectbutton-color': '#ffffff',
    '--ck-connectbutton-border-radius': '8px',
  }}
>

Custom Button

import { useModal } from 'connectkit';
import { useAccount } from 'wagmi';

export function CustomConnectButton() {
  const { openConnectModal } = useModal();
  const { address, isConnected } = useAccount();

  if (isConnected && address) {
    return (
      <WalletInfo address={address} />
    );
  }

  return (
    <button
      onClick={openConnectModal}
      className="rounded-xl bg-indigo-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500"
    >
      Connect Wallet
    </button>
  );
}

Provider Options

<ConnectKitProvider
  options={{
    // Show ETH balance next to address
    showBalance: true,
    // Show ENS name instead of address (vitalik.eth)
    truncateLongENSAddress: true,
    // Wallet display order
    walletConnectName: 'Other Wallets',
    // Disconnect button
    hideQuestionMarkCTA: false,
    // Disable WalletConnect QR code
    disableENSCaching: false,
    // Minimum balance to display
    minimumBalanceThreshold: '0.001',
    // Embed mode — no modal, embedded
    embedGoogleFonts: false,
  }}
>

Differences from RainbowKit

RainbowKit ConnectKit
Animations Basic Rich, smooth
Built-in themes 3 + dark/light 6 + custom CSS variables
Customization Theme object CSS variables
Headless API ConnectButton.Custom useModal hook
ENS avatars Yes Yes
WalletConnect v2 v2

Choice between them is a matter of taste. ConnectKit looks slightly more "product-like", RainbowKit is slightly more flexible in button customization.

Timeframe: installation with custom theme and custom button — half a day.