export function customOnRamp()

in src/tag/styled-components.ts [14:49]


export function customOnRamp(color?: string, unit?: string) {
  switch (unit) {
    case '0':
      return 'white';
    case '50':
      // @ts-ignore
      return tint(0.8, color);
    case '100':
      // @ts-ignore
      return tint(0.6, color);
    case '200':
      // @ts-ignore
      return tint(0.4, color);
    case '300':
      // @ts-ignore
      return tint(0.2, color);
    case '400':
      return color;
    case '500':
      // @ts-ignore
      return shade(0.2, color);
    case '600':
      // @ts-ignore
      return shade(0.4, color);
    case '700':
      // @ts-ignore
      return shade(0.6, color);
    case '800':
      // @ts-ignore
      return shade(0.8, color);
    case '1000':
      return 'black';
    default:
      return color;
  }
}