Skip to content

Commit 621c686

Browse files
committed
feat: change color name to pseudolab colors
1 parent 4ece7bf commit 621c686

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

frontend/src/components/common/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Header: React.FC<HeaderProps> = ({ logoSrc }) => {
3535
onClick={toggleColorMode}
3636
sx={{
3737
transition: 'all 0.1s ease',
38-
color: theme.palette.mode === 'dark' ? theme.palette.custom.primary : '#333',
38+
color: theme.palette.mode === 'dark' ? theme.palette.custom.pseudolabOrange : '#333',
3939
}}
4040
>
4141
{theme.palette.mode === 'dark' ? (

frontend/src/modules/Home/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Hero: React.FC = () => {
77
<Box
88
component="section"
99
sx={{
10-
backgroundColor: colors.primary,
10+
backgroundColor: colors.pseudolabOrange,
1111
color: '#fff',
1212
py: 6,
1313
mb: 6,

frontend/src/modules/Home/components/Services.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const Services: React.FC<ServicesProps> = ({
5555
variant="contained"
5656
fullWidth
5757
sx={{
58-
backgroundColor: colors.primary,
58+
backgroundColor: colors.pseudolabOrange,
5959
borderRadius: colors.borderRadius,
6060
textTransform: 'none',
6161
'&:hover': { opacity: 0.9, transform: 'translateY(-2px)' },
@@ -109,7 +109,7 @@ const Services: React.FC<ServicesProps> = ({
109109
variant="contained"
110110
fullWidth
111111
sx={{
112-
backgroundColor: colors.secondary,
112+
backgroundColor: colors.pseudolabBlue,
113113
borderRadius: colors.borderRadius,
114114
textTransform: 'none',
115115
'&:hover': { opacity: 0.9, transform: 'translateY(-2px)' },

frontend/src/styles/ThemeContext.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ThemeContextProps {
77
}
88

99
// ex) import { useTheme } from '@mui/material/styles';
10-
// ex) const theme = useTheme(); + theme.palette.custom.primary
10+
// ex) const theme = useTheme(); + theme.palette.custom.pseudolabOrange
1111
const ColorModeContext = createContext<ThemeContextProps | undefined>(undefined);
1212

1313
export const useColorMode = () => {
@@ -39,8 +39,8 @@ export const ColorModeProvider = ({ children }: { children: ReactNode }) => {
3939
primary: '#000',
4040
},
4141
custom: {
42-
primary: colors.primary,
43-
secondary: colors.secondary,
42+
pseudolabOrange: colors.pseudolabOrange,
43+
pseudolabBlue: colors.pseudolabBlue,
4444
success: colors.success,
4545
},
4646
}
@@ -53,8 +53,8 @@ export const ColorModeProvider = ({ children }: { children: ReactNode }) => {
5353
primary: '#fff',
5454
},
5555
custom: {
56-
primary: colors.primary,
57-
secondary: colors.secondary,
56+
pseudolabOrange: colors.pseudolabOrange,
57+
pseudolabBlue: colors.pseudolabBlue,
5858
success: colors.success,
5959
},
6060
}),

frontend/src/styles/theme.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createTheme } from '@mui/material/styles';
22

33
export const colors = {
4-
primary: '#F2913B',
5-
secondary: '#21709A',
4+
pseudolabOrange: '#F2913B',
5+
pseudolabBlue: '#21709A',
66
success: '#10b981',
77
dark: '#1f2937',
88
light: '#f3f4f6',
@@ -15,16 +15,16 @@ export const colors = {
1515
declare module '@mui/material/styles' {
1616
interface Palette {
1717
custom: {
18-
primary: string;
19-
secondary: string;
18+
pseudolabOrange: string;
19+
pseudolabBlue: string;
2020
success: string;
2121
};
2222
}
2323

2424
interface PaletteOptions {
2525
custom?: {
26-
primary?: string;
27-
secondary?: string;
26+
pseudolabOrange?: string;
27+
pseudolabBlue?: string;
2828
success?: string;
2929
};
3030
}
@@ -35,8 +35,8 @@ const theme = createTheme({
3535
palette: {
3636
mode: 'light',
3737
custom: {
38-
primary: colors.primary,
39-
secondary: colors.secondary,
38+
pseudolabOrange: colors.pseudolabOrange,
39+
pseudolabBlue: colors.pseudolabBlue,
4040
success: colors.success,
4141
},
4242
},

0 commit comments

Comments
 (0)