Skip to content

Commit

Permalink
Update Inter font (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqrrl authored Jan 13, 2025
1 parent 2e42932 commit 951c9da
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/olive-apples-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"swirl-docs": minor
"@getflip/swirl-components": minor
"@getflip/swirl-components-angular": minor
"@getflip/swirl-components-react": minor
---

Update Inter font files, adding a separate italic font
Binary file not shown.
Binary file modified apps/swirl-docs/public/fonts/Inter.var.woff2
Binary file not shown.
11 changes: 10 additions & 1 deletion apps/swirl-docs/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@

@font-face {
font-family: "Inter var experimental";
font-style: normal;
font-weight: 100 900;
font-style: oblique 0deg 10deg;
font-display: swap;
src: url("/fonts/Inter.var.woff2") format("woff2-variations"),
url("/fonts/Inter.var.woff2") format("woff2");
}

@font-face {
font-family: "Inter var experimental";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/Inter-italic.var.woff2") format("woff2-variations"),
url("/fonts/Inter-italic.var.woff2") format("woff2");
}

@layer components {
#__next {
@apply h-full grid;
Expand Down
Binary file not shown.
Binary file modified packages/swirl-components/src/assets/fonts/Inter.var.woff2
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/swirl-components/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@

@font-face {
font-family: "Inter var experimental";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/Inter.var.woff2") format("woff2-variations"),
url("/fonts/Inter.var.woff2") format("woff2");
}

@font-face {
font-family: "Inter var experimental";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/Inter-italic.var.woff2") format("woff2-variations"),
url("/fonts/Inter-italic.var.woff2") format("woff2");
}

:root {
--swirl-accordion-item-toggle-default: var(--s-surface-default);
--swirl-accordion-item-toggle-hovered: var(--s-surface-hovered);
Expand Down

0 comments on commit 951c9da

Please sign in to comment.