Skip to main content

sondalab-palette

Sondalab terminal palette: semantic color roles with a named-ANSI floor and a truecolor opt-in.

Color is applied to roles, never to decoration — a hue mismatch is never a legibility failure. On any terminal you get the named-ANSI floor (resolves through the user's theme); when COLORTERM=truecolor, roles upgrade to the exact brand hues. NO_COLOR disables color.

from sondalab_palette import paint, supports_truecolor

print(paint("done", "ok"))          # green floor / #62D094 on truecolor
print(paint("careful", "warn"))     # yellow floor / amber on truecolor
print(paint("failed", "err"))       # red floor / soft-red on truecolor

Roles: prompt, ok, warn, err, dim, accent.

Generated from the canonical sondalab.tokens.json — do not hand-edit sondalab_palette/__init__.py.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sondalab_palette-0.1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sondalab_palette-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file sondalab_palette-0.1.0.tar.gz.

File metadata

  • Download URL: sondalab_palette-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for sondalab_palette-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f232abda074f825d0175b18b649743fc53f9344e6c0b5a7691006740b34930bb
MD5 5bfa2acd7c6c9c7ec13423fcdf98fda7
BLAKE2b-256 e89064270e260179adf326c1d0f76376b29a904d00c9ee6c2a71701fe42577fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sondalab_palette-0.1.0.tar.gz:

Publisher: publish-palette.yml on sondalab-ai/sondalab-ui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sondalab_palette-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sondalab_palette-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b1f1e0ec40507acf867276ca58916194faea80d3799160216dd4f6770493b55
MD5 1d37405b6cf9123023c6cebcdb245e3f
BLAKE2b-256 21b1d7ad9c384701d91520127774a5b38443945b65ba6b847ad48c0b243aaf92

See more details on using hashes here.

Provenance

The following attestation bundles were made for sondalab_palette-0.1.0-py3-none-any.whl:

Publisher: publish-palette.yml on sondalab-ai/sondalab-ui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page