Skip to content

Commit 881128a

Browse files
author
Guillaume Chau
committed
fix: content background vars
1 parent 5e9eb4b commit 881128a

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

packages/@vue/cli-ui/src/components/app/TopBar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
position relative
2323
height 32px
2424
z-index 1
25-
background darken($vue-ui-color-light-neutral, 12%)
25+
background $content-bg-secondary-light
2626
.vue-ui-dark-mode &
27-
background lighten($vue-ui-color-darker, 6%)
27+
background $content-bg-secondary-dark
2828
2929
&,
3030
.actions

packages/@vue/cli-ui/src/components/content/ContentView.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ export default {
3737
box-sizing border-box
3838
3939
.content
40-
background darken($vue-ui-color-light-neutral, 12%)
40+
background $content-bg-secondary-light
4141
.vue-ui-dark-mode &
42-
background lighten($vue-ui-color-darker, 6%)
42+
background $content-bg-secondary-dark
4343
.wrapper
44-
background darken($vue-ui-color-light-neutral, 8%)
44+
background $content-bg-primary-light
4545
position relative
4646
overflow-x hidden
4747
overflow-y auto
4848
.vue-ui-dark-mode &
49-
background lighten($vue-ui-color-dark, 3%)
49+
background $content-bg-primary-dark
5050
5151
&.list
5252
.wrapper
53-
background $vue-ui-color-light-neutral
53+
background $content-bg-list-light
5454
.vue-ui-dark-mode &
55-
background lighten($vue-ui-color-darker, 9%)
55+
background $content-bg-list-dark
5656
5757
&.limit-width
5858
.wrapper

packages/@vue/cli-ui/src/components/content/NavList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
.nav-list
5656
overflow-x hidden
5757
overflow-y auto
58-
background $vue-ui-color-light-neutral
58+
background $content-bg-list-light
5959
.vue-ui-dark-mode &
60-
background lighten($vue-ui-color-darker, 9%)
60+
background $content-bg-list-dark
6161
</style>

packages/@vue/cli-ui/src/components/content/StepWizard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export default {
8282
8383
.header,
8484
>>> .tabs
85-
background $vue-ui-color-light-neutral
85+
background $content-bg-primary-light
8686
.vue-ui-dark-mode &
87-
background $vue-ui-color-dark
87+
background $content-bg-primary-dark
8888
8989
>>> .tabs-content
9090
height 0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
$color-background-light = lighten($vue-ui-color-light-neutral, 80%)
22
$color-text-light = lighten($vue-ui-color-dark, 40%)
3+
4+
$content-bg-primary-light = darken($vue-ui-color-light-neutral, 8%)
5+
$content-bg-primary-dark = lighten($vue-ui-color-dark, 3%)
6+
$content-bg-secondary-light = darken($vue-ui-color-light-neutral, 12%)
7+
$content-bg-secondary-dark = lighten($vue-ui-color-darker, 6%)
8+
$content-bg-list-light = $vue-ui-color-light-neutral
9+
$content-bg-list-dark = lighten($vue-ui-color-darker, 9%)

0 commit comments

Comments
 (0)