Giter Club home page Giter Club logo

Comments (15)

BearJ avatar BearJ commented on May 12, 2024 4

简单来说就是把 src/style/base/variable/color.wxss 改了之后,自己再重新生成一个出来~

from weui-wxss.

TimelyRainX avatar TimelyRainX commented on May 12, 2024 3
@primary:#FF5200;
@disabled:#E5E5E5;
.primary-color{
  color: #FF5200;
};
.primary-bg{
  background: #FF5200;
}
[type="primary"]{
  background: @primary;
}
[type="disabled"]{
  background: @disabled;
}

from weui-wxss.

18601673727 avatar 18601673727 commented on May 12, 2024 2

@ZxBee 我们要override方案你给的是overwrite...

from weui-wxss.

TimelyRainX avatar TimelyRainX commented on May 12, 2024 1

sorry

from weui-wxss.

BearJ avatar BearJ commented on May 12, 2024

@634750802 你想改的是哪里的primary?button的?

from weui-wxss.

634750802 avatar 634750802 commented on May 12, 2024

对,包括所有的微信主色调(就是那个绿)的颜色,一个一个改太麻烦

from weui-wxss.

coolhwm avatar coolhwm commented on May 12, 2024

同问

from weui-wxss.

zonnin avatar zonnin commented on May 12, 2024

同问,好像wxss并没有详细的文档,而且很多类的用法都不直观,比如button type="primary"对应哪个类也不清楚

from weui-wxss.

18601673727 avatar 18601673727 commented on May 12, 2024

尝试了几个less中override变量的方法,都没有成功。

from weui-wxss.

Coca-code avatar Coca-code commented on May 12, 2024

@BearJ

我是在小程序项目引入weui.wxss, 改了里面的颜色值,并在 app.wxss里引入... ...
如下的代码还是绿色。
<button class="weui-btn" type="primary"> 按钮 </button>

from weui-wxss.

tkggusraqk avatar tkggusraqk commented on May 12, 2024

@18601673727 , 直接在app.wxss重写此样式即可:
button[type="primary"] {
background: #333;
}

from weui-wxss.

Coca-code avatar Coca-code commented on May 12, 2024

from weui-wxss.

BearJ avatar BearJ commented on May 12, 2024

@tkggusraqk 所说,简单修改可以通过那种方式重写

from weui-wxss.

jarvisniu avatar jarvisniu commented on May 12, 2024

现在好像覆盖CSS变量就好了:

/**app.wxss**/
page {
  --weui-BRAND: #939;
}

注意:我用的自带weui库

// app.json
"useExtendedLib": {
  "weui": true
}

from weui-wxss.

chaoqunzhan avatar chaoqunzhan commented on May 12, 2024

@18601673727 , 直接在app.wxss重写此样式即可:
button[type="primary"] {
background: #333;
}
并不能覆盖啊

from weui-wxss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.