Comments (15)
简单来说就是把 src/style/base/variable/color.wxss 改了之后,自己再重新生成一个出来~
from weui-wxss.
@primary:#FF5200;
@disabled:#E5E5E5;
.primary-color{
color: #FF5200;
};
.primary-bg{
background: #FF5200;
}
[type="primary"]{
background: @primary;
}
[type="disabled"]{
background: @disabled;
}
from weui-wxss.
@ZxBee 我们要override方案你给的是overwrite...
from weui-wxss.
sorry
from weui-wxss.
@634750802 你想改的是哪里的primary?button的?
from weui-wxss.
对,包括所有的微信主色调(就是那个绿)的颜色,一个一个改太麻烦
from weui-wxss.
同问
from weui-wxss.
同问,好像wxss并没有详细的文档,而且很多类的用法都不直观,比如button type="primary"对应哪个类也不清楚
from weui-wxss.
尝试了几个less中override变量的方法,都没有成功。
from weui-wxss.
我是在小程序项目引入weui.wxss
, 改了里面的颜色值,并在 app.wxss
里引入... ...
如下的代码还是绿色。
<button class="weui-btn" type="primary"> 按钮 </button>
from weui-wxss.
@18601673727 , 直接在app.wxss重写此样式即可:
button[type="primary"] {
background: #333;
}
from weui-wxss.
from weui-wxss.
如 @tkggusraqk 所说,简单修改可以通过那种方式重写
from weui-wxss.
现在好像覆盖CSS变量就好了:
/**app.wxss**/
page {
--weui-BRAND: #939;
}
注意:我用的自带weui库
// app.json
"useExtendedLib": {
"weui": true
}
from weui-wxss.
@18601673727 , 直接在app.wxss重写此样式即可:
button[type="primary"] {
background: #333;
}
并不能覆盖啊
from weui-wxss.
Related Issues (20)
- Mixins.js bug 修改
- [feature request] support "prefers-color-scheme: dark"
- weui-actionsheet-cell 支持分享给好友吗
- 我用useExtendedLib配置方式引入 weui扩展组件,但是貌似不行。 有一个案例,可是看的不太懂。 跟着操作失败了 HOT 1
- vscode/微信开发者工具中没有补全能力
- ním 引入方式报错 HOT 4
- 不开源,放着干嘛?耍猴呢? HOT 1
- tabbar示例无法切换页面
- 经常提示这个:the type of property "search" is illegal
- 出个好的组件文档有这么难吗!! HOT 6
- IOS16.0 版本 显示异常? HOT 4
- 该如何消除控制台的【the type of property "search" is illegal 】警告? HOT 1
- 请问我如何运行扫码的小程序案例?
- mp-half-screen-dialog opacity 拼写错误
- 不想让大家用可以一开始就不要写 HOT 6
- steps组件缺少
- content 替换icon的文档有吗?纯猜
- 微信原生组件input在disabled的情况下无法选中内容,导致内容过长的情况下无法完全预览到所有内容。
- https://weui.io挂了
- 官方的库,能不能把警告都处理了?警告到底是有没有影响呢?自己定的规则自己都不遵守吗??
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weui-wxss.