Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Preload css for Inter font #631

Merged
merged 2 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<link href="https://rsms.me/inter/inter.css" rel="stylesheet" />
<link
rel="preconnect"
href="https://rsms.me/inter/inter.css"
rel="stylesheet"
/>
1 change: 0 additions & 1 deletion src/globalStyles/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url("~reset-css");
@import url("https://rsms.me/inter/inter.css");

@import "./variables";
@import "./utils";
Expand Down
5 changes: 5 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<meta charset="UTF-8" />
<title>Saleor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="preconnect"
href="https://rsms.me/inter/inter.css"
rel="stylesheet"
/>
<script>
if (window.Cypress) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ =
Expand Down