diff --git a/packages/vant/docs/markdown/theme.en-US.md b/packages/vant/docs/markdown/theme.en-US.md index 5b442b706..2ca693bcb 100644 --- a/packages/vant/docs/markdown/theme.en-US.md +++ b/packages/vant/docs/markdown/theme.en-US.md @@ -41,7 +41,7 @@ There are some [basic variables](<(https://github.com/youzan/vant/blob/dev/packa @active-opacity: 0.7; @disabled-opacity: 0.5; @background-color: @gray-1; -@background-color-light: #fafafa; +@background-color-light: @white; @text-link-color: #576b95; // Padding diff --git a/packages/vant/docs/markdown/theme.zh-CN.md b/packages/vant/docs/markdown/theme.zh-CN.md index 537ec1c4e..f96f7559d 100644 --- a/packages/vant/docs/markdown/theme.zh-CN.md +++ b/packages/vant/docs/markdown/theme.zh-CN.md @@ -47,7 +47,7 @@ Vant 使用了 [Less](http://lesscss.org/) 对样式进行预处理,并内置 @active-opacity: 0.7; @disabled-opacity: 0.5; @background-color: @gray-1; -@background-color-light: #fafafa; +@background-color-light: @white; @text-link-color: #576b95; // Padding diff --git a/packages/vant/src/action-bar-icon/var.less b/packages/vant/src/action-bar-icon/var.less index ff00e23dd..14c0d8ce9 100644 --- a/packages/vant/src/action-bar-icon/var.less +++ b/packages/vant/src/action-bar-icon/var.less @@ -7,4 +7,4 @@ @action-bar-icon-font-size: var(--van-font-size-xs); @action-bar-icon-active-color: var(--van-active-color); @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); diff --git a/packages/vant/src/action-bar/README.md b/packages/vant/src/action-bar/README.md index a90b0bad7..04925f120 100644 --- a/packages/vant/src/action-bar/README.md +++ b/packages/vant/src/action-bar/README.md @@ -153,7 +153,7 @@ The component provides the following CSS variables, which can be used to customi | 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-icon-width | _48px_ | - | | --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-active-color | _var(--van-active-color)_ | - | | --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-warning-color | _var(--van-gradient-orange)_ | - | | --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - | diff --git a/packages/vant/src/action-bar/README.zh-CN.md b/packages/vant/src/action-bar/README.zh-CN.md index b7c564c9d..da5ca90c6 100644 --- a/packages/vant/src/action-bar/README.zh-CN.md +++ b/packages/vant/src/action-bar/README.zh-CN.md @@ -155,18 +155,18 @@ import type { 组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 -| 名称 | 默认值 | 描述 | -| -------------------------------------- | ---------------------------- | ---- | -| --van-action-bar-background-color | _var(--van-white)_ | - | -| --van-action-bar-height | _50px_ | - | -| --van-action-bar-icon-width | _48px_ | - | -| --van-action-bar-icon-height | _100%_ | - | -| --van-action-bar-icon-color | _var(--van-text-color)_ | - | -| --van-action-bar-icon-size | _18px_ | - | -| --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-text-color | _var(--van-gray-7)_ | - | -| --van-action-bar-icon-background-color | _var(--van-white)_ | - | -| --van-action-bar-button-height | _40px_ | - | -| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - | -| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - | +| 名称 | 默认值 | 描述 | +| --- | --- | --- | +| --van-action-bar-background-color | _var(--van-background-color-light)_ | - | +| --van-action-bar-height | _50px_ | - | +| --van-action-bar-icon-width | _48px_ | - | +| --van-action-bar-icon-height | _100%_ | - | +| --van-action-bar-icon-color | _var(--van-text-color)_ | - | +| --van-action-bar-icon-size | _18px_ | - | +| --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-text-color | _var(--van-gray-7)_ | - | +| --van-action-bar-icon-background-color | _var(--van-background-color-light)_ | - | +| --van-action-bar-button-height | _40px_ | - | +| --van-action-bar-button-warning-color | _var(--van-gradient-orange)_ | - | +| --van-action-bar-button-danger-color | _var(--van-gradient-red)_ | - | diff --git a/packages/vant/src/action-bar/var.less b/packages/vant/src/action-bar/var.less index eb5000e63..cc3f94832 100644 --- a/packages/vant/src/action-bar/var.less +++ b/packages/vant/src/action-bar/var.less @@ -1,4 +1,4 @@ @import '../style/var.less'; -@action-bar-background-color: var(--van-white); +@action-bar-background-color: var(--van-background-color-light); @action-bar-height: 50px; diff --git a/packages/vant/src/action-sheet/README.md b/packages/vant/src/action-sheet/README.md index 6616ef43f..e9d0dfcd0 100644 --- a/packages/vant/src/action-sheet/README.md +++ b/packages/vant/src/action-sheet/README.md @@ -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-font-size | _var(--van-font-size-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-line-height | _var(--van-line-height-lg)_ | - | | --van-action-sheet-item-text-color | _var(--van-text-color)_ | - | diff --git a/packages/vant/src/action-sheet/README.zh-CN.md b/packages/vant/src/action-sheet/README.zh-CN.md index 9d06fa17d..0d10d1297 100644 --- a/packages/vant/src/action-sheet/README.zh-CN.md +++ b/packages/vant/src/action-sheet/README.zh-CN.md @@ -258,7 +258,7 @@ import type { ActionSheetProps, ActionSheetAction } from 'vant'; | --van-action-sheet-description-color | _var(--van-gray-6)_ | - | | --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-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-line-height | _var(--van-line-height-lg)_ | - | | --van-action-sheet-item-text-color | _var(--van-text-color)_ | - | diff --git a/packages/vant/src/action-sheet/var.less b/packages/vant/src/action-sheet/var.less index 6f2191f94..6ee0d3331 100644 --- a/packages/vant/src/action-sheet/var.less +++ b/packages/vant/src/action-sheet/var.less @@ -6,7 +6,7 @@ @action-sheet-description-color: var(--van-gray-6); @action-sheet-description-font-size: var(--van-font-size-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-line-height: var(--van-line-height-lg); @action-sheet-item-text-color: var(--van-text-color); diff --git a/packages/vant/src/address-list/index.less b/packages/vant/src/address-list/index.less index 986c43bf7..0e2331a2b 100644 --- a/packages/vant/src/address-list/index.less +++ b/packages/vant/src/address-list/index.less @@ -30,7 +30,7 @@ width: 100%; padding-left: var(--van-padding-md); padding-right: var(--van-padding-md); - background-color: var(--van-white); + background-color: var(--van-background-color-light); } &__add { @@ -48,7 +48,7 @@ .van-address-item { 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); &:not(:last-child) { diff --git a/packages/vant/src/badge/demo/index.vue b/packages/vant/src/badge/demo/index.vue index 64d1fe52c..9b6c501a0 100644 --- a/packages/vant/src/badge/demo/index.vue +++ b/packages/vant/src/badge/demo/index.vue @@ -88,7 +88,7 @@ const t = useTranslate({ diff --git a/packages/vant/src/cell-group/var.less b/packages/vant/src/cell-group/var.less index 4ce67a1f9..35c451f22 100644 --- a/packages/vant/src/cell-group/var.less +++ b/packages/vant/src/cell-group/var.less @@ -1,6 +1,6 @@ @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-padding: var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs); diff --git a/packages/vant/src/cell/README.md b/packages/vant/src/cell/README.md index 576d0429d..7e78fe6f9 100644 --- a/packages/vant/src/cell/README.md +++ b/packages/vant/src/cell/README.md @@ -213,7 +213,7 @@ The component provides the following CSS variables, which can be used to customi | --van-cell-vertical-padding | _10px_ | - | | --van-cell-horizontal-padding | _var(--van-padding-md)_ | - | | --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-active-color | _var(--van-active-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-title-font-size | _var(--van-font-size-lg)_ | - | | --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-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - | diff --git a/packages/vant/src/cell/README.zh-CN.md b/packages/vant/src/cell/README.zh-CN.md index e97633565..b420e9c9e 100644 --- a/packages/vant/src/cell/README.zh-CN.md +++ b/packages/vant/src/cell/README.zh-CN.md @@ -218,7 +218,7 @@ import type { CellProps, CellGroupProps, CellArrowDirection } from 'vant'; | --van-cell-vertical-padding | _10px_ | - | | --van-cell-horizontal-padding | _var(--van-padding-md)_ | - | | --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-active-color | _var(--van-active-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-title-font-size | _var(--van-font-size-lg)_ | - | | --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-padding | _var(--van-padding-md) var(--van-padding-md) var(--van-padding-xs)_ | - | | --van-cell-group-title-font-size | _var(--van-font-size-md)_ | - | diff --git a/packages/vant/src/cell/var.less b/packages/vant/src/cell/var.less index bf00509a8..d986301a6 100644 --- a/packages/vant/src/cell/var.less +++ b/packages/vant/src/cell/var.less @@ -5,7 +5,7 @@ @cell-vertical-padding: 10px; @cell-horizontal-padding: var(--van-padding-md); @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-active-color: var(--van-active-color); @cell-required-color: var(--van-danger-color); diff --git a/packages/vant/src/col/demo/index.vue b/packages/vant/src/col/demo/index.vue index d31ae7d16..33a1659d4 100644 --- a/packages/vant/src/col/demo/index.vue +++ b/packages/vant/src/col/demo/index.vue @@ -70,7 +70,7 @@ const t = useTranslate({