Thanks you for this wonderful module

Created on 7 August 2024, 3 months ago

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:

  • the plugin type with YAML discovery is defining icon sets instead of icons themselves. Genius! Indeed, iconset is the UI artefacts to implement here. And YAML declaration which is in the spirit of what we already have in our ecosystem (being front-developer friendly)
  • icons themselves are "discovered" by another plugin type, written as PHP classes by back dev, with the logic to extract the icon list.

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

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pdureau
  • 🇫🇷France celdia

    Yes, I confirm that. It's a real protype to have an idea of how to manage an icon sets. Also tested and compatible with most of Design System (Bootstrap, DSFR, USWDS, Material...)

  • 🇫🇷France pdureau Paris

    Hello iconset team,

    We have proposed a MR for this core issue: Add an icon management API Active

    With an API containing:

    • iconpack plugin type with its plugin manager >> kind of equivalent to your iconset plugin
    • extractor plugin type with its plugin manager, its PHP attribute notation & an icon finder service >> kind of equivalent to your icon handler plugin
    • icon() Twig function & ui_icon render element (renamed icon) >> equivalent to yours
    • path, svg & svg_sprite extractors >> I guess kind of similar to image & svg handlers

    We 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 from its current API:

    • the svg_font handler
    • the iconset_selector form element
    • the integration with the field API (type, formatter, widget)
    • the integration with the menu API
    • the integration with Ckeditor5
    • maybe more...
Production build 0.71.5 2024