Skip to main content

brand.yml Python Package

Create reports, apps, dashboards, plots and more that match your company’s brand guidelines with a single _brand.yml file.

brand.yml is a simple, portable YAML file that codifies your company’s brand guidelines into a format that can be used by Quarto, Python and R tooling to create branded outputs. Our goal is to support unified, branded theming for all of Posit’s open source tools—from web applications to printed reports to dashboards and presentations—with a consistent look and feel.

With a single _brand.yml file you can collect brand logos, colors, fonts and typographic choices, typically found in your company’s brand guidelines. This _brand.yml can be used Quarto and Shiny for Python to instantly basic themes that match the brand guidelines.

Example

from brand_yml import Brand

brand = Brand.from_yaml_str(
    # Typically, this file is stored in `_brand.yml`
    # and read with `Brand.from_yaml()`.
    """
    meta:
      name: Posit Software, PBC
      link: https://posit.co
    color:
      palette:
        pblue: "#447099"
        green: "#72994E"
        teal: "#419599"
        orange: "#EE6331"
        purple: "#9A4665"
        gray: "#707073"
      primary: blue
      secondary: gray
      success: green
      info: teal
      warning: orange
      danger: purple
    typography:
      base:
        family: Open Sans
        weight: 300
    """
)
brand.meta.name
BrandMetaName(full='Posit Software, PBC')
brand.color.primary
'blue'
brand.typography.base.model_dump()
{'family': 'Open Sans', 'weight': 300, 'size': None, 'line_height': None}

Installation

From PyPI

uv pip install brand_yml

From GitHub

uv pip install "git+https://github.com/posit-dev/brand-yml"

Metadata

Release files for brand-yml 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brand-yml 0.2.0
File Size Uploaded
brand_yml-0.2.0.tar.gz 779.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brand-yml 0.2.0
File Interpreter ABI Platform
brand_yml-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / brand_yml-0.2.0.tar.gz

Download URL brand_yml-0.2.0.tar.gz
Size 779.5 kB
Tags Source
SHA-256 checksum
How to use checksums
73489597ff9d3a3259e7992de9ea8a9ea3adc6364c4fd22007fdac94e93d0e77
BLAKE2b-256 checksum
How to use checksums
563a81a02d47092763f68614ad9066d1f47d3b29741684410b843376680edabc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 21, 2026.

Transparency log

Release files / brand_yml-0.2.0-py3-none-any.whl

Download URL brand_yml-0.2.0-py3-none-any.whl
Size 795.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1455fc516ea1f37a9cd2cfb5dda0715ca6b296fb93a0c32bc39fc1ce2e008cd5
BLAKE2b-256 checksum
How to use checksums
d58bbcaf939d8466deaa817992645969ba6623fd677e5775b9519782f7781674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 21, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page