Skip to content

Commit

Permalink
use variable font (#190)
Browse files Browse the repository at this point in the history
* use variable font

* add changeset

* remove heavy + black and replace bold to 700

* add millik font

* revert rename

* remove fontWeight override

---------

Co-authored-by: Alec Ananian <[email protected]>
  • Loading branch information
jcheese1 and alecananian authored Dec 5, 2024
1 parent 463f114 commit cd2d228
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-oranges-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@treasure-dev/tailwind-config": minor
---

use variable font instead of fixed
35 changes: 13 additions & 22 deletions packages/tailwind-config/fonts.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@font-face {
font-family: "Millik";
font-weight: 700;
font-display: swap;
font-style: normal;
src: url("./fonts/Millik.woff2") format("woff2"),
url("./fonts/Millik.woff") format("woff");
}

@font-face {
font-family: "GroteskSemi";
font-weight: 400;
Expand All @@ -9,7 +18,7 @@

@font-face {
font-family: "GroteskSemi";
font-weight: 500;
font-weight: 600;
font-display: swap;
font-style: normal;
src: url("./fonts/ABCMonumentGroteskSemi-Mono-Medium.woff2") format("woff2"),
Expand All @@ -27,27 +36,9 @@

@font-face {
font-family: "Whyte";
font-weight: 400;
font-display: swap;
font-style: normal;
src: url("./fonts/ABCWhyte-Regular.woff2") format("woff2"),
url("./fonts/ABCWhyte-Regular.woff") format("woff");
}

@font-face {
font-family: "Whyte";
font-weight: 500;
font-display: swap;
font-style: normal;
src: url("./fonts/ABCWhyte-Medium.woff2") format("woff2"),
url("./fonts/ABCWhyte-Medium.woff") format("woff");
}

@font-face {
font-family: "Whyte";
font-weight: 700;
font-weight: 100 900;
font-display: swap;
font-style: normal;
src: url("./fonts/ABCWhyte-Bold.woff2") format("woff2"),
url("./fonts/ABCWhyte-Bold.woff") format("woff");
src: url("./fonts/ABCWhyteVariable.woff2") format("woff2"),
url("./fonts/ABCWhyteVariable.woff") format("woff");
}
Binary file removed packages/tailwind-config/fonts/ABCWhyte-Bold.woff
Binary file not shown.
Binary file removed packages/tailwind-config/fonts/ABCWhyte-Bold.woff2
Binary file not shown.
Binary file removed packages/tailwind-config/fonts/ABCWhyte-Medium.woff
Binary file not shown.
Binary file removed packages/tailwind-config/fonts/ABCWhyte-Medium.woff2
Binary file not shown.
Binary file removed packages/tailwind-config/fonts/ABCWhyte-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added packages/tailwind-config/fonts/Millik.woff
Binary file not shown.
Binary file added packages/tailwind-config/fonts/Millik.woff2
Binary file not shown.

0 comments on commit cd2d228

Please sign in to comment.