Skip to main content

A Python library for theming facilities

Project description

Armonia

Read the Docs Python Version License: MIT

Armonia is a Python library for elegant theme management with dynamic computed colors, font definitions, and powerful transformation functions.

Installation

pip install armonia

Or using uv:

uv add armonia

Quick Start

from armonia import Theme
from armonia import colorfunctions as cf
from polychromos.color import HSLColor

# Create a theme
theme = Theme()

# Set base colors
theme.set_color("primary", HSLColor.from_hex("#2563eb"))

# Create computed colors that automatically derive from base colors
theme.set_computed_color("primary_light", cf.lighter("primary", 0.2))

# Get colors - they resolve automatically
print(theme.get_color("primary_light").to_css_hex())  # #6b95f1

Documentation

For full documentation, including advanced usage, color and font functions, and integration examples, visit:

https://armonia.readthedocs.io/

License

MIT License - see LICENSE file for details.

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

armonia-1.3.0.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

armonia-1.3.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file armonia-1.3.0.tar.gz.

File metadata

  • Download URL: armonia-1.3.0.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for armonia-1.3.0.tar.gz
Algorithm Hash digest
SHA256 42974c8980f89b2483ca9989c5bd7a6b131ae7ef76cfdc8611f2632e1786a49a
MD5 e66f591997acda8f3ecfa433612780ea
BLAKE2b-256 322baf723032600247aa50dd97bd9cf82b5f144d1fc0be8e6f0c16fd8e1f1417

See more details on using hashes here.

File details

Details for the file armonia-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: armonia-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for armonia-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c37367ae0feffdaf30d86cea7774d6cdaa9ab04626cb606785cc2c2d7bd033b6
MD5 a6a533d827ec1ba021bf3f8feddb0721
BLAKE2b-256 002a13e7adb52dc045ee0c2cb4020bc3876919b6d6ab2d8bc1232908dc215434

See more details on using hashes here.

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