sumitkolhe / colors

A small utility library to generate different shades for tailwind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎨 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.

About

A small utility library to generate different shades for tailwind

License:MIT License


Languages

Language:TypeScript 100.0%