JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8811
  • Score
    100M100P100Q119775F
  • License MIT

easily generate color shades for themes

Package Exports

  • theme-colors

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (theme-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 💖