A tiny add-on for Bootstrap giving you the divine power of using golden ratio sized columns.
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests Overhaul tests Feb 6, 2014
golden-bootstrap.css Add golden-bootstrap.css and golden-bootstrap.min.css Feb 6, 2014
golden-bootstrap.min.css Add golden-bootstrap.css and golden-bootstrap.min.css Feb 6, 2014
golden-bootstrap.scss Add golden-boostrap.scss for 3.1 Feb 6, 2014
readme.md Wordsmith Feb 6, 2014


Golden Bootstrap

Golden Bootstrap is a tiny add-on for Bootstrap giving you the divine power of using golden ratio sized columns. Available both for Less and Sass CSS preprocessors.


Include golden-bootstrap.less in bootstrap.less or golden-bootstrap.scss in bootstrap.scss, and that's it.

// Core CSS
@import "golden-bootstrap/golden-bootstrap.scss"; // Add support for Golden Bootstrap

Then, like you would do with any other Bootstrap default column, simply use a set of .golden-sm and .golden-lg columns:

<div class="row">
  <div class="col-golden-sm">...</div>
  <div class="col-golden-lg">...</div>
<div class="row">
  <div class="col-golden-offset-sm">...</div>

<div class="row">
  <div class="col-golden-offset-lg">...</div>

<form class="form-horizontal" role="form">
  <div class="form-group">
    <label class="col-golden-sm control-label">Email</label>
    <div class="col-golden-lg">
      <input type="email" class="form-control" placeholder="Email">

How it works

“Two quantities are in the golden ratio if the ratio of the sum of the quantities to the larger quantity is equal to the ratio of the larger quantity to the smaller one” (source). Under the hood it looks like this:

$golden-ratio:    1.6180339887498948482;
$golden-lg:       (1 / $golden-ratio);
$golden-sm:       (1 - $golden-lg);

Golden Bootstrap uses $grid-gutter-width values specified in bootstrap's variables.scss to generate the grid system.



Golden Bootstrap follows the same versionning than Bootstrap, see versionning.


Philippe Dionne

Copyright and license

Copyright 2014 Philippe Dionne

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.