当前位置:网站首页>Small programs use npm packages to customize global styles
Small programs use npm packages to customize global styles
2022-07-30 04:45:00 【like Feynman %】
1.vant Weapp uses css variables to implement custom themes. For the basic usage of css variables, refer to the MDN documentation:
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

2. Customize the global theme style
In app.wxss, write css variables to take effect globally:
/*app.wxss*/page{/*Customize alert button background color and border color*/--button-danger-background-color:#e2bcbc;--button-danger-border-color:#83b8e4;}
边栏推荐
- QT(39)-vs development qt program prompts that the source file cannot be opened
- Mini Program wx.miniProgram.navigateTo jump address cannot be tabbar address
- [Linear table] - Detailed explanation of three practice questions of LeetCode
- Detailed explanation of REUSE_ALV_GRID_DISPLAY
- Discourse 自定义头部链接(Custom Header Links)
- Solve the error SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb7 in position 0: invalid start b
- The 2nd Shanxi Province Network Security Skills Competition (Enterprise Group) Part of the WP (9)
- POJ1321 棋盘问题(详解)
- DAY17:弱口令的探测与测试
- Database Design of Commodity Management System--SQL Server
猜你喜欢

How to use labelme

The VUX Datetime component compute-days-function dynamically sets the date list

5. View parsing and template engine

GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13

Golang eight-legged text finishing (continuous handling)

Introduction to database - MySQL simple introduction

webService接口

How does MySql find out the latest data row that meets the conditions?

【Redis高手修炼之路】Jedis——Jedis的基本使用

Alibaba Cloud's EasyNLP Chinese text image generation model takes you to become an artist in seconds
随机推荐
Unity3D Application simulation enters the front and background and pauses
Database Design of Commodity Management System--SQL Server
MNIST of Dataset: MNIST (handwritten digital image recognition + ubyte.gz file) data set introduction, download, usage (including data enhancement) detailed guide
Solve the go environment can not compile exe
05 Detailed explanation of the global configuration file application.properties
2.4希尔排序
Simulation problem (below)
五、视图解析与模板引擎
sql statement - how to query data in another table based on the data in one table
DAY17, CSRF vulnerability
SVN View Username and Password
解决go环境编译不了exe
聊一聊什么是SaaS,以及遇到的问题......
2.6基数排序(桶排序)
Classification of decision tree classification
全流程调度——Azkaban入门与进阶
Building and sharing the root of the digital world: Alibaba Cloud builds a comprehensive cloud-native open source ecosystem
共建共享数字世界的根:阿里云打造全面的云原生开源生态
Mini Program wx.miniProgram.navigateTo jump address cannot be tabbar address
2.6 Radix sort (bucket sort)