theme-colors
easily generate color shades for themes
Last updated 3 months ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install theme-colors 
SYNC missed versions from official npm registry.

theme-colors

Easily generate color shades for themes

codecov npm version npm downloads package phobia bundle phobia

Install:

yarn add theme-colors

# or

npm i theme-colors

Usage:

import { getColors } from 'theme-colors'

const theme = getColors('#ABABAB')

// Using rgb
const theme = getColors('172,172,172')
{
  50: '#FBFBFB',
  100: '#F7F7F7',
  200: '#EAEAEA',
  300: '#DDDDDD',
  400: '#C4C4C4',
  500: '#ABABAB',
  600: '#9A9A9A',
  700: '#676767',
  800: '#4D4D4D',
  900: '#333333',
}

License

Inspired by javisperez/tailwindcolorshades

MIT. Made with ????

Current Tags

  • 0.0.5                                ...           latest (3 months ago)

5 Versions

  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           3 months ago
  • 0.0.3                                ...           3 months ago
  • 0.0.2                                ...           4 months ago
  • 0.0.1                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 3
Last Month 7
Dependencies (0)
None
Dev Dependencies (7)

Copyright 2014 - 2017 © taobao.org |