@osforms/react use a theme system built on top of FormTheme. You can customize colors, typography, border radius, and button style.
Default Theme
The default theme is dark, matching the osforms dashboard:FormTheme Reference
colors
fontFamily
Default:Inter, -apple-system, ...system-ui, sans-serif
Pass any valid CSS font-family string. The font itself is not loaded automatically — ensure it’s available in your app.
fontSize
borderRadius
buttonVariant
Applying Themes
Via OSForm prop
Pass a partial theme — only the properties you specify are overridden:
Via FormSchema
Themes can also be embedded in the form schema itself. TheOSForm theme prop overrides the schema theme: