TradeWidget supports the following appearance props:
themevarsclassNamestyle
Built-in themes
TradeWidget:"dark"
Override theme variables
Usevars to override the widget’s CSS variables.
vars object supports these fields:
| Field | Description |
|---|---|
bg | Root background color |
fg | Primary text color |
accent | Main interactive accent |
border | Border color |
muted | Muted text and icon color |
surface | Main surface color |
surfaceAlt | Secondary surface color |
surfaceHover | Hover surface color |
textSubtle | Subtle text and placeholder color |
accentHover | Hover state for accent styling |
success | Success color |
danger | Error or danger color |
overlay | Overlay tint used in layered UI |
modalBackdrop | Full-screen modal scrim color |
shadow | Box shadow token for elevated surfaces |
radius | Shared border radius token |
fontFamily | Root font family |
fontSize | Root font size |
lineHeight | Root line height |
letterSpacing | Root letter spacing |
Roboto Mono and the stylesheet imports that font from Google Fonts. If you want to keep typography fully local to your app, override fontFamily.
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

