Skip to content

Releases: tbrasington/typescale-generator

@initiate-ui/[email protected]

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

Patch Changes

  • e3470db: patched in step to object for filtering

@initiate-ui/[email protected]

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/[email protected]

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

Patch Changes

@initiate-ui/[email protected]

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

Patch Changes

@initiate-ui/[email protected]

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

Patch Changes

@initiate-ui/[email protected]

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

Patch Changes

@initiate-ui/[email protected]

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

Major Changes

@initiate-ui/[email protected]

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

@initiate-ui/[email protected]

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

Patch Changes

  • 99ed5c8: Provide commonjs exports

@initiate-ui/[email protected]

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

Major Changes

Patch Changes