Skip to content

Conversation

christianhg
Copy link

  • Before this change, ratios couldn't be used by consumers of this module.
  • This is a breaking API change that should result in a major version bump.

The motivation for this change is to allow us to do:
import { ms, ratios } from 'modularscale-js'

and subsequently do:
const fontSize = ms(2, { base: 18, ratio: ratios.goldenSection })

On a side note I thought the number alignment looked odd in the object literal, but I'll happily amend the commit if you want me to reimplement that.

Also, I might have some more suggestions to improving this module if you are open to it :)

- Before this change, ratios couldn't be used by consumers of this module.
- This is a breaking API change that should result in a major version bump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant