petrZ welcome to Flarum!
You can copy the CSS to the Custom CSS field under Appearance in the admin panel.
Then it should work just by inputting the class name in the Icon attribute of the tag I think, unless we have something that restricts the class names to fontawesome names.