- Changing the default styles of the root and part components,
- Using design tokens (CSS variables aka. custom properties) to change colors, fonts, and other properties,
- Replacing them entirely with your own custom elements.
Changing the default styles
As you would with any other HTML element, you can simply add your own styles to the root and part components. For example, you can make balances more uniform:Using design tokens
All design tokens are documented in the Storybook. All design tokens have default values, but you can override them as needed::root
sets them for your entire application, but they can also be set on
every single CSS selector you can come up with.
Replacing components
Once a custom element has been registered, there is no way to unregister or override it. Thus, theCosmosComponents
class lets you decide which components you wish to use and which you wish to
replace with your own.
cosmos-user-address
builds upon
cosmos-address
).
All attributes are documented in the Storybook.