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
[Icons] Alias for icons #1767
Comments
Hi @kbond , not necessarily this particular icon, but rather an alias:icon format like today I want my alias "home" to refer to "material-symbols:home",
to
refresh the cache and voila |
What about using symbolinks instead? |
That could work today for sure. |
Yes, nice solution 👌 But I think a file based / config based way will ne more stable |
We will add several configuration parameters and "namespace aliases" are one of my top priorities, as all icon sets are not equal currently on a DX perspective (typing We've been very busy with support / minor bugs / documentation recently but we're going to work on Icon very very soon :) |
I think having aliases in config is valid. From a technical standpoint, we can decorate the current icon registry service with an As Simon said, we are going to be doing some work multiple icon sets/namespaces so let's keep this issue open as something to add after that. |
I will keep an eye on that, and if I can propose a pr, I will 👌 |
I'm not sure this will be necessary... i think we can resolve in the renderer (and this is precisely why i'd like to add "name" and "set/namespace" in the Icon object..) |
Hi !
I love the icon initiative, a very great ressource !
i'm comming with an idea, a thing that actually I use a lot in my custom projects:
an alias system for icons
Ex:
this will ensure consistency of the icon throughout the project, and to be able to easily change / update it in one go
Or maybe a way to create a custom twig extension extending ux_icons already exist ?
The text was updated successfully, but these errors were encountered: