docs: deprecate legacy theme document

This commit is contained in:
chenjiahan
2021-06-14 11:29:37 +08:00
committed by neverland
parent b07d715244
commit 365bf989b1
3 changed files with 26 additions and 8 deletions

View File

@@ -1,5 +1,9 @@
# Custom Theme
### Deprecated
This document is deprecated. Vant provides a more convenient [ConfigProvider](/#zh-CN/config-provider) component for theme configuration. Less variables **will be removed in the next major version**.
### Intro
Vant use [Less](http://lesscss.org/) as css preprocessoryou can override the default less variables to custom theme.

View File

@@ -1,5 +1,9 @@
# 定制主题
### 废弃提示
本文档已废弃Vant 提供了更方便的 [ConfigProvider 全局配置](/#zh-CN/config-provider) 组件进行主题配置。基于 Less 变量进行定制的方式**将在下个大版本废弃**。
### 介绍
Vant 提供了一套默认主题CSS 命名采用 BEM 的风格,方便使用者覆盖样式。如果你想完全替换主题色或者其他样式,可以按照本文档进行主题定制。