iroai
v1.0.0
Published
Generate color shades in CLI
Readme
iroai
Generate color shades in CLI
"iroai" (色合い) means "color shade" in Japanese.
Installation
npm install iroaiUsage
iroai <base-hex-color> [OPTIONS]Or simply run:
iroaito launch interactive mode.
Options
| Option | Description | Values | Default |
| --------------- | -------------------------------------------- | ----------------------------------------------------------- | ---------- |
| -h, --help | Help text | | |
| -v, --version | Version | | |
| -n, --name | Name of the color | | |
| -p, --preset | Color preset to use | ant, bootstrap, chakra, material tailwind | tailwind |
| -m, --mode | Function to apply to the color shades | linear, quad, cubic, quart, quint, sine, expo | linear |
| -e, --ease | Easing function to apply to the color shades | ease-in, ease-out, ease-in-out | ease-in |
| -s, --spread | Spread of the color shades | narrow, normal, wide | normal |
| -f, --format | Output format | plain, css, scss | plain |
Preset
ant: 1-10bootstrap: 100-900chakra: 50-950material: 0-100tailwind: 50-950
Format
--format plain(Default):
#FDDBE2 primary-50
#FCC4CF primary-100
#FAA8B8 primary-200
#F8889E primary-300
#F66683 primary-400
#F44366 primary-500
#C63653 primary-600
#9A2A40 primary-700
#711F2F primary-800
#4D1520 primary-900
#2F0D13 primary-950--format css:
--primary-50: hsl(24, 98%, 37%);
--primary-100: hsl(79, 87%, 46%);
--primary-200: hsl(53, 83%, 29%);
--primary-300: hsl(358, 87%, 25%);
--primary-400: hsl(91, 91%, 34%);
--primary-500: hsl(46, 84%, 15%);
--primary-600: hsl(83, 90%, 37%);
--primary-700: hsl(17, 83%, 32%);
--primary-800: hsl(56, 99%, 38%);
--primary-900: hsl(12, 96%, 48%);
--primary-950: hsl(111, 90%, 37%);--format scss:
$primary-50: hsl(24, 98%, 37%);
$primary-100: hsl(79, 87%, 46%);
$primary-200: hsl(53, 83%, 29%);
$primary-300: hsl(358, 87%, 25%);
$primary-400: hsl(91, 91%, 34%);
$primary-500: hsl(46, 84%, 15%);
$primary-600: hsl(83, 90%, 37%);
$primary-700: hsl(17, 83%, 32%);
$primary-800: hsl(56, 99%, 38%);
$primary-900: hsl(12, 96%, 48%);
$primary-950: hsl(111, 90%, 37%);