update ui

This commit is contained in:
subodh committed 2026-03-13 11:47:40 +05:30
1 parent 7674f12c5e
commit d3a5df6387
9 files changed
+1476 -1317

No files matched your search

+206
View File
@@ -0,0 +1,206 @@
import { createTheme } from "@mui/material/styles";
const gruvbox = {
background: "#0b0e0b",
surface: "#0f1410",
surfaceAlt: "#121a13",
border: "#1f2a22",
textPrimary: "#d1fae5",
textSecondary: "#86efac",
textMuted: "#4ade80",
primary: "#22c55e",
success: "#22c55e",
info: "#22d3ee",
error: "#f87171",
};
const theme = createTheme({
palette: {
mode: "dark",
background: {
default: gruvbox.background,
paper: gruvbox.surface,
},
primary: {
main: gruvbox.primary,
contrastText: "#0b0f19",
},
success: {
main: gruvbox.success,
},
info: {
main: gruvbox.info,
},
error: {
main: gruvbox.error,
},
text: {
primary: gruvbox.textPrimary,
secondary: gruvbox.textSecondary,
disabled: gruvbox.textMuted,
},
divider: gruvbox.border,
},
typography: {
fontFamily:
'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
h1: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
h2: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
h3: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
h4: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
h5: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
h6: {
fontWeight: 600,
letterSpacing: "-0.01em",
},
button: {
textTransform: "none",
fontWeight: 600,
},
},
shape: {
borderRadius: 0,
},
components: {
MuiCssBaseline: {
styleOverrides: {
body: {
backgroundColor: gruvbox.background,
color: gruvbox.textPrimary,
WebkitFontSmoothing: "antialiased",
MozOsxFontSmoothing: "grayscale",
},
"*": {
boxSizing: "border-box",
},
"::selection": {
background: "rgba(34, 197, 94, 0.3)",
color: gruvbox.textPrimary,
},
"::-webkit-scrollbar": {
width: "6px",
},
"::-webkit-scrollbar-track": {
background: "#0a0d0a",
},
"::-webkit-scrollbar-thumb": {
background: gruvbox.border,
borderRadius: "3px",
},
"::-webkit-scrollbar-thumb:hover": {
background: "#2f3b32",
},
},
},
MuiCard: {
styleOverrides: {
root: {
backgroundColor: gruvbox.surface,
border: `1px solid ${gruvbox.border}`,
borderRadius: 0,
boxShadow: "0 0 0 1px rgba(34, 197, 94, 0.08)",
},
},
},
MuiTextField: {
defaultProps: {
size: "small",
},
},
MuiOutlinedInput: {
styleOverrides: {
root: {
backgroundColor: "#0b0e0b",
"& .MuiOutlinedInput-notchedOutline": {
borderColor: gruvbox.border,
},
"&:hover .MuiOutlinedInput-notchedOutline": {
borderColor: gruvbox.primary,
},
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
borderColor: gruvbox.primary,
boxShadow: "0 0 0 2px rgba(34, 197, 94, 0.25)",
},
},
input: {
color: gruvbox.textPrimary,
caretColor: gruvbox.primary,
},
},
},
MuiInputLabel: {
styleOverrides: {
root: {
color: gruvbox.textSecondary,
"&.Mui-focused": {
color: gruvbox.primary,
},
},
},
},
MuiButton: {
styleOverrides: {
root: {
borderRadius: 0,
},
containedPrimary: {
color: "#0b0e0b",
},
},
},
MuiLinearProgress: {
styleOverrides: {
root: {
height: 6,
borderRadius: 999,
backgroundColor: gruvbox.surfaceAlt,
},
bar: {
borderRadius: 999,
backgroundColor: gruvbox.primary,
},
},
},
MuiAlert: {
styleOverrides: {
root: {
borderRadius: 0,
},
standardError: {
backgroundColor: "rgba(248, 113, 113, 0.12)",
border: "1px solid rgba(248, 113, 113, 0.35)",
color: gruvbox.error,
},
icon: {
color: gruvbox.error,
},
},
},
MuiDivider: {
styleOverrides: {
root: {
borderColor: gruvbox.border,
},
},
},
},
});
export type ThemeType = typeof theme;
export default theme;