Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/@vuepress/core/lib/client/style/config.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ $textColor = #2c3e50
$borderColor = #eaecef
$codeBgColor = #282c34
$arrowBgColor = #ccc
$badgeTip = #42b983
$badgeWarning = darken(#ffe564, 35%)
$badgeError = #DA5961
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with $accentColor, $textColor, etc. , adding "color" to variable name could be better.

For example: $badgeTipColor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1


// layout
$navbarHeight = 3.6rem
Expand Down
6 changes: 3 additions & 3 deletions packages/@vuepress/theme-default/global-components/Badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default {
color white
background-color #42b983
&.tip, &.green
background-color #42b983
background-color $badgeTip
&.error
background-color #DA5961 //#f66
background-color $badgeError
&.warning, &.warn, &.yellow
background-color darken(#ffe564, 35%)
background-color $badgeWarning
& + &
margin-left 5px
</style>
3 changes: 3 additions & 0 deletions packages/docs/docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ $accentColor = #3eaf7c
$textColor = #2c3e50
$borderColor = #eaecef
$codeBgColor = #282c34
$badgeTip = #42b983
$badgeWarning = darken(#ffe564, 35%)
$badgeError = #DA5961
```

::: danger Note
Expand Down
3 changes: 3 additions & 0 deletions packages/docs/docs/zh/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ $accentColor = #3eaf7c
$textColor = #2c3e50
$borderColor = #eaecef
$codeBgColor = #282c34
$badgeTip = #42b983
$badgeWarning = darken(#ffe564, 35%)
$badgeError = #DA5961
```

::: danger Note
Expand Down