Skip to main content

Recommended: JavaScript SDK with React Hooks

For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.
The Dynamic SDK allows you to customize the theme via CSS variables. We recommend setting these CSS variables in your host site by targeting the dynamic-shadow-dom class. Here is an example of a custom theme done via CSS variables and the code used below:

Theme variables

Text variables

Wallet list variables

Connect button variables

Other variables

If you wish to customize the UI even more, we recommend using CSS overrides.
Last modified on June 25, 2026