Skip to main content

A markup language and color palette generators targeting the terminal.

Reason this release was yanked:

Hecked the frick up by not renaming imports from `gunmetal` to `slate`

Project description

zenith

zenith

A markup language and color palette generators targeting the terminal.

pip install zenith

rule

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"))

result

rule

Examples

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

sh40_zenith-0.0.1.tar.gz (45.2 kB view hashes)

Uploaded Source

Built Distribution

sh40_zenith-0.0.1-py3-none-any.whl (21.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page