Skip to content

Commit

Permalink
Merge pull request #11474 from quarto-dev/bugfix/11471
Browse files Browse the repository at this point in the history
forward 'brand' to theme name
  • Loading branch information
cscheid authored Nov 18, 2024
2 parents 603c237 + e44837d commit bf93178
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/sass/brand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,15 @@ export async function brandSassLayers(
const brand = await project.resolveBrand(fileName);
const sassLayers: SassLayer[] = [];

if (brand) {
sassLayers.push({
defaults: '$theme: "brand" !default;',
uses: "",
functions: "",
mixins: "",
rules: "",
});
}
if (brand?.data.color) {
sassLayers.push(brandColorLayer(brand, nameMap));
}
Expand Down

0 comments on commit bf93178

Please sign in to comment.