Customise the UI
We have released v1.0.0 of Elements with an improved UX and developer API. We recommend you to use v1.x. Here's the migration guide for v0.x users.
Want to change the look and feel of the components? No problem! We have built a theming system that allows you to customise the look and feel of the components to match your brand and dApp.
Theming
The Liquidity
component accepts a theme prop. We provide a dark and a light theme out of the box. You can also pass in your own theme object for a custom look!
Modifying Existing Themes
We export dark and light themes you can use.
Custom Theme
You can even create your own theme from scratch.
Theming For Individual Tabs
When you're using individual tabs, you will need to use the theme provider and pass in the theme prop there.
The ThemeContextProvider
declares CSS Custom Properties for theming, on the root element of the DOM. If you want to change where the custom properties are defined, you can pass in a customStylesParentSelector
prop as follows -
Please note, the
customStylesParentSelector
prop accepts any valid CSS Selector
Last updated