Programmatic Customization
Particle Wallet can only currently be customized through strictly set parameters, either within the path of https://wallet.particle.network, or within the configuration of Particle Authkit or Particle Auth Core (which would translate to the in-UI modal rather than a redirect such as is the case with https://wallet.particle.network).customStyle
takes the following parameters, all of which impact the appearance of the wallet modal:
JavaScript
ModeStyle
object provides a flexible way to customize the look and feel of the wallet modal and transaction popups. You can tailor the interface to match your brand by adjusting the following properties:
Particle Connect
To customize the wallet modal in Particle Connect, you need to include thecustomStyle
object within the plugins
array in the ConnectKitProvider
configuration.
ConnectKit.tsx
Particle Authkit
Customizing Particle Wallet through configuration within Particle Autkit can be done within the initialization ofAuthCoreContextProvider
from @particle-network/authkit
. Within this component, you’ll need to head into the customStyle
object within the wallet
parameter on options
.
With this in mind, take a look at the below example for further insight into what a complete utilization of most of the above parameters looks like (example of a configuration for customStyle
):
JavaScript


Try out an interactive demo showcasing custom styles.
Customizing the Wallet Entry Point
Additionaly, you can tailor the location in which the embedded wallet interface will open; in doing so, you can create a custom Open Wallet button or merely alter the position of the default Particle Network button.Find a full Next.js demo in the Customizing Wallet Position repository.
Option 1: Alternative Position for Default Button
If you prefer to keep the default button responsible for opening the embedded wallet (circular button with the Particle Network logo, in the bottom right corner by default), you have the option of altering where on the page it’ll sit. To do this, you’ll need to alter thewallet
property of AuthCoreContextProvider
(from Particle Auth) and designate a position through entryPosition
, which takes EntryPosition
from @particle-network/wallet
.
You have the choice between opening the wallet in the bottom right (EntryPosition.BR
), bottom left (EntryPosition.BL
), top right (EntryPosition.TR
), or top left (EntryPosition.TL
).
Option 2: Custom Wallet Entry Point with openWallet()
TheopenWallet()
method imported from useAuthCore()
triggers the opening of the wallet modal, independent from the default button referenced above.
You can create your own custom wallet entry, such as a button labeled Open Wallet. When clicked, this button will trigger the modal using the openWallet()
method.
Set the
visible
property to false
in AuthCoreContextProvider
if you want to hide the default Particle Button.