mzohaibqc / antd-theme-webpack-plugin

A webpack plugin for Dynamic theme generation for Ant Design

Home Page:https://mzohaibqc.github.io/antd-theme-webpack-plugin/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing some variables affects others as well

sunsetninja opened this issue · comments

Hi! When i'm change variable @label-color, for example, @heading-color changes as well, but in the library (antd) code they are related like this @label-color: @heading-color;.

Webpack plugin config

webpack

Code, that changes variables

component

@sunsetninja show me your vars.less. What's @label-color value in vars.less file?

@mzohaibqc i'm just import default antd variables in this file

@sunsetninja that's the reason. All variables that you want to update dynamically must have a unique color value in vars.less file. Simply define variable in your own variables files and assign a default unique color code.

@sunsetninja Did above solution fixed your problem?

Clsing this due to no activity