summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-09-19 16:44:44 -0700
committerMichael Hunteman <michael@huntm.net>2024-09-19 16:44:44 -0700
commit33b26d0f5e4e88c2f45b968608bd6893c9187173 (patch)
treeac3e8bdec4fc9262a1d835bb2d3bf5cd05c381af /client/src
parent23b2d7e472445a614aa27919fe676bb99816e19a (diff)
Use playwrite font
Diffstat (limited to 'client/src')
-rw-r--r--client/src/ThemeContextProvider.tsx35
1 files changed, 34 insertions, 1 deletions
diff --git a/client/src/ThemeContextProvider.tsx b/client/src/ThemeContextProvider.tsx
index b5972d7..1b2e3b4 100644
--- a/client/src/ThemeContextProvider.tsx
+++ b/client/src/ThemeContextProvider.tsx
@@ -45,7 +45,40 @@ function ThemeContextProvider({ children }: ThemeProviderProps) {
},
});
- const theme = useMemo(() => createTheme(getDesignTokens(mode)), [mode]);
+ const colorTheme = createTheme(getDesignTokens(mode));
+
+ const theme = useMemo(
+ () =>
+ createTheme({
+ ...colorTheme,
+ typography: {
+ fontFamily: ['Playwrite US Trad', 'cursive'].join(','),
+ button: {
+ textTransform: 'none',
+ },
+ body1: {
+ lineHeight: 1.8,
+ },
+ },
+ components: {
+ MuiInputBase: {
+ defaultProps: {
+ sx: {
+ fontFamily: 'Roboto, sans-serif',
+ },
+ },
+ },
+ MuiInputLabel: {
+ defaultProps: {
+ sx: {
+ fontFamily: 'Roboto, sans-serif',
+ },
+ },
+ },
+ },
+ }),
+ [mode]
+ );
return (
<ThemeContext.Provider value={{ toggleColorMode }}>