Added more to theming
This commit is contained in:
parent
eb70db4f2f
commit
bd11919a98
@ -8,20 +8,19 @@ const LinkContainer = styled('div')(({ theme }) => ({
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: '12px 1px',
|
padding: '12px 1px',
|
||||||
// borderRadius: theme.shape.borderRadius,s
|
borderRadius: '4px',
|
||||||
// color: theme.palette.text.primary,
|
color: theme.palette.text.tertiary,
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
transition: 'background 0.2s ease-in-out',
|
transition: 'background 0.2s ease-in-out',
|
||||||
|
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
color: 'rgb(255, 255, 255)',
|
color: 'rgb(255, 255, 255)',
|
||||||
background: 'rgba(255, 255, 255, 0.08)',
|
background: 'rgba(255, 255, 255, 0.08)',
|
||||||
// backgroundColor: theme.palette.action.hover,
|
backgroundColor: theme.palette.action.hover,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// background-color: rgb(69, 190, 171);
|
|
||||||
const LinkText = styled('span')(({ theme }) => ({
|
const LinkText = styled('span')(({ theme }) => ({
|
||||||
color: theme.palette.text.tertiary,
|
color: theme.palette.text.tertiary,
|
||||||
marginLeft: '12px',
|
marginLeft: '12px',
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import SidebarLink from './SideBarLink';
|
|||||||
// Sidebar Container (styled using MUI System)
|
// Sidebar Container (styled using MUI System)
|
||||||
export const Sidebar = styled('div')(({ theme }) => ({
|
export const Sidebar = styled('div')(({ theme }) => ({
|
||||||
width: '240px',
|
width: '240px',
|
||||||
backgroundColor: 'rgb(69, 190, 171)',
|
backgroundColor: theme.palette.background.primary,
|
||||||
color: 'white',
|
color: 'white',
|
||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
|
|||||||
@ -1,42 +1,27 @@
|
|||||||
import { createTheme } from '@mui/material/styles';
|
import { createTheme } from '@mui/material/styles';
|
||||||
|
|
||||||
// Define your color palette
|
const palette = {
|
||||||
const lightPalette = {
|
|
||||||
primary: {
|
primary: {
|
||||||
main: '#1976d2', // Blue color
|
main: '#1976d2',
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
main: '#d32f2f', // Red color
|
main: '#d32f2f',
|
||||||
},
|
},
|
||||||
background: {
|
background: {
|
||||||
default: '#fafafa',
|
default: '#fafafa',
|
||||||
paper: '#ffffff',
|
paper: '#ffffff',
|
||||||
|
primary: 'rgb(69, 190, 171)',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
primary: '#000000',
|
primary: '#000000',
|
||||||
secondary: '#555555',
|
secondary: '#555555',
|
||||||
tertiary: '#fff',
|
tertiary: '#fff',
|
||||||
},
|
},
|
||||||
};
|
action: {
|
||||||
|
hover: 'rgba(0, 0, 0, 0.08)',
|
||||||
const darkPalette = {
|
|
||||||
primary: {
|
|
||||||
main: '#90caf9', // Light blue
|
|
||||||
},
|
|
||||||
secondary: {
|
|
||||||
main: '#f48fb1', // Light pink
|
|
||||||
},
|
|
||||||
background: {
|
|
||||||
default: '#121212',
|
|
||||||
paper: '#1d1d1d',
|
|
||||||
},
|
|
||||||
text: {
|
|
||||||
primary: '#ffffff',
|
|
||||||
secondary: '#bbbbbb',
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Typography customization
|
|
||||||
const typography = {
|
const typography = {
|
||||||
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
||||||
h1: {
|
h1: {
|
||||||
@ -57,11 +42,9 @@ const typography = {
|
|||||||
const theme = createTheme({
|
const theme = createTheme({
|
||||||
palette: {
|
palette: {
|
||||||
mode: 'light', // Change this to 'dark' for dark mode
|
mode: 'light', // Change this to 'dark' for dark mode
|
||||||
...(process.env.NODE_ENV === 'development' // Switch for dev mode
|
...palette
|
||||||
? lightPalette
|
|
||||||
: darkPalette),
|
|
||||||
},
|
},
|
||||||
typography,
|
// typography,
|
||||||
breakpoints: {
|
breakpoints: {
|
||||||
values: {
|
values: {
|
||||||
xs: 0,
|
xs: 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user