mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: deprecate legacy theme document
This commit is contained in:
parent
b07d715244
commit
365bf989b1
@ -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 preprocessor,you can override the default less variables to custom theme.
|
||||
|
@ -1,5 +1,9 @@
|
||||
# 定制主题
|
||||
|
||||
### 废弃提示
|
||||
|
||||
本文档已废弃,Vant 提供了更方便的 [ConfigProvider 全局配置](/#zh-CN/config-provider) 组件进行主题配置。基于 Less 变量进行定制的方式**将在下个大版本废弃**。
|
||||
|
||||
### 介绍
|
||||
|
||||
Vant 提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。如果你想完全替换主题色或者其他样式,可以按照本文档进行主题定制。
|
||||
|
@ -86,10 +86,6 @@ module.exports = {
|
||||
path: 'migrate-from-v2',
|
||||
title: '从 v2 升级',
|
||||
},
|
||||
{
|
||||
path: 'theme',
|
||||
title: '定制主题',
|
||||
},
|
||||
{
|
||||
path: 'contribution',
|
||||
title: '贡献指南',
|
||||
@ -459,6 +455,15 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: '废弃',
|
||||
items: [
|
||||
{
|
||||
path: 'theme',
|
||||
title: '定制主题',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
'en-US': {
|
||||
@ -499,10 +504,6 @@ module.exports = {
|
||||
path: 'changelog',
|
||||
title: 'Changelog',
|
||||
},
|
||||
{
|
||||
path: 'theme',
|
||||
title: 'Custom Theme',
|
||||
},
|
||||
{
|
||||
path: 'design',
|
||||
title: 'Design Resources',
|
||||
@ -864,6 +865,15 @@ module.exports = {
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Deprecated',
|
||||
items: [
|
||||
{
|
||||
path: 'theme',
|
||||
title: 'Custom Theme',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user