Creating a Theme
RelayKit UI can be fully themed using an intuitive set of theme tokens. You can choose to override all tokens or just a few to make the components match your application theme. You can view the full list of theme overrides here.Fonts
If you are overriding any fonts with custom fonts you need to configure the custom font in your application. For example if you’re using nextjs you can refer to this doc or if you’re pulling the fonts in via css you can refer to this doc.Light/Dark Mode
RelayKit UI has built-in support for light and dark mode themes. The components will automatically adapt their appearance based on the theme mode you specify. To control the theme mode, simply add thelight or dark class to your HTML container element:
Usage
Now that your theme is configured you’ll just need to pass it into theRelayKitProvider.