Yes, but you would need to register the custom SVG in a plugin (themes should soon also be able to add custom icons to the SVG sprite set). See Introducing Font Awesome 5 and SVG icons for details.
I see thanks. I just have to list every tag I have in the CSS by name and specify the color. Would be nice though if I could do this from the admin panel like with the theme components using a comma separated list and providing the hex code just like for the icons.
Is there a way I can set a color for all tags in a tag group via CSS?
Looks like a fantastic tweak. Question for advice to the author: I am thinking of pimping my bland tags, some of which I use to tag posts by language (so I have tags “castellano”, “deutsch” etc.), with little country flags. Would uploading a custom .svg as described above be the way or are there preconfigured iconsets or maybe discourse-built-in emoji-sets that could be used?
Ok just one more semi-stupid question: how do I get the emoji to work as you did above with the francais? I tried creating a tag ":sweden:-svenska" but it doesn’t translate to the swedish flag
إذا فهمت الأمر بشكل صحيح، فلا توجد طريقة سهلة لاكتشاف المجموعة التي ينتمي إليها وسم معين داخل مُعرِّض الوسوم؟
هذه الفكرة ستكون رائعة. كنت أستخدم سابقًا نهج CSS مخصصًا ثم تخلّيت عنه لصالح مكون القالب هذا مع أيقونة احتياطية لجميع الوسوم غير المحددة (على الأقل قبل دعم مجموعات الوسوم)، وهذا هو الشيء الوحيد الذي أفتقده.
وبالنظر إلى أن discourse-category-icons يدعم هذه الميزة، فأنا أظن أن المُعرِّض الذي تستبدله replaceCategoryLinkRenderer يُستخدم في القائمة المنسدلة للفئات، بينما المُعرِّض الذي تستبدله replaceTagRenderer لا يُستخدم في القائمة المنسدلة للوسوم، أليس كذلك؟ لذا قد يتطلب هذا الأمر تغييرًا في النواة. فالقائمة المنسدلة للوسوم في المُنشئ تستخدم المُعرِّض المستبدل، مع الأيقونات.