Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

77. 修改 SVG 图标颜色 #77

Open
wqjiao opened this issue Apr 21, 2021 · 0 comments
Open

77. 修改 SVG 图标颜色 #77

wqjiao opened this issue Apr 21, 2021 · 0 comments

Comments

@wqjiao
Copy link
Owner

wqjiao commented Apr 21, 2021

我们发现 ant design 提供给我们的 icon 可以直接设置 color,但是 iconfont 网站有部分图标是无法设置颜色的,原因:
标签下的 path 固定的 fill 为某个颜色,所以无法设置

<path xmlns="http://www.w3.org/2000/svg" d="M275.346286 19.675429c144.457143-16.932571 334.226286 130.834286 294.692571 249.691428a21.156571 21.156571 0 0 1-11.117714 11.099429l-16.676572 11.099428c-42.660571-48.512-33.536-112.365714-105.636571-166.4-130.742857-111.926857-339.456-2.925714-366.976 149.814857-17.883429 175.725714 150.692571 193.883429 211.273143 282.916572a41.142857 41.142857 0 0 1-22.235429 22.198857C137.142857 620.342857-20.224 391.314286 14.006857 247.168 48.585143 101.522286 191.140571 28.288 275.346286 19.675429z m5.485714 127.616c85.942857 7.68 145.517714 46.281143 166.802286 116.516571l5.485714 66.578286L1009.371429 519.058286 1014.857143 546.742857l-305.810286 172.068572c-79.122286 80.841143-85.321143 238.427429-177.92 305.188571l-33.371428-16.64-177.938286-543.780571C86.034286 469.942857 64.237714 192.566857 280.905143 147.291429zM264.228571 213.942857a83.346286 83.346286 0 0 0-66.742857 60.982857c-11.483429 89.910857 46.445714 112.201143 94.518857 127.616-37.705143-113.517714-20.516571-137.270857 94.518858-99.876571v-22.198857A99.090286 99.090286 0 0 0 325.376 219.428571c-20.370286-1.828571-24.32-13.293714-61.147429-5.485714z m88.96 149.814857l177.938286 543.780572 16.676572-11.099429 133.485714-233.051428L898.084571 541.257143z" fill="#222222" p-id="7005"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant