Search code examples
rubygemssassjekyllbourbon

How to get Bitters working in Jekyll?


I have been using Bourbon and Neat in Jekyll with no problems. I am now trying to add Bitters to the mix, but am having problems. I have installed Bitters using gem install bitters and it works in non-Jekyll projects.

My _config.yml file contains gems: [bourbon, bitters, neat]. My scss file contains

@import 'bourbon';
@import 'base/base';
@import 'neat';

The error I get when I try to serve Jekyll is

File to import not found or unreadable: bitters.
Load paths: 
  C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bourbon-4.1.1/app/assets/stylesheets  
  C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/neat-1.7.1/app/assets/stylesheets on line 4

I have tried editing _grid_settings.scss as per the instructions here, but to no avail.

Edit

Here is the code on GitHub. The line @import 'base/base'; is commented out in _sass/_base.scss in order to get it to run.


Solution

  • Be sure to gem install bitters

    Uncomment the @import 'base/base'; in _sass/base.scss

    Then

    cd _sass
    bitters install
    cd ..
    jekyll serve
    

    Works perfect here on Ubuntu 14.04.