mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: preload inter and ibm mono fonts in storybook (#19455)
This aims to solve font rendering issues in Storybook like the inconsistent snapshot below. **Inconsistent snapshot:** <img width="3022" height="1552" alt="image" src="https://github.com/user-attachments/assets/ad0e1060-89cc-4255-b601-97ed59286080" /> **References:** - https://www.chromatic.com/docs/troubleshooting-snapshots/#why-are-fonts-in-my-graph-component-rendering-inconsistently - https://fontsource.org/docs/getting-started/preload
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<link rel="preload" href="/node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
|
||||
<!-- Web terminal fonts -->
|
||||
<link rel="preload" href="/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
<link rel="preload" href="/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2" as="font" type="font/woff2" crossorigin />
|
||||
Reference in New Issue
Block a user