fix(storybook): expose Inter
local fonts to storybook
#12787
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Somehow in a past build (probably during the project migration to NextJS), the
Inter
font lost exposure in Storybook; It is no longer available in the existing configuration to being available to the Chakra theme in the SB environment.And with the Inter font now being served locally via PR #12501, there needed to be different approach to applying it back into the environment
preview-head.html
to redefine the CSS variable--font-inter
to it is available to the Chakra theme in the SB environment_app.tsx
so it is unavailable to the SB environment from that locationglobal.css
to make the inter font faces availableAdditional Information
This PR does not consider the mono font, which is also not exposed to Storybook. Because of the current approach to making the font available for Chakra in NextJS, it makes it difficult to apply in SB. Recommend also adding this font locally.
Related Issue
N/A