refactor: move more files to ts
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -0,0 +1,94 @@
|
||||
import { createTheme } from "@mui/material/styles";
|
||||
import {
|
||||
clrAccentDefault,
|
||||
clrBackgroundDark,
|
||||
clrBackgroundDefault,
|
||||
clrSecondaryDefault, //@ts-ignore
|
||||
} from "./palette.module.scss";
|
||||
const { palette } = createTheme({});
|
||||
const { augmentColor } = palette;
|
||||
export const theme = createTheme({
|
||||
palette: {
|
||||
primary: augmentColor({
|
||||
color: {
|
||||
main: clrAccentDefault,
|
||||
},
|
||||
}),
|
||||
secondary: augmentColor({
|
||||
color: {
|
||||
main: clrSecondaryDefault,
|
||||
},
|
||||
}),
|
||||
background: {
|
||||
default: clrBackgroundDefault,
|
||||
paper: clrBackgroundDark,
|
||||
},
|
||||
//@ts-ignore
|
||||
white: augmentColor({ color: { main: "#ffffff" } }),
|
||||
black: augmentColor({ color: { main: "#000" } }),
|
||||
mode: "dark",
|
||||
},
|
||||
typography: {
|
||||
fontFamily: "Noto Sans Variable",
|
||||
},
|
||||
components: {
|
||||
MuiButton: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
borderRadius: "100px",
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiChip: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
backdropFilter: "blur(5px)",
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiPaper: {
|
||||
styleOverrides: {
|
||||
root: {},
|
||||
},
|
||||
},
|
||||
MuiMenu: {
|
||||
styleOverrides: {
|
||||
paper: {
|
||||
borderRadius: "10px",
|
||||
border: "1px solid rgb(255 255 255 / 0.1)",
|
||||
},
|
||||
list: {
|
||||
padding: "8px",
|
||||
},
|
||||
},
|
||||
defaultProps: {
|
||||
disableScrollLock: true,
|
||||
slotProps: {
|
||||
paper: {
|
||||
className: "glass",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiMenuItem: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
borderRadius: "4px",
|
||||
transition: "250ms",
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiDialog: {
|
||||
styleOverrides: {
|
||||
paper: {
|
||||
borderRadius: "20px",
|
||||
},
|
||||
},
|
||||
defaultProps: {
|
||||
PaperProps: {
|
||||
className: "glass",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user