Neutron

A Sass framework that empowers you to create flexible, clear, and semantic website layouts.

Visit Neutroncss.com

Challenge

I created Neutron after using Bootstrap and finding that it was essentially putting styling in the markup instead of in the stylesheet. Created as an open source proof-of-concept of what a modern layout framework would look like Neutron distilled what the core information a framework needs to provide simple to use layout tools.

The differing requirements of the various awards led to a situation where the development team was maintaining several slightly different versions of the same old codebase, with inconsistent bugs and functionality between them.

Process

Neutron was begun by breaking the idea of layout frameworks into their basic components: containers. Commonly used container and row classes in bootstrap led to redundant code in the markup, Neutron instead consolidated them into a single mixin.

The framework was created without an arbitrary limitation of 12 columns, allowing the user to use any number of columns that their layout requires. In addition to removing column limitations I was able to discard offset classes and other workarounds that tried to compensate for not being able to use margins in bootstrap and similar frameworks, enabling the user to use margins in their layout as one would expect with normal CSS.

In addition to matching existing functionality, I added a Sass version of the flexbox ‘order’ property. This allowed users to change the order of elements on the page without changing the order of the elements in the markup.

Demonstration of the easy-to-use syntax for setting columns.

Technology

Neutron was built using the latest version of Sass, creating a number of mixins and functions that created a complete layout framework engine output in CSS.

The framework is hosted on GitHub which is used for version control, issue management, and easy access to the web development community.

The Neutron documentation site was built as a static HTML and CSS website using NPM, Gulp, and Git to help manage build and deployment of the project.

The site is hosted on its own Ubuntu VPS using Apache with Node.js behind a proxy used to automatically deploy changes made to the master branch on GitHub.

Explanation of the customisations that can easily be applied.

© 2018-2020 Christopher Muller