Skip to main content
@osforms/react exposes the full FormTheme type for TypeScript consumers. Theme props are merged with the schema theme and the default dark theme.

FormTheme

Priority

Theme values are resolved in this order (highest to lowest):
  1. OSForm theme prop
  2. FormSchema.theme
  3. Default dark theme

Passing themes

Only the properties you specify are overridden. All others fall back to the schema theme or default.

Light theme example

Custom fonts

Set fontFamily to any CSS font-family string. The SDK does not load fonts — ensure the font is loaded in your app (e.g., via Google Fonts or next/font):

ConversationalRenderer and ClassicRenderer

When using the low-level renderers directly, pass a resolved theme from resolveTheme:
For custom renderer patterns, see Hooks. For a full reference of theme options, see Core / Theming.