Releases: tbrasington/typescale-generator
Releases · tbrasington/typescale-generator
@initiate-ui/typescale-generator@2.0.1
Patch Changes
- e3470db: patched in step to object for filtering
@initiate-ui/typescale-generator@2.0.0
Major Changes
-
e8557b3: # what
Move from min and max to sizes
why
This is more flexible and allows for more control over the scale for tools like Figma that may need granular access to specific sizes at certain breakpoints (or classic css media queries)
how
Old method
const scale = buildTypographyScales({ range: [-1, 0, 2], min: { width: 320, fontSize: 16, typeScale: TypographyScaleValues.MINOR_SECOND.value }, max: { width: 1440, fontSize: 20, typeScale: TypographyScaleValues.PERFECT_FOURTH.value } });
New method
const scale = buildTypographyScales({ range: [-1, 0, 2], sizes: [ { $name: "BP1", width: 320, fontSize: 16, typeScale: TypographyScaleValues.MINOR_SECOND.value }, { $name: "BP2", width: 768, fontSize: 18, typeScale: TypographyScaleValues.PERFECT_FOURTH.value }, { $name: "BP3", width: 1440, fontSize: 20, typeScale: TypographyScaleValues.PERFECT_FOURTH.value } ] });
@initiate-ui/typescale-cli@1.0.1
@initiate-ui/typescale-generator@1.0.3
Patch Changes
- 0d938d6: Change typings
@initiate-ui/typescale-generator@1.0.2
Patch Changes
- 9846189: compiler options
@initiate-ui/typescale-generator@1.0.1
Patch Changes
- bbee9ea: package json fix
@initiate-ui/typescale-generator@1.0.0
Major Changes
- e034700: release
@initiate-ui/typescale-generator@0.0.9
Patch Changes
- 3c2592b: build
@initiate-ui/typescale-generator@0.0.8
Patch Changes
- 99ed5c8: Provide commonjs exports