Skip to main content

The theme object

Pass design tokens on the theme object to override component styles. You can also override app-level CSS classes for broader layout and styling changes.
App.jsx
Pass the theme object on TrueForgeUI:
App.tsx

The token object

Override individual design tokens to change colors and other visual properties: sidebar, page background, popups, buttons, inputs, and the rest of the surfaces listed below. Set tokens separately for light and dark mode so both schemes stay consistent without per-component CSS.
The fastest way to try tokens is the UI Config App. Change colors in the preview, then copy the generated config into your app.
Token Object
Values above are an example brand override, not the built-in preset defaults.

All tokens

See Token naming for how each key maps to a CSS variable.

Token naming

SemanticTokens keys map directly to kebab-cased CSS variables. For example, primaryButtonBg maps to --primary-button-bg, and userMessageText maps to --user-message-text. The only exception is fontFamily, which maps to the --font-agent-ui CSS variable. To apply a brand primary color and font across the SDK, override the matching semantic tokens:
Those tokens map to CSS variables:
Changing a few semantic tokens updates the UI consistently without writing component-specific CSS.