I want to use font-awesome in an Omega 4 subtheme. I added this line to Gemfile:

  gem 'font-awesome-sass'

and tried to import it in subtheme.styles.scss with:

@import "font-awesome-sass";

But I get this error after running compass compile:

"Syntax error: File to import not found or unreadable: font-awesome-sass.

I also tried @import "font-awesome-sass.css" with no error, but no new stylesheet file is added to the subtheme pages.

Any suggestion?

closed as off-topic by kiamlaluno Jul 2 at 6:00

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on programming, PHP, SQL, etc. that do not relate directly to Drupal are off-topic here, but can be asked on Stack Overflow." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.


Adding it to the Gemfile alone doesn't install the library. The Gemfile is used by a program called Bundler that manages your Ruby gems for you. You need to make sure you have this installed with sudo gem install bundler and then run bundle install where the Gemfile is located (your theme directory).

Alternatively you could just install font-awesome-sass yourself with sudo gem install font-awesome-sass.

  • I have also run this command (bundle install), and bundle show font-awesome-sass shows that it is installed correctly – hpn Mar 10 '14 at 9:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.