当前位置:网站首页>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;}
边栏推荐
- Xiamen SenseCore Technology MC3172(1): Introduction and Environment Construction
- C. Qualification Rounds
- 1315_使用LOOPBACK模拟模式pyserial安装是否成功的测试
- protobuf 中复合数据类型的读写
- Simple experiment with BGP
- A brief introduction to the SSM framework
- Chapter8 Support Vector Machines
- C. Travelling Salesman and Special Numbers (binary + combination number)
- webService interface
- 字符串问题(下)
猜你喜欢

sql statement - how to query data in another table based on the data in one table

如何与墨西哥大众VW Mexico建立EDI连接

小程序npm包--API Promise化

See you in shenzhen!Cloud native to accelerate the application building special: see cloud native FinOps, SRE, high-performance computing scenario best practices

Excellent MySQL interview questions, 99% must ask in preparation for August!I can't pass the interview
Go 学习笔记(84)— Go 项目目录结构

共建共享数字世界的根:阿里云打造全面的云原生开源生态

Database Design of Commodity Management System--SQL Server

Discourse 自定义头部链接(Custom Header Links)
Go study notes (84) - Go project directory structure
随机推荐
Code readability, pre-checks, comments and summaries
斐波那契数列的递归优化《备忘录递归》
How does MySql find out the latest data row that meets the conditions?
Perspective transformation matrix of image perspective correction should be matrix (single)/findHomography with getPerspectiveTransformd difference
解决报错SyntaxError: (unicode error) ‘utf-8‘ codec can‘t decode byte 0xb7 in position 0: invalid start b
Shell script basic editing specifications and variables
四、Web开发
[Linear table] - Detailed explanation of three practice questions of LeetCode
Unity beginner 5 cameras follow, border control and simple particle control (2 d)
五、视图解析与模板引擎
Boss Rush (two-point answer + DP)
双指针问题(中)
What is the data directory?Why do you need it?
MYSQL unique constraint
DAY17: weak password detection and test
Code open source design and implementation ideas
Using the GPU parallel computing 】 【 OpenCL&OpenCLUtilty GPU parallel computing
Image stitching (registration) case based on OpenCV
Six, read application configuration + log configuration
Notes on "The Law of Construction"---Chapter 10 Typical Users and Scenarios