UI Customization
This guide assumes you’re using Next.js, if you’re using a different framework or need more info checkout our full tailwind setup guide
Create two configuration files that will customize your authentication methods and UI styles.
Create your configuration files
- In your project root, create a
config.tsfile - In your project root, create a
tailwind.config.tsfile
Basic configuration example
Start with a basic configuration:
tailwind.config.ts
Important: If your tailwind.config.ts already contains any existing
config information, be sure to wrap it with withAccountKitUi as shown above.
Don’t replace your existing config - just wrap it!
Update your global.css to include the config:
Note: If still using Tailwind v3, skip this step as the
tailwind.config.ts file is used by default.
config.ts
Important: The chain you import (like arbitrumSepolia) must come from
the @account-kit/infra package, not from viem. Additionally, make sure
this chain is enabled in both your Alchemy app and Smart Wallets config policy
in the dashboard.
Note:
You can add an "external_wallets" auth method to your config to allow connecting existing external EOAs (such as MetaMask) using our built-in connectors and WalletConnect. Learn more here.
Customization
Customize both configuration files by visiting our demo app - use the interactive sandbox to explore different authentication methods and styling options. When ready, click ‘Code preview’ to export your customized configuration files.
You can also follow these links to learn more about using UI Components and theming.
Finally, to the last step: integration into the application.