The Trustware widget ships with a default visual style, but you can adjust colors, border radius, and copy to fit your product. Customization happens at two levels: theDocumentation Index
Fetch the complete documentation index at: https://docs.trustware.io/llms.txt
Use this file to discover all available pages before exploring further.
theme and messages fields in TrustwareConfigOptions, and a handful of props directly on <TrustwareWidget>.
theme field
Thetheme field accepts a TrustwareWidgetTheme object. All six properties are optional — omit any that you want to keep at their default value.
Default theme
Theme properties
The primary accent color used for buttons, active states, and highlights.
Accepts any valid CSS color string.
The secondary accent color, used for hover states and supporting UI elements.
The widget’s background fill color.
The primary text color used for labels, amounts, and body copy inside the
widget.
The color applied to borders and dividers throughout the widget.
Border radius in pixels applied to cards, buttons, and input fields. Set to
0 for sharp corners or a larger value for a pill-shaped look.Example
Widget-level theme prop
<TrustwareWidget> accepts a theme prop that controls the light/dark mode context independently of the color values above. This is useful when your app manages a global color scheme.
Sets the color scheme context for the widget.
"system" follows the user’s
OS preference. Defaults to the host application’s ambient color scheme.showThemeToggle
When
true, a light/dark mode toggle is rendered inside the widget, letting
the user switch modes themselves. Defaults to true. Set to false when
your application owns the color scheme and you do not want users to override
it from the widget surface.messages field
Themessages field overrides the title and description text rendered at the top of the widget. Both properties are optional.
Default messages
Message properties
The heading shown at the top of the widget.
The subheading or descriptor shown beneath the title.
