Logotype Management
Store and manage logotype URIs in your theme alongside colors and fonts.
Logotypes
Armonia allows you to add logotypes with various URI schemes including https://, http://, file://, data:, ftp://, and others.
Adding Logotypes
# External URIs
theme.set_logotype("company_logo", "https://example.com/logo.svg")
theme.set_logotype("favicon", "https://example.com/favicon.ico")
# File URIs for local assets
theme.set_logotype("local_logo", "file:///path/to/logo.png")
# Data URIs for inline resources
theme.set_logotype("inline_icon", "data:image/svg+xml,<svg>...</svg>")
Retrieving Logotypes
Management
set_logotype(name, uri): Add or update a logotype. Validates the URI format.get_logotype(name): Retrieve a logotype URI by name.remove_logotype(name): Remove a logotype from the theme.
If an invalid URI is provided, InvalidURIError is raised.