colour change while using cdn #6895
-
https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/instagram.svg by default this is white while using cdn in html pages. how can i turn this to white? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
I don't believe that's possible. You can copy the svg and change the |
Beta Was this translation helpful? Give feedback.
-
Through random luck did I find https://simpleicons.vercel.app, which seems to offer what you are looking for. In your case could you use https://simpleicons.vercel.app/instagram/fff for this output: |
Beta Was this translation helpful? Give feedback.
-
I've made a Cloudflare worker to change the attributes of an svg from a url. This way you can use whatever version of the icon you want and it's not limited to only Simple Icons. Repo link You can also use the Iconify API. Example request: https://api.iconify.design/simple-icons/cloudflare.svg?color=orange&height=100. I don't believe there's a way to specify a version though and the icon may be removed across breaking changes without warning. cc @Andre601 |
Beta Was this translation helpful? Give feedback.
I've made a Cloudflare worker to change the attributes of an svg from a url. This way you can use whatever version of the icon you want and it's not limited to only Simple Icons. Repo link
You can also use the Iconify API. Example request: https://api.iconify.design/simple-icons/cloudflare.svg?color=orange&height=100. I don't believe there's a way to specify a version though and the icon may be removed across breaking changes without warning.
cc @Andre601