CSS Library: Fix font faces being loaded from uswds #3631
Labels
DST-engineering
Issues that require work from Design System Team engineers
platform-design-system-team
Description
On December 5th the design system team merged in a pull request to swap the import path of core stylesheets in vets-website from Formation to css-library. This change removed a reference to fonts managed in Formation, where USWDS v1 font-faces were imported directly into Formation's core.scss file. Without the presence of this Formation stylesheet, source sans pro fonts were no longer being picked up and included in vets-website's webpack build, which outputs assets to a folder named
/generated
.Temporarily, a fonts.scss has been added to vets-website which patches necessary fonts and re-adds them to the
/generated
folder in a build that gets published from vets-website to S3.Additionally, css-library makes use of this stylesheet which declares some font-faces and imports others from
uswds-fonts
. We need to verify how we're using this, as it seems like the imported uswds font-faces aren't actually being used.Considerations
@use
properly. All@use
does is namespace imports, which is distinctly different than what@import
does. In order to use the font faces provided by uswds, we probably need to declare font faces and give them a value of whatever we get from uswds./generated
, and they need to be. Their presence there can be verified by checking the/generated
folder in the build directory of vets-website.Tasks
@use
vets-website/build/localhost/generated
Acceptance Criteria
The text was updated successfully, but these errors were encountered: