Skip to content

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Nov 14, 2024

This is the last brand feature we'll get in 1.6: the ability to customize the priority of the _brand.yml information inside Quarto theming.

The usage is hopefully intuitive. Our theme configuration accepts a new special string brand. When present, the string controls the priority of the brand information in the generated theme, following the previous semantics that the array is specified in least-to-most-important order. If unspecified, the behavior is equivalent to brand being the very first entry in the array (that is, the least important one)

---
title: "brand-order"
format:
  html:
    theme: [cosmo, brand, test.scss]
brand:
  color:
    primary: green
    background: white
---

This is a Quarto website.

To learn more about Quarto websites visit <https://quarto.org/docs/websites>.

@cscheid cscheid marked this pull request as draft November 14, 2024 21:31
@cscheid cscheid marked this pull request as ready for review November 14, 2024 21:37
@cscheid cscheid merged commit 73f8183 into main Nov 14, 2024
47 checks passed
@cscheid cscheid deleted the feature/brand-order-priority branch November 14, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant