Color shades generator
Project description
Kleur: HSLuv based color utils & theme generators
Installation
pip install kleur
Usage
Generate shades based one 1 or 2 colors (as CSS variables)
General help
usage: kleur css [-h] [-l LABEL] -c COLOR1 [-k COLOR2] [-n AMOUNT] [-b] [-i] [-d DYNAMIC_RANGE]
options:
-h, --help show this help message and exit
-l, --label LABEL
-c, --color1 COLOR1
-k, --color2 COLOR2
-n, --amount AMOUNT
-b, --include-black-and-white
-i, --include-input-shades
-d, --dynamic-range DYNAMIC_RANGE
Shades as CSS variables, based on one input color
$ kleur css doodle -c d00d1e -n 9
Shades as CSS variables, based on one input color (with input markers)
$ kleur css doodle -c d00d1e -n 9 -i
Shades as CSS variables, based on two input colors
$ kleur css -l beatle-salads -c bea71e -k 5a1ad5 -n 9 -d 66
Shades as CSS variables, based on two input colors (with input markers)
$ kleur css -l beatle-salads -c bea71e -k 5a1ad5 -n 9 -d 0 -i
$ kleur css -l beatle-salads -c bea71e -k 5a1ad5 -n 9 -d 50 -i
$ kleur css -l beatle-salads -c bea71e -k 5a1ad5 -n 9 -d 100 -i
Preview a color theme
General help
$ kleur colors -h
usage: kleur colors [-h] [-c NAME=HUE (1-360) [NAME=HUE (1-360) ...]] [-m] [-a] [-n NUM_SHADES]
options:
-h, --help show this help message and exit
-c, --color-hues NAME=HUE (1-360) [NAME=HUE (1-360) ...]
-m, --merge-with-default-theme
-a, --alt-default-theme
-n, --num-shades NUM_SHADES
Preview default theme
$ uv run kleur colors -n 7
Preview custom theme
$ kleur colors -n 7 -c green=133 blue=257 tomato=20
Preview custom theme merged with default theme
$ kleur colors -n 7 -c green=133 blue=257 tomato=20 -m
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kleur-1.2.4.tar.gz.
File metadata
- Download URL: kleur-1.2.4.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee7999d161fa6069b3e3947e639f8398725f50f98ca6a70427e805ea55c39eb8
|
|
| MD5 |
9bee6b0048a5e99cbddb3a3321a08770
|
|
| BLAKE2b-256 |
d760ce4b682573de01197f5c916a1f604c18f4fee3c729ccff152e5dcf00b08f
|
Provenance
The following attestation bundles were made for kleur-1.2.4.tar.gz:
Publisher:
on-release-tag__publish-to-pypi.yml on githuib/kleur
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kleur-1.2.4.tar.gz -
Subject digest:
ee7999d161fa6069b3e3947e639f8398725f50f98ca6a70427e805ea55c39eb8 - Sigstore transparency entry: 759033498
- Sigstore integration time:
-
Permalink:
githuib/kleur@c9691bc36f05c2b994aacee322a7ba7734ca496f -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/githuib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-tag__publish-to-pypi.yml@c9691bc36f05c2b994aacee322a7ba7734ca496f -
Trigger Event:
push
-
Statement type:
File details
Details for the file kleur-1.2.4-py3-none-any.whl.
File metadata
- Download URL: kleur-1.2.4-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5beebe8c2c21e8d0f064b7e99e1a6bd700ae62162779c0999beb13149551d38d
|
|
| MD5 |
c0530f63462db2c49b3981eb7a87f109
|
|
| BLAKE2b-256 |
9496492b6fa39eec0e1a6f17490642d722ab3e8c1d5ccd6e4da82e3a4a0afa4a
|
Provenance
The following attestation bundles were made for kleur-1.2.4-py3-none-any.whl:
Publisher:
on-release-tag__publish-to-pypi.yml on githuib/kleur
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kleur-1.2.4-py3-none-any.whl -
Subject digest:
5beebe8c2c21e8d0f064b7e99e1a6bd700ae62162779c0999beb13149551d38d - Sigstore transparency entry: 759033544
- Sigstore integration time:
-
Permalink:
githuib/kleur@c9691bc36f05c2b994aacee322a7ba7734ca496f -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/githuib
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-tag__publish-to-pypi.yml@c9691bc36f05c2b994aacee322a7ba7734ca496f -
Trigger Event:
push
-
Statement type: