Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

[W-] Update font-family to use Lume font stack #615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mulesoft-es-automation
Copy link

Lume Font Migration

ToDo:

  • Review code changes and make sure it's building/running
  • Create new work from the GUS ticket template
  • Review and merge by 248 LPFF (10/28/2023)

Background

As we continue our mission to evolve our visual language and drive consistency across our platform UX, one of the guiding principles of the changes we’re rolling out is that we do it with minimal disruption to product teams. To that end, the UX Engineering team created this automated PR to facilitate the next phase of our effort to migrate the Anypoint Platform away from custom fonts in favor of system fonts, and to use the new font stacks defined by the Lume UXD team. Specifically, the changes in this PR replace out of compliance hard-coded font-family CSS code with styling hooks (aka, CSS custom properties) corresponding to --lume-g-font-family-code for codeblocks or --lume-g-font-family for everything else.

As this is an automated PR and we can't account for every edge case. Please completely review the PR before merging it.
There could be instances where the PR is replacing test files or other non relevant files, in which case your team would have to make sure the replace should remain or not.

Finally, make sure you're bundling the Lume styling hooks with your application so that the above styling hooks can get their values assigned at runtime.

If this application is not yet using the Lume styling hooks, you can do that in two different ways:

  1. If this application is using anypoint-styles make sure to upgrade it to the latest version v5.x.x (v5.0.1 as of the time of this PR) and that will include all the necessary styling hooks.
  2. If this application is not using anypoint-styles or cannot upgrade to the required version, install the latest version of the package @mulesoft/lume-styling-hooks (v0.1.47 as of the time of this PR) and include the CSS @mulesoft/lume-styling-hooks/dist/index.css in this application bundle.

As always, don't hesitate to contact our team at #ms-ux-engineering-trust for guidance or to ask questions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants