Skip to content

Commit ae614a9

Browse files
committed
fix(): update color contrast
1 parent 96ecee9 commit ae614a9

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

src/app/homepage/header/header.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
.new {
4242
background: #232323;
43-
color: #ea2845;
44-
border: 1px solid #ea2845;
43+
color: var(--label-new);
44+
border: 1px solid var(--label-new);
4545
font-size: 11px;
4646
padding: 2px 4px;
4747
border-radius: 2px;

src/app/homepage/menu/menu-item/menu-item.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ h3 {
2020

2121
.new {
2222
color: #fff;
23-
background: variables.$red-color;
23+
background: var(--primary);
2424
font-size: 11px;
2525
padding: 2px 4px;
2626
margin-right: 5px;

src/app/shared/components/toc/toc.component.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
margin-bottom: 6px;
3939

4040
&:hover {
41-
color: var(--primary);
41+
color: var(--toc-primary-title);
4242
}
4343
}
4444

4545
.current {
46-
color: var(--primary-3dp);
46+
color: var(--toc-primary-title);
4747
font-weight: 600;
4848

4949
&::before {
50-
background: var(--primary);
51-
border-color: var(--primary);
50+
background: var(--toc-primary-title);
51+
border-color: var(--toc-primary-title);
5252
border-width: 1px;
5353
left: -3px;
5454
}
@@ -80,12 +80,12 @@
8080
color: var(--color);
8181
font-weight: normal;
8282
&:hover {
83-
color: var(--primary);
83+
color: var(--toc-primary-title);
8484
}
8585
}
8686

8787
.current a {
8888
font-weight: 600;
89-
color: var(--primary);
89+
color: var(--toc-primary-title);
9090
}
9191
}

src/scss/theme.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.light-mode {
2-
--primary: #ed2945;
2+
--primary: #d1394e;
33
--primary-1dp: #d71e38;
44
--primary-2dp: #ed2945;
55
--primary-3dp:#db2840;
6+
--label-new: #ff7285;
7+
--toc-primary-title: #ca031f;
68

79
--color: #404040;
810
--color-1dp: #151515;
@@ -44,6 +46,8 @@
4446
--primary-1dp: #ff445e;
4547
--primary-2dp: #f55168;
4648
--primary-3dp: #ff586f;
49+
--label-new: #fe6379;
50+
--toc-primary-title: #ff4b64;
4751

4852
--color: rgba(255, 255, 255, 0.9);
4953
--color-1dp: rgba(255, 255, 255, 0.8);

0 commit comments

Comments
 (0)