ml-intern / frontend /src /theme.ts
akseljoonas's picture
Add web frontend infrastructure for HF Agent
a56db97
raw
history blame
2.08 kB
import { createTheme } from '@mui/material/styles';
const theme = createTheme({
palette: {
mode: 'dark',
primary: {
main: '#FFD21E',
light: '#FFE066',
dark: '#E6BD1B',
},
secondary: {
main: '#FF9D00',
},
background: {
default: '#0D1117',
paper: '#161B22',
},
text: {
primary: '#E6EDF3',
secondary: '#8B949E',
},
divider: '#30363D',
success: {
main: '#3FB950',
},
error: {
main: '#F85149',
},
warning: {
main: '#D29922',
},
info: {
main: '#58A6FF',
},
},
typography: {
fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
h1: {
fontWeight: 600,
},
h2: {
fontWeight: 600,
},
h3: {
fontWeight: 600,
},
h4: {
fontWeight: 600,
},
h5: {
fontWeight: 600,
},
h6: {
fontWeight: 600,
},
body1: {
fontSize: '0.9375rem',
},
body2: {
fontSize: '0.875rem',
},
},
components: {
MuiCssBaseline: {
styleOverrides: {
body: {
scrollbarWidth: 'thin',
'&::-webkit-scrollbar': {
width: '8px',
height: '8px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: '#30363D',
borderRadius: '4px',
},
'&::-webkit-scrollbar-track': {
backgroundColor: 'transparent',
},
},
'code, pre': {
fontFamily: '"JetBrains Mono", "Fira Code", monospace',
},
},
},
MuiButton: {
styleOverrides: {
root: {
textTransform: 'none',
fontWeight: 500,
},
},
},
MuiPaper: {
styleOverrides: {
root: {
backgroundImage: 'none',
},
},
},
MuiDrawer: {
styleOverrides: {
paper: {
borderRight: '1px solid #30363D',
},
},
},
},
shape: {
borderRadius: 8,
},
});
export default theme;