Skip to main content
TradeWidget supports the following appearance props:
  • theme
  • vars
  • className
  • style

Built-in themes

Theme defaults:
  • TradeWidget: "dark"

Override theme variables

Use vars to override the widget’s CSS variables.
The vars object supports these fields: For TradeWidget, the main widget surfaces stay square by default. Set radius only when you want rounded panels. Use actionButtonRadius when you want to round the main bottom CTA independently. The bundled themes use Roboto Mono and the stylesheet imports that font from Google Fonts. If you want to keep typography fully local to your app, override fontFamily. If you use a non-system font, load that font in the host app before passing it to the widget.

Powered by Delora label

TradeWidget shows a theme-aware Powered by Delora label below the widget by default. The white artwork is used with the dark theme and the black artwork is used with the light theme. Selecting the label opens https://delora.build/ in a new tab. Use poweredByDeloraPosition to align the label:
Supported positions are:
  • "left"
  • "center" (default)
  • "right"
To remove the label entirely, set:

Use host styling props

className and style are applied to the widget root.
style is merged after the generated CSS variables, so it is the last inline layer applied to the root element.

Style isolation

The widget does not use Shadow DOM. Instead, it relies on scoped CSS:
  • all widget styles live under [data-delora-widget-root]
  • the package does not ship Tailwind preflight
  • the widget sets its own typography and box model under the scoped root
This greatly reduces leakage between the host app and the widget, but extreme global host rules can still affect embedded content.