Skip to content

Playground

Adjust the controls to see how the modal looks with your configuration. The code snippet below updates automatically.

INFO

The playground uses demo mode — no real wallet connection. Wallets are shown as empty slots to demonstrate layout and theming.

Want more control? 🎨 Open Theme Builder → — full-page tool with presets, desktop/mobile preview, and live modal preview.

Generated config
const modal = new WalletModal({
  manager,
})

Applying your config

Copy the generated snippet and pass it to WalletModal:

ts
import { WalletManager } from "@xrpl-wallet-kit/core";
import { createGemWalletAdapter } from "@xrpl-wallet-kit/adapter-gemwallet";
import { WalletModal } from "@xrpl-wallet-kit/ui";

const manager = new WalletManager({
  adapters: [createGemWalletAdapter()],
  network: XRPL_MAINNET,
});

// Paste your config from the playground above:
const modal = new WalletModal({
  manager,
  layout: "grid",
  theme: {
    accent: "#7c3aed",
    radius: "20px",
  },
});

Theme tokens

All theme properties are optional. Unset properties fall back to the defaults shown below:

PropertyLight defaultDark defaultDescription
mode"auto""light" / "dark" / "auto"
accent#2563eb#3b82f6Primary actions, active states
background#ffffff#0f172aModal background
foreground#0f172a#f1f5f9Primary text
muted#64748b#94a3b8Secondary text
surface#f8fafc#1e293bWallet card background
surfaceHover#f1f5f9#334155Wallet card hover
border#e2e8f0rgba(255,255,255,.08)Borders
overlayrgba(0,0,0,0.5)rgba(0,0,0,0.7)Backdrop
radius"16px"Modal corner radius
walletRadius"12px"Wallet card radius
shadow0 20px 60px rgba(0,0,0,.12)Modal drop shadow
fontFamilysystem-ui, sans-serifFont stack

See Theming for the full guide.

Released under the MIT License.