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
How about make tailwind plugin intelligent like @egoist/tailwindcss-icons #241
Comments
It can accept custom icon sets in |
I know how to custom icon sets, meanwhile, I also want the feautre "classname intelligent" integrated, like: |
That VSCode plugin does not parse config files, so it cannot show custom icons. It only shows available open source icons. |
Actually... wrong response, I thought it was a different plugin. But still it is not possible, just for different reason. That VSCode plugin shows available selectors that are basic selectors, but icons in Iconify plugin are dynamic selectors. Making them static, like heroicons in your screenshot, is not possible because there are about 150k icons. It might work with |
https://github.com/egoist/tailwindcss-icons/blob/044a7c5bbaf572dabb0afd6001cf396918c8c358/src/index.ts#L23-L35 iconify/plugins/tailwind/src/plugin.ts Lines 12 to 19 in 4765dc9
The difference of the 2 plugins: Moreover, I found that heroicons has 800+ icons So how about add option (like Works like: // addDynamicIconSelectors()
className="icon-[mdi--home]"
// addDynamicIconSelectors({ intelligent: true })
className="icon-mdi--home" |
Big difference is If autocompletion is a must have, you can use |
I want both of benifits:
Since it is so, I'm trying to fork @iconify/tailwind and add what I want 😶🌫️ |
You can use that plugin with custom icon sets too. |
Great, but I have publiched my package tailwindcss-plugin-iconify 😂 and |
I want to use @iconify/tailwind with intelligent and add custom icon set, so how about of this?
If possible I can make a PR for it.
The text was updated successfully, but these errors were encountered: