Creating and sharing your brand

Creating a _brand.yml file

Creating a _brand.yml file

  • In RStudio, go to File > New File > Text File.
  • In VS Code or Positron, use the Command Palette (Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on Mac) and select New Untitled Text File.

Save the file as _brand.yml.

brand.yml Inspiration

The brand.yml docs site has a great Inspiration page with many references!

Get a little help from a Large Language Model (LLM)

Sharing your brand

Using a shared drive

  • Shared repository (Google Drive, OneDrive, etc.)
  • GitHub repo allows you to share with version control

Creating a Brand Extension

New in Quarto 1.8, you can create a Quarto extension that provides a brand.yml file and assets.

Get started by running the below:

Terminal
$ quarto create extension brand
 ? Extension Name › my-brand


Important

Brand Extensions must be used with a _quarto.yml project.

Contents of a Brand Extension

? Extension Name › my-brand
Creating extension at /{...}/my-brand:
  - Created _quarto.yml
  - Created README.md
  - Created _extensions/my-brand/brand.yml
  - Created _extensions/my-brand/_extension.yml
  - Created .gitignore
  - Created example.qmd
? Open With
 positron
  vscode
  rstudio
  (don't open)

Contents of a Brand Extension

_extensions/my-brand/_extension.yml
title: My-brand
author: Gordon Woodhull
version: 1.0.0
quarto-required: ">=99.9.0"
contributes:
  metadata:
    project:
      brand: brand.yml

Contents of a Brand Extension

_extensions/mybrand/brand.yml
color:
  background:
    light: "#fff"
    dark: "#000"
  foreground:
    light: "#000"
    dark: "#fff"

Sharing the Brand Extension

Publish your Brand Extension to a GitHub repository. Once it’s on GitHub, anyone can add it to their Quarto project.

Run the following command in the Quarto project to use the extension:

Terminal
quarto add <github-organization>/<your-brand-name>

Updating the Brand Extension

If you make changes to your Brand Extension on GitHub, users can update the extension in their projects by running this command:

Terminal
quarto update <github-organization>/<your-brand-name>

Your turn

Create a brand file for your organization using the Brand Extension.

  • Open your Terminal and run: quarto create extension brand
  • Read about how to prompt a large language model (LLM) to create a _brand.yml file: posit-dev.github.io/brand-yml/articles/llm-brand-yml-prompt
  • Customize the default _extensions/mybrand/brand.yml file. Take note of how well the output incorporates your brand and what, if any, elements are missing or need to be adjusted.
    • Preview by running quarto preview example.qmd in the Terminal.

We’d love for you to add your new brand.yml file to the Inspiration page! You can see examples and contribute your own by visiting the following links:

10:00