@ied/color

yarn add @ied/color

Usage no npm install needed!

<script type="module">
  import iedColor from 'https://cdn.skypack.dev/@ied/color';
</script>

README

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