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

Feature request: find and replace value #69

Open
mesqueeb opened this issue Jul 5, 2020 · 2 comments
Open

Feature request: find and replace value #69

mesqueeb opened this issue Jul 5, 2020 · 2 comments

Comments

@mesqueeb
Copy link

mesqueeb commented Jul 5, 2020

I would love a certain colour in my sketch made icons to be replaced by currentColor on export!

What do you think? : D

@jeffdaley
Copy link

@mesqueeb You can add a currentColor param to the convertColors plugin:

    {
      "name": "convertColors",
      "enabled": true,
      "params": {
        "currentColor": true
      }
    }

But this will affect all colors rather than specific colors.

@jdahdah
Copy link

jdahdah commented Nov 4, 2021

FYI, if you want to replace a certain color, place that one in there instead of currentColor: true. So if you wanted to replace black (#000000), it would be:

{
  "name": "convertColors",
  "enabled": true,
  "params": {
    "currentColor": "#000000"
  }
},

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

3 participants