twcolorgen
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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.

Option Type Description
--version boolean The CLI version
--help boolean Shows CLI help page
--name string The name to use for the color
--format string The outputted color format
--levels string The levels to generate shades for
--copy boolean Copy shade object to clipboard

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i twcolorgen

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

10.9 kB

Total Files

9

Last publish

Collaborators

  • geoff_selby