@skchr/color
    Preparing search index...
    • Creates a color scale between an earth tone and any color token using spline interpolation.

      Parameters

      • baseColor: ColorToken = "cyan"

        The color to interpolate an earth tone with.

      • Optionaloptions: EarthtoneOptions = {}

        Optional overrides for customising interpolation and easing functions.

      Returns ColorToken | ColorToken[]

      • The interpolated earth tone color(s).
      import { earthtone } from '@skchr/color'


      console.log(earthtone("pink",'lch',{earthtones:'clay',samples:5 }))
      // [ '#6a5c52', '#8d746a', '#b38d86', '#d9a6a6', '#ffc0cb' ]