tailwindcss
.
1
Use default OnchainKit's style
You can use the default styles without any customization.
Just place this at the top of your application’s entry point to have the components work out of the box.
2
Tailwind CSS Config
Depending on your dark mode setup, you may have to add
safelist: ['dark']
to your Tailwind config.3
Toggling light / dark mode
There are many ways to handle color mode.In OnchainKit, toggling color mode works by adding / removing class name
dark
to the root html tag.4
Colorscheme override
To override default colorscheme, you need to modify the following css variables: