Skip to content

Commit 8cfa726

Browse files
authored
Merge pull request #169 from corbitsdev/danny/add-storybook-fonts
fix(storybook): add missing fonts
2 parents 6fd1ebb + 2355d4e commit 8cfa726

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.storybook/preview-head.html‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
The brand faces the theme names in --font-sans / --font-mono. The package
3+
ships no font files (a consumer loads them), so the workbench loads them here
4+
or every story falls back to Arial and stops matching the design. Red Hat
5+
Display comes as the variable font so the arbitrary weights some components
6+
use (font-[550], font-[650]) render as written rather than snapping.
7+
-->
8+
<link rel="preconnect" href="https://fonts.googleapis.com" />
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
<link
11+
rel="stylesheet"
12+
href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
13+
/>

0 commit comments

Comments
 (0)