Skip to content

Commit

Permalink
feat: hero title follow primary color in default theme (#1501)
Browse files Browse the repository at this point in the history
* feat: hero title follow primary color in default theme

* chore: update doc sync script
  • Loading branch information
PeachScript authored Feb 23, 2023
1 parent 065ee99 commit c3f7600
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/sync-from-umi.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const FILE_LIST = [
// replace plugin api link
{
type: 'replace',
value: [/\/api\/plugin-api/g, '/plugin/api'],
value: [/\/api\/plugin-api/g, '/plugin/api.md'],
},
],
},
Expand Down
10 changes: 7 additions & 3 deletions src/client/theme-default/slots/HeroTitle/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@
display: inline-block;
font-family: Alibaba-PuHuiTi, 'Gill Sans', 'Gill Sans MT', Calibri,
'Trebuchet MS', sans-serif;
color: #82cdf8;
color: lighten(desaturate(spin(@c-primary, -13), 10.5), 20);
font-size: 180px;
line-height: 1;

> span {
// generated via: https://nicothin.pro/lessColourFunctionCalculator/
@from: lighten(spin(@c-primary, -12.5), 24);
@to: lighten(@c-primary, 15.5);

color: transparent;
text-shadow: 0 10px 20px rgba(22, 119, 255, 15%);
background: linear-gradient(30deg, #91d6ff 30%, #66a6ff);
text-shadow: 0 10px 20px fadeout(@c-primary, 85%);
background: linear-gradient(30deg, @from 30%, @to);
background-clip: text;
}

Expand Down

0 comments on commit c3f7600

Please sign in to comment.