Bourbon Neat is a lightweight, semantic, and fluid grid framework built with Sass. Currently at stable version 4.0.0, it aims to provide a flexible foundation for responsive layouts while being straightforward to integrate. Its release cadence involves major versions every few years, with more frequent minor and patch updates addressing fixes and enhancements. A key differentiator is its emphasis on semantic markup and a 'fluid first' approach to grid design, offering robust mixins for defining columns, gutters, and media queries without injecting excessive presentational classes into HTML. It is part of the 'Bourbon Family' of Sass tools, which implies good interoperability with other libraries like Bourbon and Bitters.
npm install bourbon-neatVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up a basic responsive grid. It shows `outer-container` for overall layout, `column` for defining element widths, `omega()` for clearing floats on the last column, and responsive `media` queries, including using a custom grid.
Migrate your project to use `npm install --save bourbon-neat` or `gem install neat` for installation, updating your build process accordingly.
Verify your project uses a modern Sass compiler (e.g., Dart Sass, `node-sass`) and update your build scripts if they implicitly relied on the Ruby Sass gem's presence.
Review your Sass files for `grid-collapse` usage and adjust layouts that might be affected by the `float` property removal. Explore `grid-shift` for offsetting columns and `grid-media` for managing responsive grids.
Update Neat to v1.9.1 or newer. For custom Sass, replace `&&` with the `and` keyword in boolean expressions.
Standardize on `@import` rules for all Sass dependencies, including Neat, and avoid using Sprockets directives in your `.scss` files if you wish to use Sass's `@import` functionality effectively.
Run `bundle update sass` to upgrade the `sass` gem to a compatible version within your Ruby on Rails project.
This specific issue was fixed in Neat v3.0.1. Upgrade your `bourbon-neat` package to version 3.0.1 or newer. Ensure your `node-sass` `includePaths` are correctly configured if using npm.
This issue was fixed in Neat v2.1.0. Upgrade your `neat` gem to version 2.1.0 or newer. Also, ensure your `application.scss` correctly uses `@import "neat";`.