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 --> Color(hue=100.61°, saturation=82.87%, lightness=82.51%)
*/
--bad-ass-10: #181e06; /* --> Color(hue=100.61°, saturation=82.87%, lightness=10.00%) */
--bad-ass-20: #2b340e; /* --> Color(hue=100.61°, saturation=82.87%, lightness=20.00%) */
--bad-ass-30: #3f4c18; /* --> Color(hue=100.61°, saturation=82.87%, lightness=30.00%) */
--bad-ass-40: #556523; /* --> Color(hue=100.61°, saturation=82.87%, lightness=40.00%) */
--bad-ass-50: #6b7f2e; /* --> Color(hue=100.61°, saturation=82.87%, lightness=50.00%) */
--bad-ass-60: #839a3a; /* --> Color(hue=100.61°, saturation=82.87%, lightness=60.00%) */
--bad-ass-70: #9bb646; /* --> Color(hue=100.61°, saturation=82.87%, lightness=70.00%) */
--bad-ass-80: #b4d352; /* --> Color(hue=100.61°, saturation=82.87%, lightness=80.00%) */
--bad-ass-90: #cdf05f; /* --> Color(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 --> Color(hue=305.50°, saturation=100.00%, lightness=42.10%)
- Brightest: #bada55 --> Color(hue=100.61°, saturation=82.87%, lightness=82.51%)
*/
--worse-ass-10: #2e004e; /* --> Color(hue=281.09°, saturation=100.00%, lightness=10.00%) */
--worse-ass-20: #5a005f; /* --> Color(hue=303.18°, saturation=100.00%, lightness=20.00%) */
--worse-ass-30: #86066c; /* --> Color(hue=325.27°, saturation=97.82%, lightness=30.00%) */
--worse-ass-40: #b5116b; /* --> Color(hue=347.37°, saturation=95.38%, lightness=40.00%) */
--worse-ass-50: #e91d39; /* --> Color(hue=9.46°, saturation=92.94%, lightness=50.00%) */
--worse-ass-60: #da762a; /* --> Color(hue=31.56°, saturation=90.50%, lightness=60.00%) */
--worse-ass-70: #daa13a; /* --> Color(hue=53.65°, saturation=88.06%, lightness=70.00%) */
--worse-ass-80: #dbc84b; /* --> Color(hue=75.75°, saturation=85.62%, lightness=80.00%) */
--worse-ass-90: #d3ef5e; /* --> Color(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.6.tar.gz (3.8 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.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chromator-0.6.6.tar.gz
  • Upload date:
  • Size: 3.8 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.6.tar.gz
Algorithm Hash digest
SHA256 90d98d9e18df2480dfb066cc945b130371c876e26cdfd6c7c904fdd6aaee780b
MD5 0745011ecb55f80b755b29c211889ff1
BLAKE2b-256 618b2b55c0ca247826fbbd5751b29339cdfcd1be6ac779a27f812acf17566a0a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chromator-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c66bbf427345a0812e35864f49b3373d4f59f07004517a52d712c07924e82c1e
MD5 7dbb83d435236e786464df6c0239032d
BLAKE2b-256 13a5fcbc579e2bea06274d34d11786368555f472f522575f0516cbec022daf3c

See more details on using hashes here.

Provenance

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