Skip to content

Commit c3f7600

Browse files
authored
feat: hero title follow primary color in default theme (#1501)
* feat: hero title follow primary color in default theme * chore: update doc sync script
1 parent 065ee99 commit c3f7600

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

scripts/sync-from-umi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const FILE_LIST = [
140140
// replace plugin api link
141141
{
142142
type: 'replace',
143-
value: [/\/api\/plugin-api/g, '/plugin/api'],
143+
value: [/\/api\/plugin-api/g, '/plugin/api.md'],
144144
},
145145
],
146146
},

src/client/theme-default/slots/HeroTitle/index.less

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@
1010
display: inline-block;
1111
font-family: Alibaba-PuHuiTi, 'Gill Sans', 'Gill Sans MT', Calibri,
1212
'Trebuchet MS', sans-serif;
13-
color: #82cdf8;
13+
color: lighten(desaturate(spin(@c-primary, -13), 10.5), 20);
1414
font-size: 180px;
1515
line-height: 1;
1616

1717
> span {
18+
// generated via: https://nicothin.pro/lessColourFunctionCalculator/
19+
@from: lighten(spin(@c-primary, -12.5), 24);
20+
@to: lighten(@c-primary, 15.5);
21+
1822
color: transparent;
19-
text-shadow: 0 10px 20px rgba(22, 119, 255, 15%);
20-
background: linear-gradient(30deg, #91d6ff 30%, #66a6ff);
23+
text-shadow: 0 10px 20px fadeout(@c-primary, 85%);
24+
background: linear-gradient(30deg, @from 30%, @to);
2125
background-clip: text;
2226
}
2327

0 commit comments

Comments
 (0)