Skip to content

Commit

Permalink
feat: add results and theming
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlm-devico committed Mar 14, 2024
1 parent ff8b45e commit 99f6e01
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions developers/rainbowkit-xdefi-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,28 @@ function MyApp({ Component, pageProps }: AppProps) {
}
```

### RainbowKit theming

Once we have set up our wallets list, it's time to pick a proper theme.
RainbowKit has prebuilt light, dark and midnight themes. We'll be using prebuilt dark theme in this guide. For further theme customizations please refer to [RainbowKit theming docs](https://www.rainbowkit.com/docs/theming).

```javascript
import {
darkTheme, // [!code ++]
} from "@rainbow-me/rainbowkit";
...
<RainbowKitProvider theme={darkTheme()}> // [!code ++]
<Component {...pageProps} />
</RainbowKitProvider>
...
```

### We're Done! Time to explore results

![Expected result](images/rainbowkit/rainbowkit_integration_result.jpg)

> Please note: If you have wallet already installed, it will be listed in "Installed" instead of "Recommended". Installed group appears automatically
### Additional resources

- [RainbowKit docs](https://www.rainbowkit.com/docs/)
Expand Down

0 comments on commit 99f6e01

Please sign in to comment.