Socket
Socket
Sign inDemoInstall

theme-colors

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theme-colors

easily generate color shades for themes


Version published
Weekly downloads
2.8K
increased by28.21%
Maintainers
1
Weekly downloads
 
Created
Source

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 💖

Keywords

FAQs

Package last updated on 26 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc