coloreme
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

coloreme NPM version

Suite of color combinations for using in your projects

Install

npm install coloreme

or

yarn add coloreme

Usage

import { coloreme, coloremeList, colors } from 'coloreme';

console.log(coloreme.LightBlueCobalt);
/*
{
  name: 'LightBlueCobalt',
  color: '#CADCFC',
  bgColor: '#00246B',
  c: '#CADCFC',
  b: '#00246B',
  inverse: { color: '#00246B', bgColor: '#CADCFC', c: '#00246B', b: '#CADCFC' }
}
*/
/* Same as above */
console.log(colors.obj.BluePastelPink);

/* Get some pair by index from list */
console.log(coloremeList[11]);
/*
{
  name: 'BlondeYellowCandyPink',
  color: '#F9EC7E',
  bgColor: '#E26274',
  c: '#F9EC7E',
  b: '#E26274',
  inverse: { color: '#E26274', bgColor: '#F9EC7E', c: '#E26274', b: '#F9EC7E' }
}
*/
/* Previous analogue */
console.log(colors.list[11]);

console.log(colors.random()); // get random color pair

Screenshots

Screenshot

Screenshot2

License

MIT © Rushan Alyautdinov

/coloreme/

    Package Sidebar

    Install

    npm i coloreme

    Weekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    57.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • sinventor