Skip to content

Conversation

@gapurov
Copy link

@gapurov gapurov commented Dec 27, 2025

  • If you list prefixes as plain strings, we now check iconSets first instead of always assuming @iconify-json/.
  • Existing source-based configs keep working as-is.
  • Added a quick test to cover local icon sets with clean selectors.

Why

With CSS-only configs, clean selectors were failing for local icon sets because the plugin always tried to load @iconify-json/<prefix>. This makes icon-sets: from-folder(...) work the way you’d expect.

This is now possible:

 @plugin "@iconify/tailwind4" {
    icon-sets: from-folder(custom-icon-prefix, "./src/assets/icons/custom");
    prefixes: custom-icon-prefix, mdi-light;
 }

@gapurov gapurov marked this pull request as ready for review December 27, 2025 17:07
@gapurov
Copy link
Author

gapurov commented Jan 8, 2026

@cyberalien, friendly asking to review this small PR, and to check whether it aligns with your vision. Thank you.

@cyberalien
Copy link
Member

Sorry for delay. At first glance it looks good, but I'll need to test it. It might take few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants