Skip to content

0wx/seed-to-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Seed to Color 🌈

Generate random Color using seeder that you prefered.

Language grade: JavaScript Total alerts npm

installing:

yarn add seed-to-color

or

npm i seed-to-color

Example usage:

Random light color ☀️

import { randomLightColor } from 'seed-to-color'

const username = '0wx'
const color = randomLightColor(username) // 'EBE1EB'

Random dark color 🌒

import { randomDarkColor } from 'seed-to-color'

const fullName = 'Gilang Ramadhan'
const color = randomDarkColor(fullName) // '397F7B'

Random color 🌈

import { randomColor } from 'seed-to-color'

const userId = 123
const color = randomColor(userId) // 'E9E385'

About

Library to generate color from given seed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published