While switching from Bootstrap to Bourbon with Neat grid I encountered an issue trying to overwrite the Neat grid.
According to thoughtbot,
the grid overwrites need to be defined between loading Bourbon and Neat scss files.
Because I want to include Bourbon and Neat through wiredep loading the bower components it is not possible to include a local ‘grid-settings.scss’ file between Bourbon and Neat.
The only way I’ve managed to get my grid overwrites in between Bourbon and Neat is by creating my own ‘neat custom grid’ repository and adding it to my bower.json.
(making sure the wiredep queues it correctly by not declaring neat dependancy and naming it correctly so it is actually loaded after Bourbon and Before Neat)
For illustration, my current main.scss wiredep injects looks like this:
// Automatically injected Bower dependencies via wiredep (never manually edit this block)
// bower:scss
@import "../../bower_components/bourbon/app/assets/stylesheets/_bourbon.scss";
@import "../../bower_components/bourbon-neat-custom-grid/_neat-custom-grid.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_private.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_box-sizing.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_omega.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_outer-container.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_span-columns.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_row.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_shift.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_pad.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_fill-parent.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_media.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_to-deprecate.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_visual-grid.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_display-context.scss";
@import "../../bower_components/neat/app/assets/stylesheets/grid/_direction-context.scss";
// endbower
I would like to have the grid overwrite files (with neat helpers) injected in between Bourbon and Neat without adding my own repository as a bower package.
Is there a better/cleaner way to handle Neat grid overwrites?
ps. I wonder whether the planned Yeoman generator will support a way to overwrite the Neat grid.