1.0.0-beta.6 • Published 6 years ago

@ied/color v1.0.0-beta.6

Weekly downloads
154
License
MIT
Repository
-
Last release
6 years ago

Color

Install

yarn add @ied/color

Use

import { getColorFromString } from '@ied/color'

const firstName = 'Harvey'
const lastName = 'Milk'

const color = getColorFromString(`${firstName}${lastName}`)

Types

type GetColorFromString = (
  string: string,
  saturation?: number,
  luminosity?: number,
  opacity?: number,
) => string