Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .github/workflows/deploy.yml

This file was deleted.

8 changes: 3 additions & 5 deletions src/components/AppAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ const StyledToolbar = styled(Toolbar)(({ theme }) => ({
borderRadius: `calc(${theme.shape.borderRadius}px + 8px)`,
backdropFilter: 'blur(24px)',
border: '1px solid',
borderColor: (theme.vars || theme).palette.divider,
backgroundColor: theme.vars
? `rgba(${theme.vars.palette.background.defaultChannel} / 0.4)`
: alpha(theme.palette.background.default, 0.4),
boxShadow: (theme.vars || theme).shadows[1],
borderColor: theme.palette.divider,
backgroundColor: alpha(theme.palette.background.default, 0.4),
boxShadow: theme.shadows[1],
padding: '8px 12px',
}));

Expand Down
6 changes: 3 additions & 3 deletions src/components/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ const Chip = styled(MuiChip)<ChipProps>(({ theme }) => ({
background:
'linear-gradient(to bottom right, hsl(210, 98%, 48%), hsl(210, 98%, 35%))',
color: 'hsl(0, 0%, 100%)',
borderColor: (theme.vars || theme).palette.primary.light,
borderColor: theme.palette.primary.light,
'& .MuiChip-label': {
color: 'hsl(0, 0%, 100%)',
},
...theme.applyStyles('dark', {
borderColor: (theme.vars || theme).palette.primary.dark,
borderColor: theme.palette.primary.dark,
}),
},
},
Expand Down Expand Up @@ -190,7 +190,7 @@ export default function Features() {
height: '100%',
width: '100%',
'&:hover': {
backgroundColor: (theme.vars || theme).palette.action.hover,
backgroundColor: theme.palette.action.hover,
},
}),
selectedItemIndex === index && {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const StyledBox = styled('div')(({ theme }) => ({
width: '100%',
height: 400,
marginTop: theme.spacing(8),
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
outline: '6px solid',
outlineColor: 'hsla(220, 25%, 80%, 0.2)',
border: '1px solid',
borderColor: (theme.vars || theme).palette.grey[200],
borderColor: theme.palette.grey[200],
boxShadow: '0 0 12px 8px hsla(220, 25%, 80%, 0.2)',
backgroundImage: `url(${import.meta.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard.jpg)`,
backgroundSize: 'cover',
Expand All @@ -32,7 +32,7 @@ const StyledBox = styled('div')(({ theme }) => ({
boxShadow: '0 0 24px 12px hsla(210, 100%, 25%, 0.2)',
backgroundImage: `url(${import.meta.env.TEMPLATE_IMAGE_URL || 'https://mui.com'}/static/screenshots/material-ui/getting-started/templates/dashboard-dark.jpg)`,
outlineColor: 'hsla(220, 20%, 42%, 0.1)',
borderColor: (theme.vars || theme).palette.grey[700],
borderColor: theme.palette.grey[700],
}),
}));

Expand Down
4 changes: 2 additions & 2 deletions src/theme/ColorModeIconDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export default function ColorModeIconDropdown(props: IconButtonOwnProps) {
display: 'inline-flex',
width: '2.25rem',
height: '2.25rem',
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
border: '1px solid',
borderColor: (theme.vars || theme).palette.divider,
borderColor: theme.palette.divider,
})}
/>
);
Expand Down
6 changes: 3 additions & 3 deletions src/theme/customizations/dataDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const dataDisplayCustomizations: Components<Theme> = {
[`& .${svgIconClasses.root}`]: {
width: '1rem',
height: '1rem',
color: (theme.vars || theme).palette.text.secondary,
color: theme.palette.text.secondary,
},
[`& .${typographyClasses.root}`]: {
fontWeight: 500,
Expand All @@ -33,13 +33,13 @@ export const dataDisplayCustomizations: Components<Theme> = {
display: 'flex',
gap: 8,
padding: '2px 8px',
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
opacity: 0.7,
'&.Mui-selected': {
opacity: 1,
backgroundColor: alpha(theme.palette.action.selected, 0.3),
[`& .${svgIconClasses.root}`]: {
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
},
'&:focus-visible': {
backgroundColor: alpha(theme.palette.action.selected, 0.3),
Expand Down
4 changes: 2 additions & 2 deletions src/theme/customizations/feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const feedbackCustomizations: Components<Theme> = {
root: ({ theme }) => ({
borderRadius: 10,
backgroundColor: orange[100],
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
border: `1px solid ${alpha(orange[300], 0.5)}`,
'& .MuiAlert-icon': {
color: orange[500],
Expand All @@ -26,7 +26,7 @@ export const feedbackCustomizations: Components<Theme> = {
'& .MuiDialog-paper': {
borderRadius: '10px',
border: '1px solid',
borderColor: (theme.vars || theme).palette.divider,
borderColor: theme.palette.divider,
},
}),
},
Expand Down
20 changes: 10 additions & 10 deletions src/theme/customizations/inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const inputsCustomizations: Components<Theme> = {
styleOverrides: {
root: ({ theme }) => ({
boxShadow: 'none',
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
textTransform: 'none',
variants: [
{
Expand Down Expand Up @@ -113,7 +113,7 @@ export const inputsCustomizations: Components<Theme> = {
variant: 'outlined',
},
style: {
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
border: '1px solid',
borderColor: brand[200],
backgroundColor: alpha(brand[50], 0.3),
Expand Down Expand Up @@ -225,11 +225,11 @@ export const inputsCustomizations: Components<Theme> = {
styleOverrides: {
root: ({ theme }) => ({
boxShadow: 'none',
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
textTransform: 'none',
fontWeight: theme.typography.fontWeightMedium,
letterSpacing: 0,
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
border: '1px solid ',
borderColor: gray[200],
backgroundColor: alpha(gray[50], 0.3),
Expand Down Expand Up @@ -383,10 +383,10 @@ export const inputsCustomizations: Components<Theme> = {
},
root: ({ theme }) => ({
padding: '8px 12px',
color: (theme.vars || theme).palette.text.primary,
borderRadius: (theme.vars || theme).shape.borderRadius,
border: `1px solid ${(theme.vars || theme).palette.divider}`,
backgroundColor: (theme.vars || theme).palette.background.default,
color: theme.palette.text.primary,
borderRadius: theme.shape.borderRadius,
border: `1px solid ${theme.palette.divider}`,
backgroundColor: theme.palette.background.default,
transition: 'border 120ms ease-in',
'&:hover': {
borderColor: gray[400],
Expand Down Expand Up @@ -427,9 +427,9 @@ export const inputsCustomizations: Components<Theme> = {
MuiInputAdornment: {
styleOverrides: {
root: ({ theme }) => ({
color: (theme.vars || theme).palette.grey[500],
color: theme.palette.grey[500],
...theme.applyStyles('dark', {
color: (theme.vars || theme).palette.grey[400],
color: theme.palette.grey[400],
}),
}),
},
Expand Down
50 changes: 25 additions & 25 deletions src/theme/customizations/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const navigationCustomizations: Components<Theme> = {
MuiMenuItem: {
styleOverrides: {
root: ({ theme }) => ({
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
padding: '6px 8px',
[`&.${menuItemClasses.focusVisible}`]: {
backgroundColor: 'transparent',
Expand All @@ -37,8 +37,8 @@ export const navigationCustomizations: Components<Theme> = {
},
paper: ({ theme }) => ({
marginTop: '4px',
borderRadius: (theme.vars || theme).shape.borderRadius,
border: `1px solid ${(theme.vars || theme).palette.divider}`,
borderRadius: theme.shape.borderRadius,
border: `1px solid ${theme.palette.divider}`,
backgroundImage: 'none',
background: 'hsl(0, 0%, 100%)',
boxShadow:
Expand All @@ -64,14 +64,14 @@ export const navigationCustomizations: Components<Theme> = {
},
styleOverrides: {
root: ({ theme }) => ({
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
border: '1px solid',
borderColor: gray[200],
backgroundColor: (theme.vars || theme).palette.background.paper,
backgroundColor: theme.palette.background.paper,
boxShadow: `inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)`,
'&:hover': {
borderColor: gray[300],
backgroundColor: (theme.vars || theme).palette.background.paper,
backgroundColor: theme.palette.background.paper,
boxShadow: 'none',
},
[`&.${selectClasses.focused}`]: {
Expand All @@ -83,13 +83,13 @@ export const navigationCustomizations: Components<Theme> = {
},

...theme.applyStyles('dark', {
borderRadius: (theme.vars || theme).shape.borderRadius,
borderRadius: theme.shape.borderRadius,
borderColor: gray[700],
backgroundColor: (theme.vars || theme).palette.background.paper,
backgroundColor: theme.palette.background.paper,
boxShadow: `inset 0 1px 0 1px ${alpha(gray[700], 0.15)}, inset 0 -1px 0 1px hsla(220, 0%, 0%, 0.7)`,
'&:hover': {
borderColor: alpha(gray[700], 0.7),
backgroundColor: (theme.vars || theme).palette.background.paper,
backgroundColor: theme.palette.background.paper,
boxShadow: 'none',
},
[`&.${selectClasses.focused}`]: {
Expand Down Expand Up @@ -120,7 +120,7 @@ export const navigationCustomizations: Components<Theme> = {
},
styleOverrides: {
root: ({ theme }) => ({
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
fontWeight: 500,
position: 'relative',
textDecoration: 'none',
Expand All @@ -132,7 +132,7 @@ export const navigationCustomizations: Components<Theme> = {
height: '1px',
bottom: 0,
left: 0,
backgroundColor: (theme.vars || theme).palette.text.secondary,
backgroundColor: theme.palette.text.secondary,
opacity: 0.3,
transition: 'width 0.3s ease, opacity 0.3s ease',
},
Expand All @@ -150,7 +150,7 @@ export const navigationCustomizations: Components<Theme> = {
MuiDrawer: {
styleOverrides: {
paper: ({ theme }) => ({
backgroundColor: (theme.vars || theme).palette.background.default,
backgroundColor: theme.palette.background.default,
}),
},
},
Expand All @@ -159,12 +159,12 @@ export const navigationCustomizations: Components<Theme> = {
root: ({ theme }) => ({
'&.Mui-selected': {
color: 'white',
backgroundColor: (theme.vars || theme).palette.grey[900],
backgroundColor: theme.palette.grey[900],
},
...theme.applyStyles('dark', {
'&.Mui-selected': {
color: 'black',
backgroundColor: (theme.vars || theme).palette.grey[50],
backgroundColor: theme.palette.grey[50],
},
}),
}),
Expand All @@ -174,9 +174,9 @@ export const navigationCustomizations: Components<Theme> = {
styleOverrides: {
root: { minHeight: 'fit-content' },
indicator: ({ theme }) => ({
backgroundColor: (theme.vars || theme).palette.grey[800],
backgroundColor: theme.palette.grey[800],
...theme.applyStyles('dark', {
backgroundColor: (theme.vars || theme).palette.grey[200],
backgroundColor: theme.palette.grey[200],
}),
}),
},
Expand All @@ -189,12 +189,12 @@ export const navigationCustomizations: Components<Theme> = {
textTransform: 'none',
minWidth: 'fit-content',
minHeight: 'fit-content',
color: (theme.vars || theme).palette.text.secondary,
borderRadius: (theme.vars || theme).shape.borderRadius,
color: theme.palette.text.secondary,
borderRadius: theme.shape.borderRadius,
border: '1px solid',
borderColor: 'transparent',
':hover': {
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
backgroundColor: gray[100],
borderColor: gray[200],
},
Expand All @@ -203,7 +203,7 @@ export const navigationCustomizations: Components<Theme> = {
},
...theme.applyStyles('dark', {
':hover': {
color: (theme.vars || theme).palette.text.primary,
color: theme.palette.text.primary,
backgroundColor: gray[800],
borderColor: gray[700],
},
Expand All @@ -218,7 +218,7 @@ export const navigationCustomizations: Components<Theme> = {
styleOverrides: {
line: ({ theme }) => ({
borderTop: '1px solid',
borderColor: (theme.vars || theme).palette.divider,
borderColor: theme.palette.divider,
flex: 1,
borderRadius: '99px',
}),
Expand All @@ -237,21 +237,21 @@ export const navigationCustomizations: Components<Theme> = {
},
'&.Mui-active': {
border: 'none',
color: (theme.vars || theme).palette.primary.main,
color: theme.palette.primary.main,
},
'&.Mui-completed': {
border: 'none',
color: (theme.vars || theme).palette.success.main,
color: theme.palette.success.main,
},
...theme.applyStyles('dark', {
border: `1px solid ${gray[700]}`,
'&.Mui-active': {
border: 'none',
color: (theme.vars || theme).palette.primary.light,
color: theme.palette.primary.light,
},
'&.Mui-completed': {
border: 'none',
color: (theme.vars || theme).palette.success.light,
color: theme.palette.success.light,
},
}),
variants: [
Expand Down
Loading