@fintory/utils
Available utilities
dynamicFontSize
Example usage:
import { fontSize } from '@fintory/utils'
fontSize(16)
fontSize(16, 1.6)
Hint: You may only use the fontSize
method, if you are also using styled-components
. Otherwise, you can just use the generateFontSize
function, which is also exported and can be used like this:
import { generateFontSize } from '@fintory/utils'
generateFontSize(16)
generateFontSize(16, 1.6)
Usage of only some parts of the package
To enable tree-shaking for specific parts of your application, you may need to scope the package a little more like @fintory/utils/es/dynamicFontSize
instead of @fintory/utils
(with spread).