diff options
author | Michael Hunteman <michael@huntm.net> | 2024-09-21 11:59:00 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-09-21 11:59:00 -0700 |
commit | 7ccca5ca18200388d10fca33a1d7095a0abfcd36 (patch) | |
tree | f3b348fc143185cbd3d6fc3bbef5a0093956f041 /client/src | |
parent | 2133253836de428e58b4ba1c9b7e863485b6b870 (diff) |
Use roboto font for helper text
Diffstat (limited to 'client/src')
-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, }, }, }), |