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] [-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:

$ 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:

$ 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;

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chromator-0.5.8.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.5.8.tar.gz
Algorithm Hash digest
SHA256 406261a3fdaeff701bd9ffc1803650fa1af83bdc66794b5229b0bbe703daa0aa
MD5 9f61bd2c41aef5b0c4d48ab4c4658061
BLAKE2b-256 91b59b29572c1dcc87ff35ee541322b34b7317f285bfb6baa7ef28a812d59263

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chromator-0.5.8-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fdaa4a835d7c21bcd1c11c04f47e7f93b42db28b562aa273f80b7d7352985c9d
MD5 c0b8d3888fcc249ff0eddb525999058e
BLAKE2b-256 3f840a7bcf6c9500e8f8f7abc002f7ad8ac911c89cf4814ea97e3f1c8faa5d0e

See more details on using hashes here.

Provenance

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