🎨 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.2.tar.gz
(4.3 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.2.tar.gz.
File metadata
- Download URL: cocapn_colora-0.2.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10688821611a40599f5fcbf3d3c4c4ac247c16874451b48b98ec15ebbb33a6d9
|
|
| MD5 |
d406f98c95097eedf7f02549ff5b7d7f
|
|
| BLAKE2b-256 |
229016afb0177f1aea96a95c1de9ca6f19b601c1341f0be618dafa52e10b3f72
|
File details
Details for the file cocapn_colora-0.2.2-py3-none-any.whl.
File metadata
- Download URL: cocapn_colora-0.2.2-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 |
155c212f7a30faa6786761ee5775225791a2d216601d9f0de7011da3e02d7255
|
|
| MD5 |
e6d56b21dc64609a31b2e7191d27558c
|
|
| BLAKE2b-256 |
f444079405ff6d3f10567508f79e41a54f17ef04f285eda17b5dccc0b7041402
|