Skip to content

themeFromMui()

function themeFromMui(mui, overrides?): ArianaTheme;

Builds a theme from a Material UI theme, so the report UI follows your application’s palette, dark mode, radius and font:

const muiTheme = useTheme();
<ReportDesigner theme={themeFromMui(muiTheme)} />

No MUI dependency is needed: any object with the same shape works.

Parameter Type
mui MuiThemeLike
overrides ArianaTheme

ArianaTheme