Skip to content

Instantly share code, notes, and snippets.

@mikeyamadeo
Last active August 8, 2016 20:46
Show Gist options
  • Save mikeyamadeo/34528e09f8d058a581d25002c92bb47e to your computer and use it in GitHub Desktop.
Save mikeyamadeo/34528e09f8d058a581d25002c92bb47e to your computer and use it in GitHub Desktop.
import { baseFontSize } from ‘./settings.js’
export const pxToEm = (px) =>
`${px / baseFontSize}em`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment