Hi I'm using package Our.Iconic And I would preceate som help with regex for fontawesome 6 I want to render <i class="fa-light fa-alarm-exclamation"></i>
I have tried
I have just been trying to get Font Awesome 6 working with this also.
I found that if you use the following regex ".(fa-[\w-]+):{2}before {" it should return the icons.
I'm using the all.css file on both the css file and Rules source file as I believe all the icons are in this css file, and you can swap out the light|regular|bold|duotone etc out using a different selector.
something like this should work fine (although there is no actual way to tell if it is a brand unless you pull them into a sperate css file since they have the same naming format as any other fontawesome icon
Regex for Fontawesome 6
Hi I'm using package Our.Iconic And I would preceate som help with regex for fontawesome 6 I want to render
<i class="fa-light fa-alarm-exclamation"></i>
I have tried./fa-(light)+:before {
./fa-(solid|regular|light|brands|duotone|thin)+:before {
.(fa-[\w-]+):before {
Nothing seems to works, I have checked the path to the font and it's ok. Maybee someone can point me in right direction.
Many thanks in advance /Christina
Hello,
I have just been trying to get Font Awesome 6 working with this also.
I found that if you use the following regex ".(fa-[\w-]+):{2}before {" it should return the icons.
I'm using the all.css file on both the css file and Rules source file as I believe all the icons are in this css file, and you can swap out the light|regular|bold|duotone etc out using a different selector.
Attached picture below of my config.
Hopefully that works for your setup also!
Thanks,
Christian
Hi it works you have saved my, day big thanks. /Christina
I tried this for the brands. But its not working :( Can anyone help me?
Thanks in advance, G.
@Guy, did you get anywhere with the brands as I'm now running into exactly the same problem?
something like this should work fine (although there is no actual way to tell if it is a brand unless you pull them into a sperate css file since they have the same naming format as any other fontawesome icon
Thanks Huw. That regex in the Selector and changing the css file and rules from all.css to brands.css has done the trick.
is working on a reply...