Skip to content

Generate a palette of the lightest, darkest, and most vibrant colors from a set

License

Notifications You must be signed in to change notification settings

basekit/colortone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorTone

Installation

Through composer:

composer require basekit/colortone

Usage

$swatch = ['#FFFFFF', '#01B4F0', '#70C759', '#313748', '#888888'];
$colorTone = new \ColorTone\ColorTone;
$palette = $colorTone->generatePalette($swatch);

var_dump($palette);
// array(3) {
//   ["light"]=>
//   string(7) "#FFFFFF"
//   ["dark"]=>
//   string(7) "#313748"
//   ["vibrant"]=>
//   string(7) "#01B4F0"
// }

About

Generate a palette of the lightest, darkest, and most vibrant colors from a set

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages