Skip to content

Commit 78f29a2

Browse files
committed
fix(brand): Set $theme: "brand" when brand is included
1 parent 603c237 commit 78f29a2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/core/sass/brand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,16 @@ export async function brandSassLayers(
567567
const brand = await project.resolveBrand(fileName);
568568
const sassLayers: SassLayer[] = [];
569569

570+
sassLayers.push(
571+
{
572+
defaults: '$theme: "brand" !default;',
573+
uses: "",
574+
functions: "",
575+
mixins: "",
576+
rules: "",
577+
}
578+
)
579+
570580
if (brand?.data.color) {
571581
sassLayers.push(brandColorLayer(brand, nameMap));
572582
}

0 commit comments

Comments
 (0)