Skip to content

Releases: tbrasington/typescale-generator

@initiate-ui/typescale-generator@2.0.1

16 Nov 18:24
9250fd2
Compare
Choose a tag to compare

Patch Changes

  • e3470db: patched in step to object for filtering

@initiate-ui/typescale-generator@2.0.0

16 Nov 18:10
ac814cb
Compare
Choose a tag to compare

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

16 Nov 18:24
9250fd2
Compare
Choose a tag to compare

Patch Changes

  • e3470db: patched in step to object for filtering
  • Updated dependencies [e3470db]
    • @initiate-ui/typescale-generator@2.0.1

@initiate-ui/typescale-generator@1.0.3

20 Jul 11:36
b2cf845
Compare
Choose a tag to compare

Patch Changes

@initiate-ui/typescale-generator@1.0.2

20 Jul 09:43
fc6ec6b
Compare
Choose a tag to compare

Patch Changes

@initiate-ui/typescale-generator@1.0.1

20 Jul 09:21
0422a90
Compare
Choose a tag to compare

Patch Changes

@initiate-ui/typescale-generator@1.0.0

20 Jul 09:10
d84c8ae
Compare
Choose a tag to compare

@initiate-ui/typescale-generator@0.0.9

20 Jul 08:36
135c8c5
Compare
Choose a tag to compare

@initiate-ui/typescale-generator@0.0.8

20 Jul 07:46
ca046f9
Compare
Choose a tag to compare

Patch Changes

  • 99ed5c8: Provide commonjs exports

@initiate-ui/typescale-cli@1.0.0

20 Jul 09:10
d84c8ae
Compare
Choose a tag to compare

Major Changes

Patch Changes

  • Updated dependencies [e034700]
    • @initiate-ui/typescale-generator@1.0.0