antd-theme-webpack-plugin icon indicating copy to clipboard operation
antd-theme-webpack-plugin copied to clipboard

Question: Does it work to update font-family or font-size in addition to colors ?

Open ikus060 opened this issue 2 years ago • 3 comments

I'm using this plugin in a project and I'm wondering if it's possible to use it to dynamically change the font-size or font-family.

I made a couple of test in a working project. While updating color seams to be working, other type of value doesn't get updated. So I'm wondering if it's a problem with my code or a limitation of the plugins.

ikus060 avatar Oct 02 '23 19:10 ikus060

Duplicate of #11 Sorry for the noise. Maybe this should be more explicit in the README file to explain it's limited to color only.

ikus060 avatar Oct 02 '23 20:10 ikus060

Duplicate of #11 Sorry for the noise. Maybe this should be more explicit in the README file to explain it's limited to color only.

This is mentioned in the very beginning paragraph in README file

This webpack plugin is to generate color specific less/css and inject into your index.html file so that you can change Ant Design specific color theme in browser.

mzohaibqc avatar Oct 03 '23 11:10 mzohaibqc

Duplicate of #11 Sorry for the noise. Maybe this should be more explicit in the README file to explain it's limited to color only.

I would recommend to upgrade ant design to latest and use theme tokens to update styles dynamically.

mzohaibqc avatar Oct 03 '23 11:10 mzohaibqc