Skip to content

Commit c4dc709

Browse files
committed
feat(ui): update site styles
1 parent 2426e90 commit c4dc709

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/assets/scss/_styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ a {
77
@extend %link;
88
}
99

10+
.header-icon {
11+
@apply text-site-header-text hover:text-site-header-text-hover;
12+
}
13+
1014
/* Badge CSS */
1115
%badge {
1216
@apply px-3 py-2 border rounded-full border-style-primary;

src/components/AppHeader.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ const { title, description, author } = siteConfig
5252
@apply bg-site-header-bg border-b-site-header-border;
5353
}
5454

55-
.header-icon {
56-
@apply text-site-header-text hover:text-site-header-text-hover;
57-
}
58-
5955
.site-title {
6056
@apply text-site-title hover:text-site-header-text-hover;
6157
}

theme.config.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ const darkTheme = ({ primary, secondary, tertiary }) => {
4646
'header-text': baseColors.text,
4747
'header-text-hover': baseColors.fill,
4848
},
49+
'theme-menu': {
50+
'text-hover': baseColors.fill,
51+
},
4952
difficulty: {
5053
...textDifficultyColors,
5154
},
@@ -60,6 +63,10 @@ const darkTheme = ({ primary, secondary, tertiary }) => {
6063
'bg': '#1a1a1a',
6164
'header-bg': '#282828',
6265
},
66+
'theme-menu': {
67+
'bg': colors.zinc['800'],
68+
'bg-hover': tertiary,
69+
},
6370
difficulty: {
6471
easy: themeColors.leetcode.easy,
6572
'easy-hover': baseColors.text,
@@ -118,6 +125,9 @@ const lightTheme = ({ primary, secondary, tertiary }) => {
118125
'header-text': baseColors['text-inverted'],
119126
'header-text-hover': colors.gray['300'],
120127
},
128+
'theme-menu': {
129+
'text-hover': baseColors.fill,
130+
},
121131
difficulty: {
122132
...textDifficultyColors,
123133
},
@@ -132,6 +142,10 @@ const lightTheme = ({ primary, secondary, tertiary }) => {
132142
'bg': colors.white,
133143
'header-bg': primary,
134144
},
145+
'theme-menu': {
146+
'bg': baseColors['text-inverted'],
147+
'bg-hover': colors.gray['100'],
148+
},
135149
difficulty: {
136150
easy: themeColors.leetcode.easy,
137151
'easy-hover': baseColors.text,

0 commit comments

Comments
 (0)