From 7ccca5ca18200388d10fca33a1d7095a0abfcd36 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 21 Sep 2024 11:59:00 -0700 Subject: Use roboto font for helper text --- client/src/ThemeContextProvider.tsx | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'client/src/ThemeContextProvider.tsx') 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, }, }, }), -- cgit v1.2.3