A markup language and color palette generators targeting the terminal.
Project description
zenith
A markup language and color palette generators targeting the terminal.
pip install sh40-zenith
Purpose
The primary usecase for Zenith is to color and style text in the terminal. We do this through 2 connected systems, our markup language and palette generation.
We use a BBCode inspired markup language, where you define tag groups, and specific styles within each group. Every tag is independent of others, so you can set and unset single styles easily. We also support custom tag aliases, macro functions and more!
Welcome to [bold #4A7A9F]Zenith[/fg]!
Our palette generator applies color theory to generate a nice, aesthetically pleasing and UX-optimized color palette from any primary color. You can optionally get a palette aliased, so you can use shades derived from its colors:
from zenith import Palette, markup
palette = Palette.from_hex("#4A7A9F")
palette.alias()
print(markup(palette.render()))
print(markup("[primary-2]Primary foreground color, darkened twice"))
Examples
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
File details
Details for the file sh40_zenith-0.1.0.tar.gz
.
File metadata
- Download URL: sh40_zenith-0.1.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef00002891eeb8b202eff2090cda0e55c9990b2dfaddb7dd2f29afb9b7f12da |
|
MD5 | 33be8d3172aa1f974bce8fda5799cc01 |
|
BLAKE2b-256 | 43fb5de780ad1c3d178aee79e84331e962d93215580ccdf0148149aad9baf232 |
File details
Details for the file sh40_zenith-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: sh40_zenith-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048b4e0816257938ca0fdaba7cf7047dfe4f3922763b899bd62af165dd3f4a9a |
|
MD5 | d3fda31d5e4555a38139a0cf9ade401c |
|
BLAKE2b-256 | 9c281d521361261ceadc9e9820e6cc7628e713de5352a41e2fea5501aaa78bf8 |