refactor: move more files to ts

This commit is contained in:
Prayag Prajapati committed 2024-12-04 18:34:18 +05:30
1 parent cf8c5d4490
commit 27cc14c1f5
2 files changed
+2 -2

No files matched your search

+94
View File
@@ -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",
},
},
},
},
});