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

Preview for custom collections #79

Open
3 tasks done
hrynevychroman opened this issue May 16, 2024 · 2 comments
Open
3 tasks done

Preview for custom collections #79

hrynevychroman opened this issue May 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hrynevychroman
Copy link

hrynevychroman commented May 16, 2024

It will be great to see custom icons as predefined in editor 🙂

So, now, if I define customCollection:

image

It is not shown, as default one:

image

Maybe I don't config it properly)

Suggested solution

I don't know 🫠

Alternative

No response

Additional context

No response

Validations

@hrynevychroman hrynevychroman added the enhancement New feature or request label May 16, 2024
@noootwo
Copy link
Contributor

noootwo commented Nov 12, 2024

You can create a json includes all your custom icons, like

{
  "prefix": "custom",
  "icons": {
    "icon1": {
      "body": "<path d=\"M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8h5z\" fill=\"currentColor\" />"
    }
  },
  "width": 24,
  "height": 24
}

And add an option in settings.json

{
  "iconify.customCollectionJsonPaths": [
    "./custom-collection.json"
  ]
}

@hugo-abdou
Copy link

@noootwo thanks this works for me i was using customAliasesJsonPaths insted of customCollectionJsonPaths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants