Active
Project:
Iconset
Version:
2.0.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Aug 2024 at 14:21 UTC
Updated:
8 Jun 2025 at 07:03 UTC
Jump to comment: Most recent
Hello,
We are the people from https://www.drupal.org/project/ui_suite and our goal is to allow declaration of deign systems artefacts (components, utilities, variables... and of course icons!) by themer, in YAML files, for integration in Drupal API.
![]()
We want to thank you because, while we were struggling to define the architecture of our module about icons management, we got a look on iconset module, and wow! some of the ideas were eyes opening:
We borrowed those ideas and mixed them with our owns. I hope our modules will be both successful and find their own audiences. Maybe we will have opportunities to collaborate some day.
Regards,
Pierre
Comments
Comment #2
celdia commentedYes, I confirm that. It is such a clever way of managing icons and iconsets, while being compatible with the Design System we tested (Bootstrap, DSFR, USWDS, Material...)
Comment #3
pdureau commentedHello iconset team,
We have proposed a MR for this core issue: #3471494: Add an icon management API
With an API containing:
iconpackplugin type with its plugin manager >> kind of equivalent to your iconset pluginextractorplugin type with its plugin manager, its PHP attribute notation & an icon finder service >> kind of equivalent to your icon handler pluginicon()Twig function &iconrender element >> equivalent to yourspath,svg&svg_spriteextractors >> I guess kind of similar to image & svg handlersWe would love to have your opinion on this MR. Is the proposal good enough to build the next version of iconset module on it?
Leveraging this API, iconset can still propose:
svg_fonthandlericonset_selectorform elementComment #4
pdureau commentedComment #5
lemming commentedThank you for the kind words and the work to get a consistent icon management system for Drupal Core.
I apologize for the extended time it took to respond. I have been working on other focuses, and needed a break from Drupal. I had a few plans for some feature improvements that I'll focus on targeting with the Drupal 11.1 release.
One big one was the ability to override icons in themes. So a module could define an edit icon for use with functionality and provide a default icon, but themes could change the icon display to fit the theme aesthetic.
I'm a bit behind maintaining and building some modules, so it might take me a little bit of time to get caught up, but this is on my list.
Thanks again!
Comment #6
pdureau commentedI hope you have rested and feel better.
Great :) Tell us if you have questions.
I woudl love to use such a feature.
Comment #7
pdureau commentedHi, for information we are now working on a Form Element for this Icon API: #3528969: Add form element(s) for Icon API
Don't hesitate to share your insights from IconsetSelector implementation.