Options
All
  • Public
  • Public/Protected
  • All
Menu

css-size-scale

Index

Type aliases

Functions

Type aliases

Scale: {}

A series of CSS values that are equidistant from each other.

Type declaration

  • [step: number]: string

Functions

  • sizeScale(positions: number, step?: number, unit?: string): Record<number, string>
  • Generate a size scale of CSS values. Defaults to 4px increments.

    Parameters

    • positions: number

      Number of positions in the scale.

    • step: number = 4

      How many units per interval

    • unit: string = 'px'

      Unit of measurement

    Returns Record<number, string>

Generated using TypeDoc