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.3.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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chromator-0.6.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ad943dab205de05752f85d398222f3feeb3a54fade0161fe775a477e8419bfcb
MD5 ad38a3f23a0ef2dcdca49c72f37b582e
BLAKE2b-256 f961214ab80eed607e5e105f289478cff3407b5e865a052fdd8bd71763a38da7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chromator-0.6.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: chromator-0.6.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d9bc156ec58343a46b526f7ea697493230445266fa8a031085701a0201894795
MD5 240bec85ecf6864c5a1ccdb45a677387
BLAKE2b-256 080a1fba0781fbcedfdd6f482cfb907c873619226743af41873e76be644c2f07

See more details on using hashes here.

Provenance

The following attestation bundles were made for chromator-0.6.3-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