@ied/color

1.0.0-beta.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ied/color

Weekly Downloads

1

Version

1.0.0-beta.6

License

MIT

Unpacked Size

12.2 kB

Total Files

5

Last publish

Collaborators

  • vibbou
  • lfalorni