# Chromator: Color shades generator
[](https://pypi.org/project/chromator)
[](https://pypi.org/project/chromator/#history)
[](https://pypi.org/project/chromator)
## Installation
```commandline
pip install chromator
```
## Usage
### General help
```commandline
$ chromator -h
usage: chromator [-h] [-c COLOR1] [-k COLOR2] [-s STEP] [-e EXTRAPOLATE] [-i] label
positional arguments:
label
options:
-h, --help show this help message and exit
-c, --color1 COLOR1
-k, --color2 COLOR2
-s, --step STEP
-e, --extrapolate EXTRAPOLATE
-i, --inclusive
```
### Shades as CSS variables, based on one input color:
```commandline
$ chromator bad-ass -c bada55 -s 10
/*
Based on:
#bada55:
- Hue: 100.6°
- Saturation: 82.9%
- Lightness: 82.5%
*/
--bad-ass-10: #181e06;
--bad-ass-20: #2b340e;
--bad-ass-30: #3f4c18;
--bad-ass-40: #556523;
--bad-ass-50: #6b7f2e;
--bad-ass-60: #839a3a;
--bad-ass-70: #9bb646;
--bad-ass-80: #b4d352;
--bad-ass-90: #cdf05f;
```
### Shades as CSS variables, based on two input colors:
```commandline
$ chromator worse-ass -c bada55 -k b000b5 -s 10 -e 50
/*
Based on:
#bada55:
- Hue: 100.6°
- Saturation: 82.9%
- Lightness: 82.5%
#b000b5:
- Hue: 305.5°
- Saturation: 100.0%
- Lightness: 42.1%
*/
--worse-ass-10: #380039;
--worse-ass-20: #5a005d;
--worse-ass-30: #86066c;
--worse-ass-40: #b5116b;
--worse-ass-50: #e91d39;
--worse-ass-60: #da762a;
--worse-ass-70: #daa13a;
--worse-ass-80: #dbc84b;
--worse-ass-90: #d3ef5e;
```
Raw data
{
"_id": null,
"home_page": null,
"name": "chromator",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "color shades generator, cli utility",
"author": "Huib Piguillet",
"author_email": "Huib Piguillet <huib@proton.me>",
"download_url": "https://files.pythonhosted.org/packages/c8/c0/1b55e4ffb1ecdce593154995a87233b042126bad95e8f13fc60e83aafdb6/chromator-0.5.10.tar.gz",
"platform": null,
"description": "# Chromator: Color shades generator\n\n[](https://pypi.org/project/chromator)\n[](https://pypi.org/project/chromator/#history)\n[](https://pypi.org/project/chromator)\n\n## Installation\n\n```commandline\npip install chromator\n```\n\n## Usage\n\n### General help\n\n```commandline\n$ chromator -h \nusage: chromator [-h] [-c COLOR1] [-k COLOR2] [-s STEP] [-e EXTRAPOLATE] [-i] label\n\npositional arguments:\n label\n\noptions:\n -h, --help show this help message and exit\n -c, --color1 COLOR1\n -k, --color2 COLOR2\n -s, --step STEP\n -e, --extrapolate EXTRAPOLATE\n -i, --inclusive\n```\n\n### Shades as CSS variables, based on one input color:\n\n```commandline\n$ chromator bad-ass -c bada55 -s 10 \n/*\nBased on:\n\n#bada55:\n- Hue: 100.6\u00b0\n- Saturation: 82.9%\n- Lightness: 82.5%\n*/\n--bad-ass-10: #181e06;\n--bad-ass-20: #2b340e;\n--bad-ass-30: #3f4c18;\n--bad-ass-40: #556523;\n--bad-ass-50: #6b7f2e;\n--bad-ass-60: #839a3a;\n--bad-ass-70: #9bb646;\n--bad-ass-80: #b4d352;\n--bad-ass-90: #cdf05f;\n```\n\n### Shades as CSS variables, based on two input colors:\n\n```commandline\n$ chromator worse-ass -c bada55 -k b000b5 -s 10 -e 50 \n/*\nBased on:\n\n#bada55:\n- Hue: 100.6\u00b0\n- Saturation: 82.9%\n- Lightness: 82.5%\n\n#b000b5:\n- Hue: 305.5\u00b0\n- Saturation: 100.0%\n- Lightness: 42.1%\n*/\n--worse-ass-10: #380039;\n--worse-ass-20: #5a005d;\n--worse-ass-30: #86066c;\n--worse-ass-40: #b5116b;\n--worse-ass-50: #e91d39;\n--worse-ass-60: #da762a;\n--worse-ass-70: #daa13a;\n--worse-ass-80: #dbc84b;\n--worse-ass-90: #d3ef5e;\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Color shades generator",
"version": "0.5.10",
"project_urls": {
"Github": "https://github.com/githuib/chromator",
"PyPI": "https://pypi.org/project/chromator/"
},
"split_keywords": [
"color shades generator",
" cli utility"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e9520e5445046330f4be0f90b389c92378ef8ba5585fb8913a98112ea92dca8e",
"md5": "83fabe8db845570f4fbd504db49dbcd3",
"sha256": "9e7e1423101c5b90b084810b630304ce1d3efaaaa8a4fd1bfa9c2fd49c1cb016"
},
"downloads": -1,
"filename": "chromator-0.5.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "83fabe8db845570f4fbd504db49dbcd3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 4053,
"upload_time": "2025-11-12T20:37:40",
"upload_time_iso_8601": "2025-11-12T20:37:40.389358Z",
"url": "https://files.pythonhosted.org/packages/e9/52/0e5445046330f4be0f90b389c92378ef8ba5585fb8913a98112ea92dca8e/chromator-0.5.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c8c01b55e4ffb1ecdce593154995a87233b042126bad95e8f13fc60e83aafdb6",
"md5": "49f9f8e48f9f0079cd5dbfb34054c0c3",
"sha256": "8152a4a4708130ddce7eab4a0c49f37868c2c77aa3723c8d7238f7decff2cf66"
},
"downloads": -1,
"filename": "chromator-0.5.10.tar.gz",
"has_sig": false,
"md5_digest": "49f9f8e48f9f0079cd5dbfb34054c0c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 3537,
"upload_time": "2025-11-12T20:37:41",
"upload_time_iso_8601": "2025-11-12T20:37:41.434271Z",
"url": "https://files.pythonhosted.org/packages/c8/c0/1b55e4ffb1ecdce593154995a87233b042126bad95e8f13fc60e83aafdb6/chromator-0.5.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-11-12 20:37:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "githuib",
"github_project": "chromator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "chromator"
}