fix: #3627181 Give code, kbd and samp a real monospace stack

$font-family-monospace held the EB Garamond serif stack, so code, kbd and samp rendered in a proportional serif and lost their alignment. There was no real monospace stack anywhere in the theme. The overload was deliberate: Bootstrap ships no $font-family-serif utility, and the Typography story used the resulting .font-monospace class to show the secondary typeface.

$font-family-monospace now carries a real monospace stack. components/base/root/root.scss adds --vb-font-serif and a .font-serif utility carrying $font-family-serif, and the Typography story points at .font-serif. The --vb- prefix follows the theme's stated convention for theme-owned tokens.

Issue: https://www.drupal.org/project/vartheme_bs5_rightup/issues/3627181

Verified: the front-end build is clean, and compiled root.css publishes both --bs-font-monospace (real monospace) and --vb-font-serif (EB Garamond).

API changes: a sub-theme overriding $font-family-monospace, or relying on .font-monospace for the serif face, should move to .font-serif.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading