Customize the appearance of OnchainKit’s components
mode
and theme
.
OnchainKitProvider
using config.appearance.theme
:
default
: Includes both light and dark modes.base
: Single mode only.cyberpunk
: Single mode only.hacker
: Single mode only.custom
: Single mode only.default
theme is applied automatically.
config.appearance.mode
property of the OnchainKitProvider
:
auto
: Automatically switches between light and dark mode based on the user’s OS preference.light
: Forces all components to use the light version of the theme.dark
: Forces all components to use the dark version of the theme.auto
mode will be applied by default.
-light
or -dark
suffix.