Skip to content

Commit

Permalink
docs: add more notes on modular scales
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya authored Nov 5, 2019
1 parent 5385ad6 commit 5b8a623
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ Use https://polished.js.org/docs/#modularscale or something similar.
'font-size': Array.from({ length: 5 }, (_v, index) => polished.modularScale(index)),
```

First value is the step, second the starting value (defaults to `'1em'`) and third is the modular scale, which can
be one of the values defined here: https://polished.js.org/docs/#modularscaleratio

You can preview modular scales here: https://www.modularscale.com/

### Generate custom color combinations

Use https://github.com/TypeCtrl/tinycolor#color-combinations or something similar.
Expand Down

0 comments on commit 5b8a623

Please sign in to comment.