-
Notifications
You must be signed in to change notification settings - Fork 2
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
Option to use all icons if location is provided #8
Comments
Hey, here are my thoughts.
I'm not sure if it's a good idea. Realistically a site doesn't use most of the icons of an extensive icon set, right? So by writing them out, I have this table of contents when looking at the tailwind config.
|
Thanks for your reply.
I can't say about this, but my use case lies because of a component library that makes use of an icon set which I prefer not to add to my list of dependencies but rather serve through Tailwind like UnoCSS; it's also difficult to predict which icons from that collection it uses behind the screen. |
Can you elaborate on this? For example, won't the users of the component library also have a |
Sorry for any misunderstandings - the component library isn't a Tailwind plugin! I meant a library for component-based frameworks such as React and Vue. They're typically not Tailwind based and so using & integrating Tailwind is a slight challenge, but they also tend to use their ecosystem where possible. For example - a Bootstrap component library making use of Bootstrap Icons by using the class |
Hello, sorry for the delay on this. I'm down to adding an option to include all icons from a set. For example, the minimum usage would then look like below: Icons(() => {
return {
bi: {
includeAll: true
}
}
}) This is what you were looking for, right? I'm still unclear about the CDN option. It seems to me that it would just save typing the whole URI. For example, |
Hi, thanks for following up. That's exactly what I'm looking for and it looks absolutely great. Thank you for the feature. :) I see and agree your point with not having a global CDN - while some use cases would still exist. Scoping is preferable! |
Thanks for this project!
Would it be possible to implement being able to use a whole collection if
collectionName.location
is provided andcollectionName.icons
doesn't need to be manually handled?Additionally if the plugin offers a main CDN option like
@unocss/preset-icons
without needing to add separate locations for each collection or if this is planned?The text was updated successfully, but these errors were encountered: