@@ -180,7 +180,10 @@ const brandColorBundle = (
180180 key : string ,
181181 nameMap : Record < string , string > ,
182182) : SassBundleLayers => {
183- const colorVariables : string [ ] = [ "/* color variables from _brand.yml */" ] ;
183+ const colorVariables : string [ ] = [
184+ "/* color variables from _brand.yml */" ,
185+ '// quarto-scss-analysis-annotation { "action": "push", "origin": "_brand.yml color" }' ,
186+ ] ;
184187 for ( const colorKey of Object . keys ( brand . data ?. color ?. palette ?? { } ) ) {
185188 colorVariables . push (
186189 `$${ colorKey } : ${ brand . getColor ( colorKey ) } !default;` ,
@@ -204,6 +207,7 @@ const brandColorBundle = (
204207 }
205208 }
206209 // const colorEntries = Object.keys(brand.color);
210+ colorVariables . push ( '// quarto-scss-analysis-annotation { "action": "pop" }' ) ;
207211 const colorBundle : SassBundleLayers = {
208212 key,
209213 // dependency: "bootstrap",
@@ -224,6 +228,7 @@ const brandTypographyBundle = (
224228) : SassBundleLayers => {
225229 const typographyVariables : string [ ] = [
226230 "/* typography variables from _brand.yml */" ,
231+ '// quarto-scss-analysis-annotation { "action": "push", "origin": "_brand.yml typography" }' ,
227232 ] ;
228233 const typographyImports : string [ ] = [ ] ;
229234 const fonts = brand . data ?. typography ?. fonts ?? [ ] ;
@@ -266,7 +271,7 @@ const brandTypographyBundle = (
266271 `Inconsisent Google font families found: ${ googleFamily } and ${ thisFamily } ` ,
267272 ) ;
268273 }
269- typographyVariables . push ( googleFontImportString ( resolvedFont ) ) ;
274+ typographyImports . push ( googleFontImportString ( resolvedFont ) ) ;
270275 }
271276 if ( googleFamily === "" ) {
272277 return undefined ;
@@ -323,12 +328,14 @@ const brandTypographyBundle = (
323328 [ "family" , "font-family-base" ] ,
324329 [ "size" , "font-size-base" ] ,
325330 [ "line-height" , "line-height-base" ] ,
331+ [ "weight" , "font-weight-base" ] ,
326332
327333 // revealjs
328334 [ "family" , "mainFont" ] ,
329335 [ "size" , "presentation-font-size-root" ] ,
330336 [ "line-height" , "presentation-line-height" ] ,
331337 // TBD?
338+
332339 // ["style", "font-style-base"],
333340 // ["weight", "font-weight-base"],
334341 ] ,
@@ -353,8 +360,16 @@ const brandTypographyBundle = (
353360 [ "family" , "font-family-monospace" ] ,
354361 // bootstrap
355362 [ "size" , "code-font-size" ] ,
363+ // forward explicitly to both `code` and `pre`
364+ // because that interacts less with the default bootstrap styles
365+ [ "color" , "code-color" ] , // this is also revealjs
366+ [ "color" , "pre-color" ] ,
367+
368+ [ "weight" , "font-weight-monospace" ] ,
369+
356370 // revealjs
357371 [ "size" , "code-block-font-size" ] ,
372+ [ "color" , "code-block-color" ] ,
358373 ] ,
359374 "monospace-block" : [
360375 // bootstrap + revealjs
@@ -363,6 +378,8 @@ const brandTypographyBundle = (
363378 [ "line-height" , "pre-line-height" ] ,
364379 [ "color" , "pre-color" ] ,
365380 [ "background-color" , "pre-bg" ] ,
381+ [ "size" , "code-block-font-size" ] ,
382+ [ "weight" , "font-weight-monospace-block" ] ,
366383 // revealjs
367384 [ "line-height" , "code-block-line-height" ] ,
368385 [ "color" , "code-block-color" ] ,
@@ -375,18 +392,20 @@ const brandTypographyBundle = (
375392 [ "background-color" , "code-bg" ] ,
376393 // bootstrap
377394 [ "size" , "code-inline-font-size" ] ,
395+ [ "weight" , "font-weight-monospace-inline" ] ,
378396 // revealjs
379- [ "size" , "code-block-font-size" ] ,
397+ // ["size", "code-block-font-size"],
380398 ] ,
381399 } ;
382400
383401 for (
384402 const kind of [
385- "base" ,
386- "headings" ,
387- "monospace" ,
403+ // more specific entries go first
388404 "monospace-block" ,
389405 "monospace-inline" ,
406+ "monospace" ,
407+ "headings" ,
408+ "base" ,
390409 ]
391410 ) {
392411 const fontInformation = resolveHTMLFontInformation (
@@ -410,6 +429,9 @@ const brandTypographyBundle = (
410429 }
411430 }
412431
432+ typographyVariables . push (
433+ '// quarto-scss-analysis-annotation { "action": "pop" }' ,
434+ ) ;
413435 const typographyBundle : SassBundleLayers = {
414436 key,
415437 // dependency: "bootstrap",
0 commit comments