style: component background color using --van-background-color-light (#9754)

This commit is contained in:
neverland 2021-10-29 17:54:16 +08:00 committed by GitHub
parent 8db19b76c2
commit 33d777d6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
118 changed files with 227 additions and 227 deletions

View File

@ -41,7 +41,7 @@ There are some [basic variables](<(https://github.com/youzan/vant/blob/dev/packa
@active-opacity: 0.7; @active-opacity: 0.7;
@disabled-opacity: 0.5; @disabled-opacity: 0.5;
@background-color: @gray-1; @background-color: @gray-1;
@background-color-light: #fafafa; @background-color-light: @white;
@text-link-color: #576b95; @text-link-color: #576b95;
// Padding // Padding

View File

@ -47,7 +47,7 @@ Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置
@active-opacity: 0.7; @active-opacity: 0.7;
@disabled-opacity: 0.5; @disabled-opacity: 0.5;
@background-color: @gray-1; @background-color: @gray-1;
@background-color-light: #fafafa; @background-color-light: @white;
@text-link-color: #576b95; @text-link-color: #576b95;
// Padding // Padding

View File

@ -7,4 +7,4 @@
@action-bar-icon-font-size: var(--van-font-size-xs); @action-bar-icon-font-size: var(--van-font-size-xs);
@action-bar-icon-active-color: var(--van-active-color); @action-bar-icon-active-color: var(--van-active-color);
@action-bar-icon-text-color: var(--van-gray-7); @action-bar-icon-text-color: var(--van-gray-7);
@action-bar-icon-background-color: var(--van-white); @action-bar-icon-background-color: var(--van-background-color-light);

View File

@ -153,7 +153,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-action-bar-background-color | _var(--van-white)_ | - | | --van-action-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-action-bar-height | _50px_ | - | | --van-action-bar-height | _50px_ | - |
| --van-action-bar-icon-width | _48px_ | - | | --van-action-bar-icon-width | _48px_ | - |
| --van-action-bar-icon-height | _100%_ | - | | --van-action-bar-icon-height | _100%_ | - |
@ -162,7 +162,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - | | --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - |
| --van-action-bar-icon-active-color | _var(--van-active-color)_ | - | | --van-action-bar-icon-active-color | _var(--van-active-color)_ | - |
| --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - | | --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - |
| --van-action-bar-icon-background-color | _var(--van-white)_ | - | | --van-action-bar-icon-background-color | _var(--van-background-color-light)_ | - |
| --van-action-bar-button-height | _40px_ | - | | --van-action-bar-button-height | _40px_ | - |
| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - | | --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - |
| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - | | --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - |

View File

@ -156,8 +156,8 @@ import type {
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| -------------------------------------- | ---------------------------- | ---- | | --- | --- | --- |
| --van-action-bar-background-color | _var(--van-white)_ | - | | --van-action-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-action-bar-height | _50px_ | - | | --van-action-bar-height | _50px_ | - |
| --van-action-bar-icon-width | _48px_ | - | | --van-action-bar-icon-width | _48px_ | - |
| --van-action-bar-icon-height | _100%_ | - | | --van-action-bar-icon-height | _100%_ | - |
@ -166,7 +166,7 @@ import type {
| --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - | | --van-action-bar-icon-font-size | _var(--van-font-size-xs)_ | - |
| --van-action-bar-icon-active-color | _var(--van-active-color)_ | - | | --van-action-bar-icon-active-color | _var(--van-active-color)_ | - |
| --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - | | --van-action-bar-icon-text-color | _var(--van-gray-7)_ | - |
| --van-action-bar-icon-background-color | _var(--van-white)_ | - | | --van-action-bar-icon-background-color | _var(--van-background-color-light)_ | - |
| --van-action-bar-button-height | _40px_ | - | | --van-action-bar-button-height | _40px_ | - |
| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - | | --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - |
| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - | | --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - |

View File

@ -1,4 +1,4 @@
@import '../style/var.less'; @import '../style/var.less';
@action-bar-background-color: var(--van-white); @action-bar-background-color: var(--van-background-color-light);
@action-bar-height: 50px; @action-bar-height: 50px;

View File

@ -246,7 +246,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-action-sheet-description-color | _var(--van-gray-6)_ | - | | --van-action-sheet-description-color | _var(--van-gray-6)_ | - |
| --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - | | --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - |
| --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - | | --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - |
| --van-action-sheet-item-background | _var(--van-white)_ | - | | --van-action-sheet-item-background | _var(--van-background-color-light)_ | - |
| --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - | | --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - |
| --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - | | --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - |
| --van-action-sheet-item-text-color | _var(--van-text-color)_ | - | | --van-action-sheet-item-text-color | _var(--van-text-color)_ | - |

View File

@ -258,7 +258,7 @@ import type { ActionSheetProps, ActionSheetAction } from 'vant';
| --van-action-sheet-description-color | _var(--van-gray-6)_ | - | | --van-action-sheet-description-color | _var(--van-gray-6)_ | - |
| --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - | | --van-action-sheet-description-font-size | _var(--van-font-size-md)_ | - |
| --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - | | --van-action-sheet-description-line-height | _var(--van-line-height-md)_ | - |
| --van-action-sheet-item-background | _var(--van-white)_ | - | | --van-action-sheet-item-background | _var(--van-background-color-light)_ | - |
| --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - | | --van-action-sheet-item-font-size | _var(--van-font-size-lg)_ | - |
| --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - | | --van-action-sheet-item-line-height | _var(--van-line-height-lg)_ | - |
| --van-action-sheet-item-text-color | _var(--van-text-color)_ | - | | --van-action-sheet-item-text-color | _var(--van-text-color)_ | - |

View File

@ -6,7 +6,7 @@
@action-sheet-description-color: var(--van-gray-6); @action-sheet-description-color: var(--van-gray-6);
@action-sheet-description-font-size: var(--van-font-size-md); @action-sheet-description-font-size: var(--van-font-size-md);
@action-sheet-description-line-height: var(--van-line-height-md); @action-sheet-description-line-height: var(--van-line-height-md);
@action-sheet-item-background: var(--van-white); @action-sheet-item-background: var(--van-background-color-light);
@action-sheet-item-font-size: var(--van-font-size-lg); @action-sheet-item-font-size: var(--van-font-size-lg);
@action-sheet-item-line-height: var(--van-line-height-lg); @action-sheet-item-line-height: var(--van-line-height-lg);
@action-sheet-item-text-color: var(--van-text-color); @action-sheet-item-text-color: var(--van-text-color);

View File

@ -30,7 +30,7 @@
width: 100%; width: 100%;
padding-left: var(--van-padding-md); padding-left: var(--van-padding-md);
padding-right: var(--van-padding-md); padding-right: var(--van-padding-md);
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
&__add { &__add {
@ -48,7 +48,7 @@
.van-address-item { .van-address-item {
padding: var(--van-address-list-item-padding); padding: var(--van-address-list-item-padding);
background-color: var(--van-white); background-color: var(--van-background-color-light);
border-radius: var(--van-border-radius-lg); border-radius: var(--van-border-radius-lg);
&:not(:last-child) { &:not(:last-child) {

View File

@ -88,7 +88,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-badge { .demo-badge {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-badge__wrapper { .van-badge__wrapper {
margin-left: var(--van-padding-md); margin-left: var(--van-padding-md);

View File

@ -184,7 +184,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-button-default-line-height | _1.2_ | - | | --van-button-default-line-height | _1.2_ | - |
| --van-button-default-font-size | _var(--van-font-size-lg)_ | - | | --van-button-default-font-size | _var(--van-font-size-lg)_ | - |
| --van-button-default-color | _var(--van-text-color)_ | - | | --van-button-default-color | _var(--van-text-color)_ | - |
| --van-button-default-background-color | _var(--van-white)_ | - | | --van-button-default-background-color | _var(--van-background-color-light)_ | - |
| --van-button-default-border-color | _var(--van-border-color)_ | - | | --van-button-default-border-color | _var(--van-border-color)_ | - |
| --van-button-primary-color | _var(--van-white)_ | - | | --van-button-primary-color | _var(--van-white)_ | - |
| --van-button-primary-background-color | _var(--van-primary-color)_ | - | | --van-button-primary-background-color | _var(--van-primary-color)_ | - |

View File

@ -207,7 +207,7 @@ import type {
| --van-button-default-line-height | _1.2_ | - | | --van-button-default-line-height | _1.2_ | - |
| --van-button-default-font-size | _var(--van-font-size-lg)_ | - | | --van-button-default-font-size | _var(--van-font-size-lg)_ | - |
| --van-button-default-color | _var(--van-text-color)_ | - | | --van-button-default-color | _var(--van-text-color)_ | - |
| --van-button-default-background-color | _var(--van-white)_ | - | | --van-button-default-background-color | _var(--van-background-color-light)_ | - |
| --van-button-default-border-color | _var(--van-border-color)_ | - | | --van-button-default-border-color | _var(--van-border-color)_ | - |
| --van-button-primary-color | _var(--van-white)_ | - | | --van-button-primary-color | _var(--van-white)_ | - |
| --van-button-primary-background-color | _var(--van-primary-color)_ | - | | --van-button-primary-background-color | _var(--van-primary-color)_ | - |

View File

@ -144,7 +144,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-button { .demo-button {
background: var(--van-white); background: var(--van-background-color-light);
.van-button { .van-button {
&--large { &--large {

View File

@ -13,7 +13,7 @@
@button-default-line-height: 1.2; @button-default-line-height: 1.2;
@button-default-font-size: var(--van-font-size-lg); @button-default-font-size: var(--van-font-size-lg);
@button-default-color: var(--van-text-color); @button-default-color: var(--van-text-color);
@button-default-background-color: var(--van-white); @button-default-background-color: var(--van-background-color-light);
@button-default-border-color: var(--van-border-color); @button-default-border-color: var(--van-border-color);
@button-primary-color: var(--van-white); @button-primary-color: var(--van-white);
@button-primary-background-color: var(--van-primary-color); @button-primary-background-color: var(--van-primary-color);

View File

@ -381,7 +381,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-calendar-background-color | _var(--van-white)_ | - | | --van-calendar-background-color | _var(--van-background-color-light)_ | - |
| --van-calendar-popup-height | _80%_ | - | | --van-calendar-popup-height | _80%_ | - |
| --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - | | --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - |
| --van-calendar-header-title-height | _44px_ | - | | --van-calendar-header-title-height | _44px_ | - |

View File

@ -387,7 +387,7 @@ calendarRef.value?.reset();
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| --- | --- | --- | | --- | --- | --- |
| --van-calendar-background-color | _var(--van-white)_ | - | | --van-calendar-background-color | _var(--van-background-color-light)_ | - |
| --van-calendar-popup-height | _80%_ | - | | --van-calendar-popup-height | _80%_ | - |
| --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - | | --van-calendar-header-box-shadow | _0 2px 10px rgba(125, 126, 128, 0.16)_ | - |
| --van-calendar-header-title-height | _44px_ | - | | --van-calendar-header-title-height | _44px_ | - |

View File

@ -1,6 +1,6 @@
@import '../style/var.less'; @import '../style/var.less';
@calendar-background-color: var(--van-white); @calendar-background-color: var(--van-background-color-light);
@calendar-popup-height: 80%; @calendar-popup-height: 80%;
@calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16); @calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
@calendar-header-title-height: 44px; @calendar-header-title-height: 44px;

View File

@ -75,6 +75,6 @@ const imageURL = 'https://img.yzcdn.cn/vant/ipad.jpeg';
<style lang="less"> <style lang="less">
.demo-card { .demo-card {
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
</style> </style>

View File

@ -1,6 +1,6 @@
@import '../style/var.less'; @import '../style/var.less';
@cell-group-background-color: var(--van-white); @cell-group-background-color: var(--van-background-color-light);
@cell-group-title-color: var(--van-gray-6); @cell-group-title-color: var(--van-gray-6);
@cell-group-title-padding: var(--van-padding-md) var(--van-padding-md) @cell-group-title-padding: var(--van-padding-md) var(--van-padding-md)
var(--van-padding-xs); var(--van-padding-xs);

View File

@ -213,7 +213,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-cell-vertical-padding | _10px_ | - | | --van-cell-vertical-padding | _10px_ | - |
| --van-cell-horizontal-padding | _var(--van-padding-md)_ | - | | --van-cell-horizontal-padding | _var(--van-padding-md)_ | - |
| --van-cell-text-color | _var(--van-text-color)_ | - | | --van-cell-text-color | _var(--van-text-color)_ | - |
| --van-cell-background-color | _var(--van-white)_ | - | | --van-cell-background-color | _var(--van-background-color-light)_ | - |
| --van-cell-border-color | _var(--van-border-color)_ | - | | --van-cell-border-color | _var(--van-border-color)_ | - |
| --van-cell-active-color | _var(--van-active-color)_ | - | | --van-cell-active-color | _var(--van-active-color)_ | - |
| --van-cell-required-color | _var(--van-danger-color)_ | - | | --van-cell-required-color | _var(--van-danger-color)_ | - |
@ -227,7 +227,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - | | --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - |
| --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - | | --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - |
| --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - | | --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - |
| --van-cell-group-background-color | _var(--van-white)_ | - | | --van-cell-group-background-color | _var(--van-background-color-light)_ | - |
| --van-cell-group-title-color | _var(--van-gray-6)_ | - | | --van-cell-group-title-color | _var(--van-gray-6)_ | - |
| --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - |
| --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - | | --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - |

View File

@ -218,7 +218,7 @@ import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant';
| --van-cell-vertical-padding | _10px_ | - | | --van-cell-vertical-padding | _10px_ | - |
| --van-cell-horizontal-padding | _var(--van-padding-md)_ | - | | --van-cell-horizontal-padding | _var(--van-padding-md)_ | - |
| --van-cell-text-color | _var(--van-text-color)_ | - | | --van-cell-text-color | _var(--van-text-color)_ | - |
| --van-cell-background-color | _var(--van-white)_ | - | | --van-cell-background-color | _var(--van-background-color-light)_ | - |
| --van-cell-border-color | _var(--van-border-color)_ | - | | --van-cell-border-color | _var(--van-border-color)_ | - |
| --van-cell-active-color | _var(--van-active-color)_ | - | | --van-cell-active-color | _var(--van-active-color)_ | - |
| --van-cell-required-color | _var(--van-danger-color)_ | - | | --van-cell-required-color | _var(--van-danger-color)_ | - |
@ -232,7 +232,7 @@ import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant';
| --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - | | --van-cell-large-vertical-padding | _var(--van-padding-sm)_ | - |
| --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - | | --van-cell-large-title-font-size | _var(--van-font-size-lg)_ | - |
| --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - | | --van-cell-large-label-font-size | _var(--van-font-size-md)_ | - |
| --van-cell-group-background-color | _var(--van-white)_ | - | | --van-cell-group-background-color | _var(--van-background-color-light)_ | - |
| --van-cell-group-title-color | _var(--van-gray-6)_ | - | | --van-cell-group-title-color | _var(--van-gray-6)_ | - |
| --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-cell-group-title-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - |
| --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - | | --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - |

View File

@ -5,7 +5,7 @@
@cell-vertical-padding: 10px; @cell-vertical-padding: 10px;
@cell-horizontal-padding: var(--van-padding-md); @cell-horizontal-padding: var(--van-padding-md);
@cell-text-color: var(--van-text-color); @cell-text-color: var(--van-text-color);
@cell-background-color: var(--van-white); @cell-background-color: var(--van-background-color-light);
@cell-border-color: var(--van-border-color); @cell-border-color: var(--van-border-color);
@cell-active-color: var(--van-active-color); @cell-active-color: var(--van-active-color);
@cell-required-color: var(--van-danger-color); @cell-required-color: var(--van-danger-color);

View File

@ -70,7 +70,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-col { .demo-col {
background: var(--van-white); background: var(--van-background-color-light);
.van-doc-demo-block { .van-doc-demo-block {
padding: 0 var(--van-padding-md); padding: 0 var(--van-padding-md);

View File

@ -5,5 +5,5 @@
@collapse-item-content-font-size: var(--van-font-size-md); @collapse-item-content-font-size: var(--van-font-size-md);
@collapse-item-content-line-height: 1.5; @collapse-item-content-line-height: 1.5;
@collapse-item-content-text-color: var(--van-gray-6); @collapse-item-content-text-color: var(--van-gray-6);
@collapse-item-content-background-color: var(--van-white); @collapse-item-content-background-color: var(--van-background-color-light);
@collapse-item-title-disabled-color: var(--van-gray-5); @collapse-item-title-disabled-color: var(--van-gray-5);

View File

@ -197,5 +197,5 @@ The component provides the following CSS variables, which can be used to customi
| --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - | | --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - |
| --van-collapse-item-content-line-height | _1.5_ | - | | --van-collapse-item-content-line-height | _1.5_ | - |
| --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - | | --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - |
| --van-collapse-item-content-background-color | _var(--van-white)_ | - | | --van-collapse-item-content-background-color | _var(--van-background-color-light)_ | - |
| --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - | | --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - |

View File

@ -195,5 +195,5 @@ collapseItemRef.value?.toggle();
| --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - | | --van-collapse-item-content-font-size | _var(--van-font-size-md)_ | - |
| --van-collapse-item-content-line-height | _1.5_ | - | | --van-collapse-item-content-line-height | _1.5_ | - |
| --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - | | --van-collapse-item-content-text-color | _var(--van-gray-6)_ | - |
| --van-collapse-item-content-background-color | _var(--van-white)_ | - | | --van-collapse-item-content-background-color | _var(--van-background-color-light)_ | - |
| --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - | | --van-collapse-item-title-disabled-color | _var(--van-gray-5)_ | - |

View File

@ -160,7 +160,7 @@ There are all **Basic Variables** below, for component CSS Variables, please ref
--van-active-opacity: 0.7; --van-active-opacity: 0.7;
--van-disabled-opacity: 0.5; --van-disabled-opacity: 0.5;
--van-background-color: var(--van-gray-1); --van-background-color: var(--van-gray-1);
--van-background-color-light: #fafafa; --van-background-color-light: var(--van-white);
--van-text-link-color: #576b95; --van-text-link-color: #576b95;
// Padding // Padding

View File

@ -162,7 +162,7 @@ Vant 中的 CSS 变量分为 **基础变量** 和 **组件变量**。组件变
--van-active-opacity: 0.7; --van-active-opacity: 0.7;
--van-disabled-opacity: 0.5; --van-disabled-opacity: 0.5;
--van-background-color: var(--van-gray-1); --van-background-color: var(--van-gray-1);
--van-background-color-light: #fafafa; --van-background-color-light: var(--van-white);
--van-text-link-color: #576b95; --van-text-link-color: #576b95;
// Padding // Padding

View File

@ -57,7 +57,7 @@
z-index: var(--van-contact-list-add-button-z-index); z-index: var(--van-contact-list-add-button-z-index);
padding-left: var(--van-padding-md); padding-left: var(--van-padding-md);
padding-right: var(--van-padding-md); padding-right: var(--van-padding-md);
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
&__add { &__add {

View File

@ -91,7 +91,7 @@ const onFinish = () => Toast(t('finished'));
<style lang="less"> <style lang="less">
.demo-count-down { .demo-count-down {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-count-down { .van-count-down {
margin-left: var(--van-padding-md); margin-left: var(--van-padding-md);

View File

@ -168,7 +168,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - | | --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - |
| --van-coupon-content-height | _84px_ | - | | --van-coupon-content-height | _84px_ | - |
| --van-coupon-content-padding | _14px 0_ | - | | --van-coupon-content-padding | _14px 0_ | - |
| --van-coupon-background-color | _var(--van-white)_ | - | | --van-coupon-background-color | _var(--van-background-color-light)_ | - |
| --van-coupon-active-background-color | _var(--van-active-color)_ | - | | --van-coupon-active-background-color | _var(--van-active-color)_ | - |
| --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - | | --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - |
| --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - | | --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - |

View File

@ -170,7 +170,7 @@ import type { CouponCellProps, CouponListProps } from 'vant';
| --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - | | --van-coupon-margin | _0 var(--van-padding-sm) var(--van-padding-sm)_ | - |
| --van-coupon-content-height | _84px_ | - | | --van-coupon-content-height | _84px_ | - |
| --van-coupon-content-padding | _14px 0_ | - | | --van-coupon-content-padding | _14px 0_ | - |
| --van-coupon-background-color | _var(--van-white)_ | - | | --van-coupon-background-color | _var(--van-background-color-light)_ | - |
| --van-coupon-active-background-color | _var(--van-active-color)_ | - | | --van-coupon-active-background-color | _var(--van-active-color)_ | - |
| --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - | | --van-coupon-border-radius | _var(--van-border-radius-lg)_ | - |
| --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - | | --van-coupon-box-shadow | _0 0 4px rgba(0, 0, 0, 0.1)_ | - |

View File

@ -39,7 +39,7 @@
&__exchange-bar { &__exchange-bar {
display: flex; display: flex;
align-items: center; align-items: center;
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
&__exchange { &__exchange {
@ -79,7 +79,7 @@
width: 100%; width: 100%;
padding: 5px var(--van-padding-md); padding: 5px var(--van-padding-md);
font-weight: var(--van-font-weight-bold); font-weight: var(--van-font-weight-bold);
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
&__close { &__close {

View File

@ -3,7 +3,7 @@
@coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm); @coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
@coupon-content-height: 84px; @coupon-content-height: 84px;
@coupon-content-padding: 14px 0; @coupon-content-padding: 14px 0;
@coupon-background-color: var(--van-white); @coupon-background-color: var(--van-background-color-light);
@coupon-active-background-color: var(--van-active-color); @coupon-active-background-color: var(--van-active-color);
@coupon-border-radius: var(--van-border-radius-lg); @coupon-border-radius: var(--van-border-radius-lg);
@coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1); @coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);

View File

@ -241,7 +241,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-dialog-font-size | _var(--van-font-size-lg)_ | - | | --van-dialog-font-size | _var(--van-font-size-lg)_ | - |
| --van-dialog-transition | _var(--van-animation-duration-base)_ | - | | --van-dialog-transition | _var(--van-animation-duration-base)_ | - |
| --van-dialog-border-radius | _16px_ | - | | --van-dialog-border-radius | _16px_ | - |
| --van-dialog-background-color | _var(--van-white)_ | - | | --van-dialog-background-color | _var(--van-background-color-light)_ | - |
| --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - | | --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - |
| --van-dialog-header-line-height | _24px_ | - | | --van-dialog-header-line-height | _24px_ | - |
| --van-dialog-header-padding-top | _26px_ | - | | --van-dialog-header-padding-top | _26px_ | - |

View File

@ -291,7 +291,7 @@ import type {
| --van-dialog-font-size | _var(--van-font-size-lg)_ | - | | --van-dialog-font-size | _var(--van-font-size-lg)_ | - |
| --van-dialog-transition | _var(--van-animation-duration-base)_ | - | | --van-dialog-transition | _var(--van-animation-duration-base)_ | - |
| --van-dialog-border-radius | _16px_ | - | | --van-dialog-border-radius | _16px_ | - |
| --van-dialog-background-color | _var(--van-white)_ | - | | --van-dialog-background-color | _var(--van-background-color-light)_ | - |
| --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - | | --van-dialog-header-font-weight | _var(--van-font-weight-bold)_ | - |
| --van-dialog-header-line-height | _24px_ | - | | --van-dialog-header-line-height | _24px_ | - |
| --van-dialog-header-padding-top | _26px_ | - | | --van-dialog-header-padding-top | _26px_ | - |

View File

@ -5,7 +5,7 @@
@dialog-font-size: var(--van-font-size-lg); @dialog-font-size: var(--van-font-size-lg);
@dialog-transition: var(--van-animation-duration-base); @dialog-transition: var(--van-animation-duration-base);
@dialog-border-radius: 16px; @dialog-border-radius: 16px;
@dialog-background-color: var(--van-white); @dialog-background-color: var(--van-background-color-light);
@dialog-header-font-weight: var(--van-font-weight-bold); @dialog-header-font-weight: var(--van-font-weight-bold);
@dialog-header-line-height: 24px; @dialog-header-line-height: 24px;
@dialog-header-padding-top: 26px; @dialog-header-padding-top: 26px;

View File

@ -58,7 +58,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-divider { .demo-divider {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-doc-demo-block__title { .van-doc-demo-block__title {
padding-top: var(--van-padding-md); padding-top: var(--van-padding-md);

View File

@ -233,7 +233,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-dropdown-menu-height | _48px_ | - | | --van-dropdown-menu-height | _48px_ | - |
| --van-dropdown-menu-background-color | _var(--van-white)_ | - | | --van-dropdown-menu-background-color | _var(--van-background-color-light)_ | - |
| --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - | | --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - |
| --van-dropdown-menu-title-font-size | _15px_ | - | | --van-dropdown-menu-title-font-size | _15px_ | - |
| --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - | | --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - |

View File

@ -237,7 +237,7 @@ dropdownItemRef.value?.toggle();
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| --- | --- | --- | | --- | --- | --- |
| --van-dropdown-menu-height | _48px_ | - | | --van-dropdown-menu-height | _48px_ | - |
| --van-dropdown-menu-background-color | _var(--van-white)_ | - | | --van-dropdown-menu-background-color | _var(--van-background-color-light)_ | - |
| --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - | | --van-dropdown-menu-box-shadow | _0 2px 12px fade(var(--van-gray-7), 12)_ | - |
| --van-dropdown-menu-title-font-size | _15px_ | - | | --van-dropdown-menu-title-font-size | _15px_ | - |
| --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - | | --van-dropdown-menu-title-text-color | _var(--van-text-color)_ | - |

View File

@ -1,7 +1,7 @@
@import '../style/var.less'; @import '../style/var.less';
@dropdown-menu-height: 48px; @dropdown-menu-height: 48px;
@dropdown-menu-background-color: var(--van-white); @dropdown-menu-background-color: var(--van-background-color-light);
@dropdown-menu-box-shadow: 0 2px 12px rgba(100, 101, 102, 0.12); @dropdown-menu-box-shadow: 0 2px 12px rgba(100, 101, 102, 0.12);
@dropdown-menu-title-font-size: 15px; @dropdown-menu-title-font-size: 15px;
@dropdown-menu-title-text-color: var(--van-text-color); @dropdown-menu-title-text-color: var(--van-text-color);

View File

@ -68,7 +68,7 @@ const active = ref('error');
<style lang="less"> <style lang="less">
.demo-empty { .demo-empty {
background: var(--van-white); background: var(--van-background-color-light);
.custom-image { .custom-image {
.van-empty__image { .van-empty__image {

View File

@ -1,7 +1,7 @@
@import '../style/var.less'; @import '../style/var.less';
@grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs); @grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);
@grid-item-content-background-color: var(--van-white); @grid-item-content-background-color: var(--van-background-color-light);
@grid-item-content-active-color: var(--van-active-color); @grid-item-content-active-color: var(--van-active-color);
@grid-item-icon-size: 28px; @grid-item-icon-size: 28px;
@grid-item-text-color: var(--van-gray-7); @grid-item-text-color: var(--van-gray-7);

View File

@ -159,7 +159,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - |
| --van-grid-item-content-background-color | _var(--van-white)_ | - | | --van-grid-item-content-background-color | _var(--van-background-color-light)_ | - |
| --van-grid-item-content-active-color | _var(--van-active-color)_ | - | | --van-grid-item-content-active-color | _var(--van-active-color)_ | - |
| --van-grid-item-icon-size | _28px_ | - | | --van-grid-item-icon-size | _28px_ | - |
| --van-grid-item-text-color | _var(--van-gray-7)_ | - | | --van-grid-item-text-color | _var(--van-gray-7)_ | - |

View File

@ -175,7 +175,7 @@ import type { GridProps, GridDirection, GridItemProps } from 'vant';
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| --- | --- | --- | | --- | --- | --- |
| --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-grid-item-content-padding | _var(--van-padding-md) var(--van-padding-xs)_ | - |
| --van-grid-item-content-background-color | _var(--van-white)_ | - | | --van-grid-item-content-background-color | _var(--van-background-color-light)_ | - |
| --van-grid-item-content-active-color | _var(--van-active-color)_ | - | | --van-grid-item-content-active-color | _var(--van-active-color)_ | - |
| --van-grid-item-icon-size | _28px_ | - | | --van-grid-item-icon-size | _28px_ | - |
| --van-grid-item-text-color | _var(--van-gray-7)_ | - | | --van-grid-item-text-color | _var(--van-gray-7)_ | - |

View File

@ -93,7 +93,7 @@ const fits = ['contain', 'cover', 'fill', 'none', 'scale-down'] as const;
<style lang="less"> <style lang="less">
.demo-image { .demo-image {
overflow-x: hidden; overflow-x: hidden;
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-row { .van-row {
padding: 0 var(--van-padding-md); padding: 0 var(--van-padding-md);

View File

@ -8,4 +8,4 @@
@index-anchor-line-height: 32px; @index-anchor-line-height: 32px;
@index-anchor-background-color: transparent; @index-anchor-background-color: transparent;
@index-anchor-sticky-text-color: var(--van-danger-color); @index-anchor-sticky-text-color: var(--van-danger-color);
@index-anchor-sticky-background-color: var(--van-white); @index-anchor-sticky-background-color: var(--van-background-color-light);

View File

@ -144,4 +144,4 @@ The component provides the following CSS variables, which can be used to customi
| --van-index-anchor-line-height | _32px_ | - | | --van-index-anchor-line-height | _32px_ | - |
| --van-index-anchor-background-color | _transparent_ | - | | --van-index-anchor-background-color | _transparent_ | - |
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - | | --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - | | --van-index-anchor-sticky-background-color | _var(--van-background-color-light)_ | - |

View File

@ -148,4 +148,4 @@ indexBarRef.value?.scrollTo('B');
| --van-index-anchor-line-height | _32px_ | - | | --van-index-anchor-line-height | _32px_ | - |
| --van-index-anchor-background-color | _transparent_ | - | | --van-index-anchor-background-color | _transparent_ | - |
| --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - | | --van-index-anchor-sticky-text-color | _var(--van-danger-color)_ | - |
| --van-index-anchor-sticky-background-color | _var(--van-white)_ | - | | --van-index-anchor-sticky-background-color | _var(--van-background-color-light)_ | - |

View File

@ -62,7 +62,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-loading { .demo-loading {
background: var(--van-white); background: var(--van-background-color-light);
.van-loading { .van-loading {
display: inline-block; display: inline-block;

View File

@ -130,9 +130,9 @@ import type { NavbarProps } from 'vant';
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider). The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
| Name | Default Value | Description | | Name | Default Value | Description |
| ------------------------------ | -------------------------- | ----------- | | --- | --- | --- |
| --van-nav-bar-height | _46px_ | - | | --van-nav-bar-height | _46px_ | - |
| --van-nav-bar-background-color | _var(--van-white)_ | - | | --van-nav-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-nav-bar-arrow-size | _16px_ | - | | --van-nav-bar-arrow-size | _16px_ | - |
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - | | --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - | | --van-nav-bar-text-color | _var(--van-primary-color)_ | - |

View File

@ -138,9 +138,9 @@ import type { NavbarProps } from 'vant';
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| ------------------------------ | -------------------------- | ---- | | ------------------------------ | ----------------------------------- | ---- |
| --van-nav-bar-height | _46px_ | - | | --van-nav-bar-height | _46px_ | - |
| --van-nav-bar-background-color | _var(--van-white)_ | - | | --van-nav-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-nav-bar-arrow-size | _16px_ | - | | --van-nav-bar-arrow-size | _16px_ | - |
| --van-nav-bar-icon-color | _var(--van-primary-color)_ | - | | --van-nav-bar-icon-color | _var(--van-primary-color)_ | - |
| --van-nav-bar-text-color | _var(--van-primary-color)_ | - | | --van-nav-bar-text-color | _var(--van-primary-color)_ | - |

View File

@ -1,7 +1,7 @@
@import '../style/var.less'; @import '../style/var.less';
@nav-bar-height: 46px; @nav-bar-height: 46px;
@nav-bar-background-color: var(--van-white); @nav-bar-background-color: var(--van-background-color-light);
@nav-bar-arrow-size: 16px; @nav-bar-arrow-size: 16px;
@nav-bar-icon-color: var(--van-primary-color); @nav-bar-icon-color: var(--van-primary-color);
@nav-bar-text-color: var(--van-primary-color); @nav-bar-text-color: var(--van-primary-color);

View File

@ -74,7 +74,7 @@ const t = useTranslate({
<style lang="less"> <style lang="less">
.demo-notice-bar { .demo-notice-bar {
background: var(--van-white); background: var(--van-background-color-light);
.van-notice-bar:not(:first-of-type) { .van-notice-bar:not(:first-of-type) {
margin-top: 4px; margin-top: 4px;

View File

@ -3,7 +3,7 @@
@number-keyboard-background-color: var(--van-gray-2); @number-keyboard-background-color: var(--van-gray-2);
@number-keyboard-key-height: 48px; @number-keyboard-key-height: 48px;
@number-keyboard-key-font-size: 28px; @number-keyboard-key-font-size: 28px;
@number-keyboard-key-background-color: var(--van-white); @number-keyboard-key-background-color: var(--van-background-color-light);
@number-keyboard-key-active-color: var(--van-gray-3); @number-keyboard-key-active-color: var(--van-gray-3);
@number-keyboard-delete-font-size: var(--van-font-size-lg); @number-keyboard-delete-font-size: var(--van-font-size-lg);
@number-keyboard-title-color: var(--van-gray-7); @number-keyboard-title-color: var(--van-gray-7);

View File

@ -47,7 +47,7 @@ const showEmbedded = ref(false);
<style lang="less"> <style lang="less">
.demo-overlay { .demo-overlay {
background: var(--van-white); background: var(--van-background-color-light);
.wrapper { .wrapper {
display: flex; display: flex;
@ -59,7 +59,7 @@ const showEmbedded = ref(false);
.block { .block {
width: 120px; width: 120px;
height: 120px; height: 120px;
background-color: var(--van-white); background-color: var(--van-background-color-light);
border-radius: 4px; border-radius: 4px;
} }
} }

View File

@ -118,6 +118,6 @@ The component provides the following CSS variables, which can be used to customi
| --van-pagination-item-default-color | _var(--van-primary-color)_ | - | | --van-pagination-item-default-color | _var(--van-primary-color)_ | - |
| --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - | | --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - |
| --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - | | --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - |
| --van-pagination-background-color | _var(--van-white)_ | - | | --van-pagination-background-color | _var(--van-background-color-light)_ | - |
| --van-pagination-desc-color | _var(--van-gray-7)_ | - | | --van-pagination-desc-color | _var(--van-gray-7)_ | - |
| --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - | | --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - |

View File

@ -126,6 +126,6 @@ import type { PaginationMode, PaginationProps } from 'vant';
| --van-pagination-item-default-color | _var(--van-primary-color)_ | - | | --van-pagination-item-default-color | _var(--van-primary-color)_ | - |
| --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - | | --van-pagination-item-disabled-color | _var(--van-gray-7)_ | - |
| --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - | | --van-pagination-item-disabled-background-color | _var(--van-background-color)_ | - |
| --van-pagination-background-color | _var(--van-white)_ | - | | --van-pagination-background-color | _var(--van-background-color-light)_ | - |
| --van-pagination-desc-color | _var(--van-gray-7)_ | - | | --van-pagination-desc-color | _var(--van-gray-7)_ | - |
| --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - | | --van-pagination-disabled-opacity | _var(--van-disabled-opacity)_ | - |

View File

@ -6,6 +6,6 @@
@pagination-item-default-color: var(--van-primary-color); @pagination-item-default-color: var(--van-primary-color);
@pagination-item-disabled-color: var(--van-gray-7); @pagination-item-disabled-color: var(--van-gray-7);
@pagination-item-disabled-background-color: var(--van-background-color); @pagination-item-disabled-background-color: var(--van-background-color);
@pagination-background-color: var(--van-white); @pagination-background-color: var(--van-background-color-light);
@pagination-desc-color: var(--van-gray-7); @pagination-desc-color: var(--van-gray-7);
@pagination-disabled-opacity: var(--van-disabled-opacity); @pagination-disabled-opacity: var(--van-disabled-opacity);

View File

@ -160,7 +160,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-password-input-margin | _0 var(--van-padding-md)_ | - | | --van-password-input-margin | _0 var(--van-padding-md)_ | - |
| --van-password-input-font-size | _20px_ | - | | --van-password-input-font-size | _20px_ | - |
| --van-password-input-border-radius | _6px_ | - | | --van-password-input-border-radius | _6px_ | - |
| --van-password-input-background-color | _var(--van-white)_ | - | | --van-password-input-background-color | _var(--van-background-color-light)_ | - |
| --van-password-input-info-color | _var(--van-gray-6)_ | - | | --van-password-input-info-color | _var(--van-gray-6)_ | - |
| --van-password-input-info-font-size | _var(--van-font-size-md)_ | - | | --van-password-input-info-font-size | _var(--van-font-size-md)_ | - |
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - | | --van-password-input-error-info-color | _var(--van-danger-color)_ | - |

View File

@ -170,7 +170,7 @@ export default {
| --van-password-input-margin | _0 var(--van-padding-md)_ | - | | --van-password-input-margin | _0 var(--van-padding-md)_ | - |
| --van-password-input-font-size | _20px_ | - | | --van-password-input-font-size | _20px_ | - |
| --van-password-input-border-radius | _6px_ | - | | --van-password-input-border-radius | _6px_ | - |
| --van-password-input-background-color | _var(--van-white)_ | - | | --van-password-input-background-color | _var(--van-background-color-light)_ | - |
| --van-password-input-info-color | _var(--van-gray-6)_ | - | | --van-password-input-info-color | _var(--van-gray-6)_ | - |
| --van-password-input-info-font-size | _var(--van-font-size-md)_ | - | | --van-password-input-info-font-size | _var(--van-font-size-md)_ | - |
| --van-password-input-error-info-color | _var(--van-danger-color)_ | - | | --van-password-input-error-info-color | _var(--van-danger-color)_ | - |

View File

@ -4,7 +4,7 @@
@password-input-margin: 0 var(--van-padding-md); @password-input-margin: 0 var(--van-padding-md);
@password-input-font-size: 20px; @password-input-font-size: 20px;
@password-input-border-radius: 6px; @password-input-border-radius: 6px;
@password-input-background-color: var(--van-white); @password-input-background-color: var(--van-background-color-light);
@password-input-info-color: var(--van-gray-6); @password-input-info-color: var(--van-gray-6);
@password-input-info-font-size: var(--van-font-size-md); @password-input-info-font-size: var(--van-font-size-md);
@password-input-error-info-color: var(--van-danger-color); @password-input-error-info-color: var(--van-danger-color);

View File

@ -415,7 +415,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-picker-background-color | _var(--van-white)_ | - | | --van-picker-background-color | _var(--van-background-color-light)_ | - |
| --van-picker-toolbar-height | _44px_ | - | | --van-picker-toolbar-height | _44px_ | - |
| --van-picker-title-font-size | _var(--van-font-size-lg)_ | - | | --van-picker-title-font-size | _var(--van-font-size-lg)_ | - |
| --van-picker-title-line-height | _var(--van-line-height-md)_ | - | | --van-picker-title-line-height | _var(--van-line-height-md)_ | - |

View File

@ -439,8 +439,8 @@ pickerRef.value?.confirm();
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| ------------------------------------ | ---------------------------- | ---- | | --- | --- | --- |
| --van-picker-background-color | _var(--van-white)_ | - | | --van-picker-background-color | _var(--van-background-color-light)_ | - |
| --van-picker-toolbar-height | _44px_ | - | | --van-picker-toolbar-height | _44px_ | - |
| --van-picker-title-font-size | _var(--van-font-size-lg)_ | - | | --van-picker-title-font-size | _var(--van-font-size-lg)_ | - |
| --van-picker-title-line-height | _var(--van-line-height-md)_ | - | | --van-picker-title-line-height | _var(--van-line-height-md)_ | - |

View File

@ -1,6 +1,6 @@
@import '../style/var.less'; @import '../style/var.less';
@picker-background-color: var(--van-white); @picker-background-color: var(--van-background-color-light);
@picker-toolbar-height: 44px; @picker-toolbar-height: 44px;
@picker-title-font-size: var(--van-font-size-lg); @picker-title-font-size: var(--van-font-size-lg);
@picker-title-line-height: var(--van-line-height-md); @picker-title-line-height: var(--van-line-height-md);

View File

@ -285,7 +285,7 @@ The component provides the following CSS variables, which can be used to customi
| --van-popover-action-line-height | _var(--van-line-height-md)_ | - | | --van-popover-action-line-height | _var(--van-line-height-md)_ | - |
| --van-popover-action-icon-size | _20px_ | - | | --van-popover-action-icon-size | _20px_ | - |
| --van-popover-light-text-color | _var(--van-text-color)_ | - | | --van-popover-light-text-color | _var(--van-text-color)_ | - |
| --van-popover-light-background-color | _var(--van-white)_ | - | | --van-popover-light-background-color | _var(--van-background-color-light)_ | - |
| --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - | | --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - |
| --van-popover-dark-text-color | _var(--van-white)_ | - | | --van-popover-dark-text-color | _var(--van-white)_ | - |
| --van-popover-dark-background-color | _#4a4a4a_ | - | | --van-popover-dark-background-color | _#4a4a4a_ | - |

View File

@ -297,7 +297,7 @@ import type {
| --van-popover-action-line-height | _var(--van-line-height-md)_ | - | | --van-popover-action-line-height | _var(--van-line-height-md)_ | - |
| --van-popover-action-icon-size | _20px_ | - | | --van-popover-action-icon-size | _20px_ | - |
| --van-popover-light-text-color | _var(--van-text-color)_ | - | | --van-popover-light-text-color | _var(--van-text-color)_ | - |
| --van-popover-light-background-color | _var(--van-white)_ | - | | --van-popover-light-background-color | _var(--van-background-color-light)_ | - |
| --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - | | --van-popover-light-action-disabled-text-color | _var(--van-gray-5)_ | - |
| --van-popover-dark-text-color | _var(--van-white)_ | - | | --van-popover-dark-text-color | _var(--van-white)_ | - |
| --van-popover-dark-background-color | _#4a4a4a_ | - | | --van-popover-dark-background-color | _#4a4a4a_ | - |

View File

@ -8,7 +8,7 @@
@popover-action-line-height: var(--van-line-height-md); @popover-action-line-height: var(--van-line-height-md);
@popover-action-icon-size: 20px; @popover-action-icon-size: 20px;
@popover-light-text-color: var(--van-text-color); @popover-light-text-color: var(--van-text-color);
@popover-light-background-color: var(--van-white); @popover-light-background-color: var(--van-background-color-light);
@popover-light-action-disabled-text-color: var(--van-gray-5); @popover-light-action-disabled-text-color: var(--van-gray-5);
@popover-dark-text-color: var(--van-white); @popover-dark-text-color: var(--van-white);
@popover-dark-background-color: #4a4a4a; @popover-dark-background-color: #4a4a4a;

View File

@ -162,7 +162,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-popup-background-color | _var(--van-white)_ | - | | --van-popup-background-color | _var(--van-background-color-light)_ | - |
| --van-popup-transition | _transform var(--van-animation-duration-base)_ | - | | --van-popup-transition | _transform var(--van-animation-duration-base)_ | - |
| --van-popup-round-border-radius | _16px_ | - | | --van-popup-round-border-radius | _16px_ | - |
| --van-popup-close-icon-size | _22px_ | - | | --van-popup-close-icon-size | _22px_ | - |

View File

@ -168,7 +168,7 @@ import type { PopupProps, PopupPosition, PopupCloseIconPosition } from 'vant';
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| --- | --- | --- | | --- | --- | --- |
| --van-popup-background-color | _var(--van-white)_ | - | | --van-popup-background-color | _var(--van-background-color-light)_ | - |
| --van-popup-transition | _transform var(--van-animation-duration-base)_ | - | | --van-popup-transition | _transform var(--van-animation-duration-base)_ | - |
| --van-popup-round-border-radius | _16px_ | - | | --van-popup-round-border-radius | _16px_ | - |
| --van-popup-close-icon-size | _22px_ | - | | --van-popup-close-icon-size | _22px_ | - |

View File

@ -1,6 +1,6 @@
@import '../style/var.less'; @import '../style/var.less';
@popup-background-color: var(--van-white); @popup-background-color: var(--van-background-color-light);
@popup-transition: transform var(--van-animation-duration-base); @popup-transition: transform var(--van-animation-duration-base);
@popup-round-border-radius: 16px; @popup-round-border-radius: 16px;
@popup-close-icon-size: 22px; @popup-close-icon-size: 22px;

View File

@ -72,7 +72,7 @@ const reduce = () => {
<style lang="less"> <style lang="less">
.demo-progress { .demo-progress {
background: var(--van-white); background: var(--van-background-color-light);
.van-progress { .van-progress {
margin: 20px 16px; margin: 20px 16px;

View File

@ -100,7 +100,7 @@ onMounted(preloadImage);
<style lang="less"> <style lang="less">
.demo-pull-refresh { .demo-pull-refresh {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-pull-refresh { .van-pull-refresh {
height: calc(100vh - 50px); height: calc(100vh - 50px);

View File

@ -141,7 +141,7 @@ const inactiveIcon = 'https://img.yzcdn.cn/vant/user-inactive.png';
<style lang="less"> <style lang="less">
.demo-radio { .demo-radio {
background: var(--van-white); background: var(--van-background-color-light);
&-group { &-group {
padding: 0 16px; padding: 0 16px;

View File

@ -202,7 +202,7 @@ The component provides the following CSS variables, which can be used to customi
| Name | Default Value | Description | | Name | Default Value | Description |
| --- | --- | --- | | --- | --- | --- |
| --van-search-padding | _10px var(--van-padding-sm)_ | - | | --van-search-padding | _10px var(--van-padding-sm)_ | - |
| --van-search-background-color | _var(--van-white)_ | - | | --van-search-background-color | _var(--van-background-color-light)_ | - |
| --van-search-content-background-color | _var(--van-gray-1)_ | - | | --van-search-content-background-color | _var(--van-gray-1)_ | - |
| --van-search-input-height | _34px_ | - | | --van-search-input-height | _34px_ | - |
| --van-search-label-padding | _0 5px_ | - | | --van-search-label-padding | _0 5px_ | - |

View File

@ -212,9 +212,9 @@ searchRef.value?.focus();
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| ------------------------------------- | ---------------------------- | ---- | | --- | --- | --- |
| --van-search-padding | _10px var(--van-padding-sm)_ | - | | --van-search-padding | _10px var(--van-padding-sm)_ | - |
| --van-search-background-color | _var(--van-white)_ | - | | --van-search-background-color | _var(--van-background-color-light)_ | - |
| --van-search-content-background-color | _var(--van-gray-1)_ | - | | --van-search-content-background-color | _var(--van-gray-1)_ | - |
| --van-search-input-height | _34px_ | - | | --van-search-input-height | _34px_ | - |
| --van-search-label-padding | _0 5px_ | - | | --van-search-label-padding | _0 5px_ | - |

View File

@ -1,7 +1,7 @@
@import '../style/var.less'; @import '../style/var.less';
@search-padding: 10px var(--van-padding-sm); @search-padding: 10px var(--van-padding-sm);
@search-background-color: var(--van-white); @search-background-color: var(--van-background-color-light);
@search-content-background-color: var(--van-gray-1); @search-content-background-color: var(--van-gray-1);
@search-input-height: 34px; @search-input-height: 34px;
@search-label-padding: 0 5px; @search-label-padding: 0 5px;

View File

@ -249,4 +249,4 @@ The component provides the following CSS variables, which can be used to customi
| --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - | | --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - |
| --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - | | --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - |
| --van-share-sheet-cancel-button-height | _48px_ | - | | --van-share-sheet-cancel-button-height | _48px_ | - |
| --van-share-sheet-cancel-button-background | _var(--van-white)_ | - | | --van-share-sheet-cancel-button-background | _var(--van-background-color-light)_ | - |

View File

@ -263,7 +263,7 @@ import type {
| --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - | | --van-share-sheet-option-description-font-size | _var(--van-font-size-sm)_ | - |
| --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - | | --van-share-sheet-cancel-button-font-size | _var(--van-font-size-lg)_ | - |
| --van-share-sheet-cancel-button-height | _48px_ | - | | --van-share-sheet-cancel-button-height | _48px_ | - |
| --van-share-sheet-cancel-button-background | _var(--van-white)_ | - | | --van-share-sheet-cancel-button-background | _var(--van-background-color-light)_ | - |
## 常见问题 ## 常见问题

View File

@ -15,4 +15,4 @@
@share-sheet-option-description-font-size: var(--van-font-size-sm); @share-sheet-option-description-font-size: var(--van-font-size-sm);
@share-sheet-cancel-button-font-size: var(--van-font-size-lg); @share-sheet-cancel-button-font-size: var(--van-font-size-lg);
@share-sheet-cancel-button-height: 48px; @share-sheet-cancel-button-height: 48px;
@share-sheet-cancel-button-background: var(--van-white); @share-sheet-cancel-button-background: var(--van-background-color-light);

View File

@ -12,4 +12,4 @@
@sidebar-selected-border-width: 4px; @sidebar-selected-border-width: 4px;
@sidebar-selected-border-height: 16px; @sidebar-selected-border-height: 16px;
@sidebar-selected-border-color: var(--van-danger-color); @sidebar-selected-border-color: var(--van-danger-color);
@sidebar-selected-background-color: var(--van-white); @sidebar-selected-background-color: var(--van-background-color-light);

View File

@ -153,4 +153,4 @@ The component provides the following CSS variables, which can be used to customi
| --van-sidebar-selected-border-width | _4px_ | - | | --van-sidebar-selected-border-width | _4px_ | - |
| --van-sidebar-selected-border-height | _16px_ | - | | --van-sidebar-selected-border-height | _16px_ | - |
| --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - | | --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - |
| --van-sidebar-selected-background-color | _var(--van-white)_ | - | | --van-sidebar-selected-background-color | _var(--van-background-color-light)_ | - |

View File

@ -161,4 +161,4 @@ import type { SidebarProps, SidebarItemProps } from 'vant';
| --van-sidebar-selected-border-width | _4px_ | - | | --van-sidebar-selected-border-width | _4px_ | - |
| --van-sidebar-selected-border-height | _16px_ | - | | --van-sidebar-selected-border-height | _16px_ | - |
| --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - | | --van-sidebar-selected-border-color | _var(--van-danger-color)_ | - |
| --van-sidebar-selected-background-color | _var(--van-white)_ | - | | --van-sidebar-selected-background-color | _var(--van-background-color-light)_ | - |

View File

@ -71,7 +71,7 @@ const onChange = (index: number) => Toast(`${t('title')} ${index + 1}`);
<style lang="less"> <style lang="less">
.demo-sidebar { .demo-sidebar {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-sidebar { .van-sidebar {
margin-left: var(--van-padding-md); margin-left: var(--van-padding-md);

View File

@ -47,7 +47,7 @@ const show = ref(false);
<style lang="less"> <style lang="less">
.demo-skeleton { .demo-skeleton {
background-color: var(--van-white); background-color: var(--van-background-color-light);
.van-switch { .van-switch {
margin: 0 var(--van-padding-md) var(--van-padding-xs); margin: 0 var(--van-padding-md) var(--van-padding-xs);

View File

@ -204,5 +204,5 @@ The component provides the following CSS variables, which can be used to customi
| --van-slider-button-width | _24px_ | - | | --van-slider-button-width | _24px_ | - |
| --van-slider-button-height | _24px_ | - | | --van-slider-button-height | _24px_ | - |
| --van-slider-button-border-radius | _50%_ | - | | --van-slider-button-border-radius | _50%_ | - |
| --van-slider-button-background-color | _var(--van-white)_ | - | | --van-slider-button-background-color | _var(--van-background-color-light)_ | - |
| --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - | | --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - |

View File

@ -206,5 +206,5 @@ import type { SliderProps } from 'vant';
| --van-slider-button-width | _24px_ | - | | --van-slider-button-width | _24px_ | - |
| --van-slider-button-height | _24px_ | - | | --van-slider-button-height | _24px_ | - |
| --van-slider-button-border-radius | _50%_ | - | | --van-slider-button-border-radius | _50%_ | - |
| --van-slider-button-background-color | _var(--van-white)_ | - | | --van-slider-button-background-color | _var(--van-background-color-light)_ | - |
| --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - | | --van-slider-button-box-shadow | _0 1px 2px rgba(0, 0, 0, 0.5)_ | - |

View File

@ -96,7 +96,7 @@ const onChange = (value: string) => Toast(t('text') + value);
<style lang="less"> <style lang="less">
.demo-slider { .demo-slider {
background: var(--van-white); background: var(--van-background-color-light);
user-select: none; user-select: none;
.van-doc-demo-block { .van-doc-demo-block {

View File

@ -7,5 +7,5 @@
@slider-button-width: 24px; @slider-button-width: 24px;
@slider-button-height: 24px; @slider-button-height: 24px;
@slider-button-border-radius: 50%; @slider-button-border-radius: 50%;
@slider-button-background-color: var(--van-white); @slider-button-background-color: var(--van-background-color-light);
@slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); @slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

View File

@ -142,7 +142,7 @@
.van-stepper__minus { .van-stepper__minus {
color: var(--van-stepper-button-round-theme-color); color: var(--van-stepper-button-round-theme-color);
background-color: var(--van-white); background-color: var(--van-background-color-light);
border: 1px solid var(--van-stepper-button-round-theme-color); border: 1px solid var(--van-stepper-button-round-theme-color);
} }
} }

View File

@ -128,4 +128,4 @@ The component provides the following CSS variables, which can be used to customi
| --van-step-circle-size | _5px_ | - | | --van-step-circle-size | _5px_ | - |
| --van-step-circle-color | _var(--van-gray-6)_ | - | | --van-step-circle-color | _var(--van-gray-6)_ | - |
| --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - | | --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - |
| --van-steps-background-color | _var(--van-white)_ | - | | --van-steps-background-color | _var(--van-background-color-light)_ | - |

View File

@ -122,7 +122,7 @@ import type { StepsProps, StepsDirection } from 'vant';
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
| 名称 | 默认值 | 描述 | | 名称 | 默认值 | 描述 |
| ------------------------------------- | -------------------------- | ---- | | --- | --- | --- |
| --van-step-text-color | _var(--van-gray-6)_ | - | | --van-step-text-color | _var(--van-gray-6)_ | - |
| --van-step-active-color | _var(--van-success-color)_ | - | | --van-step-active-color | _var(--van-success-color)_ | - |
| --van-step-process-text-color | _var(--van-text-color)_ | - | | --van-step-process-text-color | _var(--van-text-color)_ | - |
@ -134,4 +134,4 @@ import type { StepsProps, StepsDirection } from 'vant';
| --van-step-circle-size | _5px_ | - | | --van-step-circle-size | _5px_ | - |
| --van-step-circle-color | _var(--van-gray-6)_ | - | | --van-step-circle-color | _var(--van-gray-6)_ | - |
| --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - | | --van-step-horizontal-title-font-size | _var(--van-font-size-sm)_ | - |
| --van-steps-background-color | _var(--van-white)_ | - | | --van-steps-background-color | _var(--van-background-color-light)_ | - |

View File

@ -1,3 +1,3 @@
@import '../style/var.less'; @import '../style/var.less';
@steps-background-color: var(--van-white); @steps-background-color: var(--van-background-color-light);

View File

@ -77,7 +77,7 @@ const animate = (newName: string) => {
.van-hairline--top { .van-hairline--top {
height: 30px; height: 30px;
background-color: var(--van-white); background-color: var(--van-background-color-light);
&::after { &::after {
top: 5px; top: 5px;

View File

@ -30,7 +30,7 @@
@active-opacity: 0.7; @active-opacity: 0.7;
@disabled-opacity: 0.5; @disabled-opacity: 0.5;
@background-color: var(--van-gray-1); @background-color: var(--van-gray-1);
@background-color-light: #fafafa; @background-color-light: var(--van-white);
@text-link-color: #576b95; @text-link-color: #576b95;
// Padding // Padding

View File

@ -140,7 +140,7 @@ The component provides the following CSS variables, which can be used to customi
| --- | --- | --- | | --- | --- | --- |
| --van-submit-bar-height | _50px_ | - | | --van-submit-bar-height | _50px_ | - |
| --van-submit-bar-z-index | _100_ | - | | --van-submit-bar-z-index | _100_ | - |
| --van-submit-bar-background-color | _var(--van-white)_ | - | | --van-submit-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-submit-bar-button-width | _110px_ | - | | --van-submit-bar-button-width | _110px_ | - |
| --van-submit-bar-price-color | _var(--van-danger-color)_ | - | | --van-submit-bar-price-color | _var(--van-danger-color)_ | - |
| --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - | | --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - |

View File

@ -147,7 +147,7 @@ import type { SubmitBarProps } from 'vant';
| --- | --- | --- | | --- | --- | --- |
| --van-submit-bar-height | _50px_ | - | | --van-submit-bar-height | _50px_ | - |
| --van-submit-bar-z-index | _100_ | - | | --van-submit-bar-z-index | _100_ | - |
| --van-submit-bar-background-color | _var(--van-white)_ | - | | --van-submit-bar-background-color | _var(--van-background-color-light)_ | - |
| --van-submit-bar-button-width | _110px_ | - | | --van-submit-bar-button-width | _110px_ | - |
| --van-submit-bar-price-color | _var(--van-danger-color)_ | - | | --van-submit-bar-price-color | _var(--van-danger-color)_ | - |
| --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - | | --van-submit-bar-price-font-size | _var(--van-font-size-sm)_ | - |

View File

@ -2,7 +2,7 @@
@submit-bar-height: 50px; @submit-bar-height: 50px;
@submit-bar-z-index: 100; @submit-bar-z-index: 100;
@submit-bar-background-color: var(--van-white); @submit-bar-background-color: var(--van-background-color-light);
@submit-bar-button-width: 110px; @submit-bar-button-width: 110px;
@submit-bar-price-color: var(--van-danger-color); @submit-bar-price-color: var(--van-danger-color);
@submit-bar-price-font-size: var(--van-font-size-md); @submit-bar-price-font-size: var(--van-font-size-md);

View File

@ -100,7 +100,7 @@ const beforeClose = ({ position }: { position: string }) => {
.van-card { .van-card {
margin: 0; margin: 0;
background-color: var(--van-white); background-color: var(--van-background-color-light);
} }
.delete-button { .delete-button {

Some files were not shown because too many files have changed in this diff Show More