An open API service indexing awesome lists of open source software.

https://github.com/jsit/sass-type-aid

scss mixins to help with typographic rhythms etc.
https://github.com/jsit/sass-type-aid

Last synced: 15 days ago
JSON representation

scss mixins to help with typographic rhythms etc.

Awesome Lists containing this project

README

          

# Sass Type Aid

scss mixins to help with typographic rhythms etc.

# Installation

`bower install --save-dev https://github.com/jsit/sass-type-aid.git`

# Usage

## Font size

When setting font sizes, use the `rhythm-font-size` mixin, passing a unitless parameter that will increase the font size that number of steps on the modular scale. The `line-height` will also be set to an amount (not smaller than `$min-line-height` that maintains vertical rhythm. For instance:

**Input**
```scss
h4 {
@include rhythm-font-size(2);
}
```

**Output**
```css
h4 {
font-size: 23.04px;
font-size: 1.44rem;
line-height: 1.80556;
margin: 0;
}
```

# Dependencies

[Bourbon](https://bourbon.io)