🎨 Cocapn theme engine — brand colors, palette generation, lighthouse gradients
Project description
🎨 Cocapn Colora
Theme engine — brand colors, palette generation, lighthouse gradients
Cocapn's official color system. Brand palettes, lighthouse beacon gradients, fleet agent colors, and deterministic theme generation from any string.
Install
pip install cocapn-colora
Quick Start
Generate a Theme
from cocapn_colora import generate_theme
theme = generate_theme("#0ea5e9", name="lighthouse")
print(theme.primary) # #0ea5e9
print(theme.accent) # complementary color
print(theme.background) # dark variant
Brand Colors
from cocapn_colora import fleet_colors, lighthouse_gradient, COCAPN_PALETTE
for agent, color in fleet_colors().items():
print(f"{agent}: {color}")
gradient = lighthouse_gradient(steps=10)
print(gradient)
Deterministic Palettes
from cocapn_colora.palette import palette_from_string
colors = palette_from_string("my-agent-name")
# {"primary": "#...", "secondary": "#...", ...}
Part of Cocapn · Agent Infrastructure
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
cocapn_colora-0.2.1.tar.gz
(3.1 kB
view details)
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 cocapn_colora-0.2.1.tar.gz.
File metadata
- Download URL: cocapn_colora-0.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87dc2b68ec325d68ea5c734cf59f1c7fa7dd7a0dd3b6311ce1176fb75b073845
|
|
| MD5 |
947864bd0a18fef092ea1182d319ae82
|
|
| BLAKE2b-256 |
92ff688e3e4454524c1e4bce7e6dc7e704fc32408edd284af4db80f15c6f7955
|
File details
Details for the file cocapn_colora-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cocapn_colora-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f5a3a0f18371883215520a3b7fc8189f0deb64dd1bdde638fb7559ce06a5a4
|
|
| MD5 |
f7ad39539e705ad8b144d286e82d63d4
|
|
| BLAKE2b-256 |
e67943c4142c4f7f51fbd90a2236cf407fc068957116d9971293e11cd4f92508
|