Skip to content

Commit

Permalink
forward 'brand' to theme name
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Nov 18, 2024
1 parent 603c237 commit e44837d
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 e44837d

Please sign in to comment.