@skchr/color
    Preparing search index...

    Function default

    • Creates a palette that consists of a baseColor that is incremented by a hueStep to get the final color to pair with. The colors are then spline interpolated via white or black.

      A negative hueStep will pick a color that is hueStep degrees behind the base color.

      Parameters

      • baseColor: ColorToken = "cyan"

        The color to return a paired color scheme from.

      • Optionaloptions: PairedSchemeOptions

        The optional overrides object to customize per channel options like interpolation methods and channel fixups.

      Returns
          | string
          | number
          | boolean
          | object
          | ColorTuple
          | ColorToken[]
          | Map<string | number, ColorToken>
          | Set<ColorToken>

      • The paired color scheme as a collection or a single color token.
      import { pair } from '@skchr/color'

      console.log(pair("green",{hueStep:6,num:4,tone:'dark'}))
      // [ '#008116ff', '#006945ff', '#184b4eff', '#007606ff' ]