Skip to content

Commit f3b2f70

Browse files
authored
Merge pull request #11105 from quarto-dev/brand/fix-typography-colors
fix(brand): Resolve colors in typography before sending to Sass vars
2 parents 2bc956a + c1bae43 commit f3b2f70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/sass/brand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,12 @@ const brandTypographyBundle = (
422422
const source = variable[0];
423423
const target = variable[1];
424424
if (fontInformation[source]) {
425+
let value = fontInformation[source];
426+
if (["color", "background-color"].includes(source)) {
427+
value = brand.getColor(value as string);
428+
}
425429
typographyVariables.push(
426-
`$${target}: ${fontInformation[source]} !default;`,
430+
`$${target}: ${value} !default;`,
427431
);
428432
}
429433
}

0 commit comments

Comments
 (0)