PricingBlog

Changing SVG color

  • jacobwl-1108725986570272899

    hebbs

    2 years ago

    Hi friends. I copy/pasted some icons from copyicon.com which works great. I'm having issues changing the color afterwards. I tried setting fill and stroke in the css window, but it doesn't seem to work.

    How am I supposed to do it?

    ❤️
    1
    👍2
  • darrenbignall-1108730294044995655

    DarrenBignall

    2 years ago

    If you copy icons from here you can set the color and size before copying the svg, works really nicely https://tablericons.com/
  • jacobwl-1108738004568252457

    hebbs

    2 years ago

    Thanks @DarrenBignall - that'll do for now! Andreas told me its possible to do inside toddle, so looking forward to seeing what I'm doing wrong.
  • darrenbignall-1108739759158865971

    DarrenBignall

    2 years ago

    Looks like you can change the color stroke in attributes
  • 1108739868223361124-Screenshot_2023-05-18_at_13.56.03.png
  • jacobwl-1108772679378542653

    hebbs

    2 years ago

    yeah that works with the tabler icons, not with the others I had.
  • thanks again!
  • darrenbignall-1108781418886213752

    DarrenBignall

    2 years ago

    👍
  • svenning-1108846838955659396

    svenning

    2 years ago

    You can also set the stroke or fill color to "currentColor" — the svg will then be the color you set in its parent element (ie. the div or button in which the svg is placed) 👍
  • andrewohara-1171566202682867794

    andrew

    2 years ago

    I have an SVG logo that has multiple gradient colours. However when i paste this into Toddle it keeps changing the whole thing to solid black. How can I fix this?
  • andreasmoller-1171579050863632566

    Andreas Møller

    2 years ago

    Can you share the SVG code?
  • andrewohara-1171728895851118682

    andrew

    2 years ago

    I have messaged it to you, I didn't want to share my logo publicly 🙂
  • andreasmoller-1171731137471729695

    Andreas Møller

    2 years ago

    All good ill take a look
  • 282143925291057163-@Andreas Møller
    All good ill take a look
    andrewohara-1173552750030749797

    andrew

    2 years ago

    Hey Andreas, any update on this?