1.1.1 • Published 2 years ago

twcolorgen v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tailwind Color Shades Generator

Generate Tailwind Css color shades in the blink of an eye right in your terminal.

GitHub Workflow Status Version License

Features

  • Generate Tailwind Css color shades from your terminal
  • Preview generated shades in your terminal
  • Copy generated shade object
  • Choose which levels to generate
  • Use custom name or let us choose one for you

Installation

npm install -g twcolorgen

Usage

# Using HEX format
twcolorgen 3b82f6 --name blue

# Using HSL format
twcolorgen "hsl(217, 91%, 60%)" --name blue

# Using RGB format
twcolorgen "rgb(59, 130, 246)" --name blue

# Outputting a different format (hex, rgb, hsl)
twcolorgen 3b82f6 --name blue --format rgb

# Generating specific levels
twcolorgen 3b82f6 --name blue --levels 200 300 400 700 800

Options

The twcolorgen command accepts multiple flags. All of the flags are optional.

OptionTypeDescription
--versionbooleanThe CLI version
--helpbooleanShows CLI help page
--namestringThe name to use for the color
--formatstringThe outputted color format
--levelsstringThe levels to generate shades for
--copybooleanCopy shade object to clipboard

License

MIT