Skip to content

Commit 0d1b055

Browse files
committed
support light mode
1 parent c30e0d1 commit 0d1b055

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

src/components/Home/ContributorsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const githubButtonStyles = {
124124
p: "13px 24px",
125125
textTransform: "capitalize",
126126
display: { xs: "none", md: "block" },
127-
backgroundColor: "background.muted",
127+
backgroundColor: "background.secondary",
128128
borderRadius: "12px",
129129
};
130130

src/components/Home/FeaturesAndBenefitsSection.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export const HeadingAndDescription = ({ heading, description }: { heading: strin
1111
<Container maxWidth={false}>
1212
<Grid container columnSpacing={20} rowSpacing={5} alignItems="center">
1313
<Grid item xs={12} md={5}>
14-
<Typography variant="h4" fontWeight="bold" color="white">
14+
<Typography variant="h4" fontWeight="bold" color="text.primary">
1515
{heading}
1616
</Typography>
1717
</Grid>
1818
<Grid item xs={12} md={7}>
19-
<Typography variant="body1" color="gray">
19+
<Typography variant="body1" color="text.muted">
2020
{description}
2121
</Typography>
2222
</Grid>
@@ -29,7 +29,7 @@ const FeatureCard = ({ item }: { item: SecondaryFeature }) => (
2929
<Grid item xs={12} sm={6} md={3}>
3030
<Card sx={cardStyles}>
3131
<Box sx={iconWrapperStyles}>
32-
<item.Icon size={20} color="white" />
32+
<item.Icon size={20} />
3333
</Box>
3434
<CardContent>
3535
<Typography variant="h6" fontWeight="bold" gutterBottom>
@@ -67,16 +67,17 @@ export default function FeaturesAndBenefitsSection() {
6767
const cardStyles = {
6868
background: "transparent",
6969
boxShadow: "none",
70-
color: "white",
70+
color: "text.primary",
7171
padding: 2,
7272
flexDirection: "column",
7373
display: "flex",
7474
alignItems: "flex-start",
7575
};
7676

7777
const iconWrapperStyles = {
78-
backgroundColor: "background.icon",
78+
backgroundColor: "background.muted",
7979
padding: 2,
80+
color: 'text.primary',
8081
mx: "16px",
8182
display: "grid",
8283
borderRadius: 999,

src/components/Home/FeaturesAtGlance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ const featureStyles = (selected: boolean) => ({
2222
transition: "background-color 0.3s",
2323
"&:hover": { backgroundColor: "background.muted" },
2424
border: "1px solid",
25-
borderColor: selected ? "grey.700" : "transparent"
25+
borderColor: selected ? "background.secondary" : "transparent"
2626
});
2727

2828
const actionButtonStyles = {
2929
ml: "auto",
3030
textTransform: "none",
3131
color: "text.primary",
32-
backgroundColor: "grey.700",
32+
backgroundColor: "background.secondary",
3333
borderRadius: "8px",
3434
gap: 1
3535
};

src/components/Home/SponsorsSection.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ const SponsorCard = () => {
2929
flexDirection: "column",
3030
border: "1px solid white",
3131
borderColor: "background.muted",
32+
color: "text.primary",
3233
}}
3334
>
34-
<PiggyBank size={30} color="white" />
35+
<PiggyBank size={30} />
3536
<div>
36-
<Typography variant="h6" fontWeight="bold" color="white">
37+
<Typography variant="h6" fontWeight="bold" >
3738
{title}
3839
</Typography>
3940
<Typography variant="body1" color="text.muted">

src/components/NavigationBar/NavigationBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const NavigationBar: React.FC<{
184184
) : (
185185
<Button
186186
onClick={() => handleLogin()}
187-
sx={{ color: "text.primary", textTransform: "capitalize", display: { xs: "none", md: "block" }, backgroundColor: "background.muted", borderRadius: '12px' }}
187+
sx={{ color: "text.primary", textTransform: "capitalize", display: { xs: "none", md: "block" }, backgroundColor: "background.secondary", borderRadius: '12px' }}
188188
>
189189
{t("navigation_bar.login")}
190190
</Button>

src/themes/darkTheme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ const darkTheme = createTheme({
7373
secondaryBtn: "#374151",
7474
secondaryBtnHover: "#425065",
7575
icon: '#16191D',
76-
muted:"#27272A"
76+
muted:"#27272A",
77+
secondary:"#404040"
7778
},
7879

7980
},

src/themes/lightTheme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ const lightTheme = createTheme({
6262
primaryBtnHover: '#2F2F2F',
6363
secondaryBtn: "#1A1A1A",
6464
secondaryBtnHover: "#374151",
65+
muted: "#4A4A55",
6566
},
6667
background: {
6768
paper: "#EDEDED",
69+
navbar: '#ffffffb5',
6870
primaryBtn: "#D6D6D6",
6971
primaryBtnHover: "#C4C4C4",
7072
secondaryBtn: "#C2C2C2",
7173
secondaryBtnHover: "#AFAFAF",
74+
muted: "#dfdfdf",
75+
secondary:"#c7d0d8",
7276
},
7377
},
7478
typography: {

0 commit comments

Comments
 (0)