Skip to content

Commit

Permalink
feat: add fallback font to poppins
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-json committed Aug 22, 2021
1 parent 5041415 commit e2ff706
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 363 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": false,
"license": "MIT",
"dependencies": {
"@fontsource/poppins": "^4.2.2",
"@fontsource/poppins": "^4.5.0",
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^12.1.10",
Expand Down Expand Up @@ -57,9 +57,9 @@
"cz-conventional-changelog": "3.3.0",
"husky": "^6.0.0",
"prettier": "^2.2.1",
"semantic-release": "^17.4.3",
"semantic-release-cli": "^5.4.3",
"ts-jest": "^26.5.5",
"semantic-release": "^17.4.3"
"ts-jest": "^26.5.5"
},
"config": {
"commitizen": {
Expand Down
2 changes: 0 additions & 2 deletions src/screens/Home/sections/MainBanner/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@
}

.wrapper h1 {
font-family: Poppins;
font-weight: 700;
font-size: 60px;
}

.wrapper h2 {
font-family: Poppins;
font-weight: 400;
font-size: 30px;
}
Expand Down
12 changes: 4 additions & 8 deletions src/styles/fonts.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
@use 'src/styles/colors.scss';
@import '@fontsource/poppins/100.css';
@import '@fontsource/poppins/200.css';
@import '@fontsource/poppins/300.css';
@import '@fontsource/poppins/400.css';
@import '@fontsource/poppins/500.css';
@import '@fontsource/poppins/600.css';
@import '@fontsource/poppins/700.css';
@import '@fontsource/poppins/800.css';
@import '@fontsource/poppins/900.css';

h1 {
font-family: Poppins;
font-family: Poppins, Arial;
font-weight: 700;
font-size: 40px;
color: colors.$not-quite-black;
}

h2 {
font-family: Poppins;
font-family: Poppins, Arial;
font-weight: 400;
font-size: 30px;
color: colors.$not-quite-black;
}

h3 {
font-family: Poppins;
font-family: Poppins, Arial;
font-weight: 300;
font-size: 24px;
color: colors.$not-quite-black;
}

p {
font-family: Poppins;
font-family: Poppins, Arial;
font-weight: 300;
font-size: 16px;
color: colors.$not-quite-black;
Expand Down
Loading

0 comments on commit e2ff706

Please sign in to comment.