diff options
-rw-r--r-- | client/src/ThemeContextProvider.tsx | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/client/src/ThemeContextProvider.tsx b/client/src/ThemeContextProvider.tsx index 6aedc35..5e1e2e8 100644 --- a/client/src/ThemeContextProvider.tsx +++ b/client/src/ThemeContextProvider.tsx @@ -47,6 +47,12 @@ function ThemeContextProvider({ children }: ThemeProviderProps) { const colorTheme = createTheme(getDesignTokens(mode)); + const roboto = { + sx: { + fontFamily: 'Roboto, sans-serif', + }, + }; + const theme = useMemo( () => createTheme({ @@ -62,25 +68,16 @@ function ThemeContextProvider({ children }: ThemeProviderProps) { }, components: { MuiInputBase: { - defaultProps: { - sx: { - fontFamily: 'Roboto, sans-serif', - }, - }, + defaultProps: roboto, }, MuiInputLabel: { - defaultProps: { - sx: { - fontFamily: 'Roboto, sans-serif', - }, - }, + defaultProps: roboto, }, MuiAlert: { - defaultProps: { - sx: { - fontFamily: 'Roboto, sans-serif', - }, - }, + defaultProps: roboto, + }, + MuiFormHelperText: { + defaultProps: roboto, }, }, }), |