CSSensible

CSSensible finds sensible default values for font-size and line-height by identifying available vertical grids.

Installation

You can install through a gem.

$ gem install cssensible

Usage

You can find sensible vertical grids for one or several font-sizes.

$ cssensible [options] font-size [font-size font-size ...]

Options:

-l, --line-height [EM]    Minimum em-value all line-heights should have
-h, --help                Shop help
    --version             Show version

Examples

# finds sensible grids including a font-size of 12px
$ cssensible 12

# finds sensible grids including both 12px and 16px
$ cssensible 12 16

# finds sensible grids including both 12px and 16px where the resulting
# line-height for every font-size is at least 1.3em
$ cssensible --line-height 1.3 12 16

Documentation

View the HTML document: $ open doc/index.html

Problems?

Please open an issue.

Author

License

CSSensible is released under the MIT License.