From ee229387d7715ee9e78de618afd20a5f436d35af Mon Sep 17 00:00:00 2001 From: nflnkr Date: Mon, 20 Mar 2023 18:24:54 +0300 Subject: [PATCH] refactor, fix font --- src/theme.ts | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/theme.ts b/src/theme.ts index fb2194c..e53ecd1 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -1,5 +1,5 @@ import { Theme } from '@mui/material/styles'; -import {createTheme, PaletteColorOptions} from "@mui/material"; +import { createTheme, PaletteColorOptions, ThemeOptions } from "@mui/material"; import { deepmerge } from '@mui/utils'; //import { createTheme } from "./types"; @@ -17,7 +17,7 @@ declare module '@mui/material/styles' { interface Theme { palette: { primary: { - main: string + main: string; }, secondary: { main: string; @@ -54,8 +54,8 @@ declare module '@mui/material/styles' { }, caption: { main: string; - } - } + }; + }; } interface PaletteOptions { @@ -125,8 +125,8 @@ const paletteColor = { main: "#2a2b1d" } }, -} -const theme = { +}; +const theme: ThemeOptions = { typography: { body1: { fontFamily: fontFamily @@ -211,9 +211,14 @@ const theme = { } } ] - } + }, + MuiButtonBase: { + styleOverrides: { + root: { + fontFamily + } + }, + }, }, - - }; export default createTheme(deepmerge(paletteColor, theme)); \ No newline at end of file