A Python library for theming facilities
Project description
Armonia
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42974c8980f89b2483ca9989c5bd7a6b131ae7ef76cfdc8611f2632e1786a49a
|
|
| MD5 |
e66f591997acda8f3ecfa433612780ea
|
|
| BLAKE2b-256 |
322baf723032600247aa50dd97bd9cf82b5f144d1fc0be8e6f0c16fd8e1f1417
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c37367ae0feffdaf30d86cea7774d6cdaa9ab04626cb606785cc2c2d7bd033b6
|
|
| MD5 |
a6a533d827ec1ba021bf3f8feddb0721
|
|
| BLAKE2b-256 |
002a13e7adb52dc045ee0c2cb4020bc3876919b6d6ab2d8bc1232908dc215434
|