Skip to main content

Color shades generator

Project description

Chromator: Color shades generator

Poetry PyPI - Version PyPI - Python Versions

Installation

pip install chromator

Usage

General help

$ chromator -h 
usage: chromator [-h] [-c COLOR1] [-k COLOR2] [-n AMOUNT] [-i] [-d DYNAMIC_RANGE] label

positional arguments:
  label

options:
  -h, --help            show this help message and exit
  -c, --color1 COLOR1
  -k, --color2 COLOR2
  -n, --amount AMOUNT
  -i, --inclusive
  -d, --dynamic-range DYNAMIC_RANGE

Shades as CSS variables, based on one input color:

$ chromator bad-ass -c bada55 -n 9 
/*
Based on:
#bada55 --> HSLuv(hue=100.61°, saturation=82.87%, lightness=82.51%)
*/
--bad-ass-10: #181e06; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=10.00%) */
--bad-ass-20: #2b340e; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=20.00%) */
--bad-ass-30: #3f4c18; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=30.00%) */
--bad-ass-40: #556523; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=40.00%) */
--bad-ass-50: #6b7f2e; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=50.00%) */
--bad-ass-60: #839a3a; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=60.00%) */
--bad-ass-70: #9bb646; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=70.00%) */
--bad-ass-80: #b4d352; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=80.00%) */
--bad-ass-90: #cdf05f; /* --> HSLuv(hue=100.61°, saturation=82.87%, lightness=90.00%) */

Shades as CSS variables, based on two input colors:

$ chromator worse-ass -c bada55 -k b000b5 -n 9 -d 50
/*
Based on:
- Darkest:   #b000b5 --> HSLuv(hue=305.50°, saturation=100.00%, lightness=42.10%)
- Brightest: #bada55 --> HSLuv(hue=100.61°, saturation=82.87%, lightness=82.51%)
*/
--worse-ass-10: #2e004e; /* --> HSLuv(hue=281.09°, saturation=100.00%, lightness=10.00%) */
--worse-ass-20: #5a005f; /* --> HSLuv(hue=303.18°, saturation=100.00%, lightness=20.00%) */
--worse-ass-30: #86066c; /* --> HSLuv(hue=325.27°, saturation=97.82%, lightness=30.00%) */
--worse-ass-40: #b5116b; /* --> HSLuv(hue=347.37°, saturation=95.38%, lightness=40.00%) */
--worse-ass-50: #e91d39; /* --> HSLuv(hue=9.46°, saturation=92.94%, lightness=50.00%) */
--worse-ass-60: #da762a; /* --> HSLuv(hue=31.56°, saturation=90.50%, lightness=60.00%) */
--worse-ass-70: #daa13a; /* --> HSLuv(hue=53.65°, saturation=88.06%, lightness=70.00%) */
--worse-ass-80: #dbc84b; /* --> HSLuv(hue=75.75°, saturation=85.62%, lightness=80.00%) */
--worse-ass-90: #d3ef5e; /* --> HSLuv(hue=97.84°, saturation=83.18%, lightness=90.00%) */

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chromator-0.6.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromator-0.6.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file chromator-0.6.5.tar.gz.

File metadata

  • Download URL: chromator-0.6.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chromator-0.6.5.tar.gz
Algorithm Hash digest
SHA256 21f7b47be42ff9af74bee0463efa33013c71bb20504369a74232ea5a7d885f0c
MD5 540099a51cff8cfad981e0d530c044d5
BLAKE2b-256 9de37b1ab5f458d40762ac3050c1d37db129427517e8bb95e8546842791dc124

See more details on using hashes here.

Provenance

The following attestation bundles were made for chromator-0.6.5.tar.gz:

Publisher: on-release-tag__publish-to-pypi.yml on githuib/chromator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chromator-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: chromator-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chromator-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf0ebef2d0a062f25c7a8048e6c70d7bbec02b440676966a3a64eb07695e13d
MD5 841074a047bdec18e3a9724223aa9b86
BLAKE2b-256 b9b5b8f6840d8094456d7f655099cb3b6c710554b4eda377c97085f410197514

See more details on using hashes here.

Provenance

The following attestation bundles were made for chromator-0.6.5-py3-none-any.whl:

Publisher: on-release-tag__publish-to-pypi.yml on githuib/chromator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page