-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add optimized fonts - react initially
- Loading branch information
Showing
7 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
{{cookiecutter.project_slug}}/clients/web/react/src/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
@font-face { | ||
font-family: 'Montserrat'; | ||
font-display: swap; | ||
font-style: italic; | ||
src: | ||
url('assets/fonts/montserrat-italic-variable.woff2') format('woff2'), | ||
url('assets/fonts/montserrat-italic-variable.woff') format('woff'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Montserrat'; | ||
font-display: swap; | ||
font-style: normal; | ||
src: | ||
url('assets/fonts/montserrat-variable.woff2') format('woff2'), | ||
url('assets/fonts/montserrat-variable.woff') format('woff'); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
{{cookiecutter.project_slug}}/clients/web/react/tailwind.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+170 KB
{{cookiecutter.project_slug}}/resources/web/fonts/montserrat-italic-variable.woff
Binary file not shown.
Binary file added
BIN
+130 KB
{{cookiecutter.project_slug}}/resources/web/fonts/montserrat-italic-variable.woff2
Binary file not shown.
Binary file added
BIN
+162 KB
{{cookiecutter.project_slug}}/resources/web/fonts/montserrat-variable.woff
Binary file not shown.
Binary file added
BIN
+124 KB
{{cookiecutter.project_slug}}/resources/web/fonts/montserrat-variable.woff2
Binary file not shown.