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 previews wallet names and logos without connecting or signing. Controls offer Auto, List, Card and Icon. Auto starts with List and switches to Card when the modal list would overflow; the SDK default remains List.

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,
  layout: "auto",
})

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: "mainnet",
});

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

Theme tokens ​

All theme properties are optional. Use themeMode on constructors or ui.mode on the client; mode is not a theme token. Common defaults are shown below; the Theming guide is the full reference.

PropertyLight defaultDark defaultDescription
accent#0078ae#4aa3ffPrimary actions, active states
background#fbfcff#111827Modal background
foreground#111827#f8fafcPrimary text
muted#64748b#94a3b8Secondary text
surface#f3f7fb#1f2937Wallet card background
surfaceHover#edf3f8#263244Wallet card hover
borderrgba(17,24,39,.08)rgba(248,250,252,.10)Borders
overlayrgba(15,23,42,.46)rgba(2,6,23,.72)Backdrop
radius"14px""14px"Modal corner radius
walletRadius"10px""10px"Wallet card radius

See Theming for the full guide.

For chain and wallet selection, use Theme Builder. Share Theme Builder for Xahau to open it with Xahau selected. Wallet preview selection is not a declaration of provider capabilities; see Adapters Overview.

Released under the MIT License.