@kolhe/colors
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

🎨 Colors

A small utility library to generate different shades for tailwind

Install:

yarn add @kolhe/colors

🔍 Usage

import { getColors } from '@kolhe/colors'

// using hex
const theme = getColors('#FF5555')

// using rgb
const theme = getColors('255,85,85')
{
  0: '#FFFFFF',
  50: '#FFF2F2',
  100: '#FFE6E6',
  200: '#FFBFBF',
  300: '#FF9999',
  400: '#FF4D4D',
  500: '#FF0000',
  600: '#E60000',
  700: '#BF0000',
  800: '#990000',
  900: '#730000',
  950: '#4A0000',
  1000: '#000000'
}

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i @kolhe/colors

Weekly Downloads

80

Version

0.0.2

License

MIT

Unpacked Size

8.79 kB

Total Files

8

Last publish

Collaborators

  • sumitkolhe