{collapsed ? null : (
diff --git a/src/components/playground/FileView/FileElement.tsx b/src/components/playground/FileView/FileElement.tsx
index 1a05a3b..e674050 100644
--- a/src/components/playground/FileView/FileElement.tsx
+++ b/src/components/playground/FileView/FileElement.tsx
@@ -1,14 +1,12 @@
-import {
- Button,
- Dialog,
- DialogActions,
- DialogContent,
- DialogContentText,
- DialogTitle,
- Menu,
- MenuItem,
- TextField,
-} from "@mui/material";
+import Button from "@mui/material/Button";
+import Dialog from "@mui/material/Dialog";
+import DialogActions from "@mui/material/DialogActions";
+import DialogContent from "@mui/material/DialogContent";
+import DialogContentText from "@mui/material/DialogContentText";
+import DialogTitle from "@mui/material/DialogTitle";
+import Menu from "@mui/material/Menu";
+import MenuItem from "@mui/material/MenuItem";
+import TextField from "@mui/material/TextField";
import type { PlaygroundExplorerLang } from "@utils/playground";
import React from "react";
import { useState } from "react";
diff --git a/src/components/playground/FileView/index.tsx b/src/components/playground/FileView/index.tsx
index 9438efe..cd75385 100644
--- a/src/components/playground/FileView/index.tsx
+++ b/src/components/playground/FileView/index.tsx
@@ -5,7 +5,8 @@ import type {
} from "@utils/playground";
import DirElement from "./DirElement";
import FileElement from "./FileElement";
-import { Menu, MenuItem } from "@mui/material";
+import MenuItem from "@mui/material/MenuItem";
+import Menu from "@mui/material/Menu";
import React, { useState } from "react";
import AddFileDialog from "./AddFileDialog";
diff --git a/src/utils/material-ui-theme.ts b/src/utils/material-ui-theme.ts
index b3a16ad..029d6e6 100644
--- a/src/utils/material-ui-theme.ts
+++ b/src/utils/material-ui-theme.ts
@@ -1,31 +1,34 @@
-import { createTheme } from '@mui/material/styles';
+import { createTheme } from "@mui/material/styles";
-export const customTheme = createTheme({
- palette: {
- primary: {
- light: '#a700c3',
- main: '#a400c0',
- dark: '#a400c0',
- contrastText: '#fff',
- },
- secondary: {
- light: '#ff7961',
- main: '#f44336',
- dark: '#ba000d',
- contrastText: '#000',
- },
- },
- typography: {
- fontFamily: [
- '-apple-system',
- 'BlinkMacSystemFont',
- '"Segoe UI"',
- '"Helvetica Neue"',
- 'Arial',
- 'sans-serif',
- '"Apple Color Emoji"',
- '"Segoe UI Emoji"',
- '"Segoe UI Symbol"',
- ].join(','),
- },
-});
+export function customTheme(mode: "light" | "dark") {
+ return createTheme({
+ palette: {
+ mode,
+ primary: {
+ light: "#a700c3",
+ main: "#a700c3",
+ dark: "#a700c3",
+ contrastText: "#fff",
+ },
+ secondary: {
+ light: "#ff7961",
+ main: "#f44336",
+ dark: "#ba000d",
+ contrastText: "#000",
+ },
+ },
+ typography: {
+ fontFamily: [
+ "-apple-system",
+ "BlinkMacSystemFont",
+ '"Segoe UI"',
+ '"Helvetica Neue"',
+ "Arial",
+ "sans-serif",
+ '"Apple Color Emoji"',
+ '"Segoe UI Emoji"',
+ '"Segoe UI Symbol"',
+ ].join(","),
+ },
+ });
+}