# twcolorgen

> Generate Tailwind Css color shades in the blink of an eye.

Latest version **1.1.1** (published 2022-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install twcolorgen
pnpm add twcolorgen
yarn add twcolorgen
bun add twcolorgen
```

Provides the command `twcolorgen`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-05-01 |
| First published | 2021-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 9 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Geoff Selby @GeoffSelby |
| Maintainers | geoff_selby |
| Keywords | oclif |

## Links

- npm: https://www.npmjs.com/package/twcolorgen
- Repository: https://github.com/GeoffSelby/twcolorgen
- Issues: https://github.com/GeoffSelby/twcolorgen/issues
- npm.io page: https://npm.io/package/twcolorgen

## Dependencies (9)

- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [tslib](https://npm.io/package/tslib.md) ^1
- [cli-ux](https://npm.io/package/cli-ux.md) ^5.5.1
- [clipboardy](https://npm.io/package/clipboardy.md) ^2.3.0
- [color-namer](https://npm.io/package/color-namer.md) ^1.4.0
- [@oclif/config](https://npm.io/package/@oclif/config.md) ^1
- [@oclif/command](https://npm.io/package/@oclif/command.md) ^1
- [lodash.camelcase](https://npm.io/package/lodash.camelcase.md) ^4.3.0
- [@oclif/plugin-help](https://npm.io/package/@oclif/plugin-help.md) ^3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2022-05-01
- 1.1.0 — 2022-04-30
- 1.0.2 — 2021-09-01
- 1.0.1 — 2021-08-31
- 1.0.0 — 2021-06-10

## README

# Tailwind Color Shades Generator

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

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/GeoffSelby/twcolorgen/Tests%20CI/main?style=for-the-badge)](https://github.com/GeoffSelby/twcolorgen)
[![Version](https://img.shields.io/npm/v/twcolorgen.svg?style=for-the-badge)](https://npmjs.org/package/twcolorgen)
[![License](https://img.shields.io/npm/l/twcolorgen?style=for-the-badge)](https://github.com/GeoffSelby/twcolorgen/blob/master/package.json)

<!-- toc -->

- [Tailwind Color Shades Generator](#tailwind-color-shades-generator)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [License](#license)
<!-- tocstop -->

# Features

<!-- 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

<!-- featuresstop -->

# Installation

<!-- installation -->

```bash
npm install -g twcolorgen
```

<!-- installationstop -->

# Usage

<!-- usage -->

```bash
# 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
```

<!-- usagestop -->

# Options

<!-- 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    |

<!-- optionsstop -->

# License

<!-- license -->

[MIT](https://choosealicense.com/licenses/mit/)

<!-- licensestop -->

---
_Source: https://npm.io/package/twcolorgen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
