Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b51f812

Browse files
committedMar 29, 2023
tried to import font face globally
1 parent 01f3b1a commit b51f812

File tree

6 files changed

+26
-0
lines changed

6 files changed

+26
-0
lines changed
 

‎src/fonts/PPNeueMontreal-Bold.otf

116 KB
Binary file not shown.

‎src/fonts/PPNeueMontreal-Book.otf

113 KB
Binary file not shown.

‎src/fonts/PPNeueMontreal-Medium.otf

118 KB
Binary file not shown.

‎src/fonts/PPNeueMontreal-Thin.otf

107 KB
Binary file not shown.

‎src/index.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
@font-face {
2+
font-family: "PP Neue Montreal";
3+
src: local("PP Neue Montreal"),
4+
url("./fonts/PPNeueMontreal-Medium.otf") format("otf");
5+
font-style: normal;
6+
font-weight: 500;
7+
}
8+
@font-face {
9+
font-family: "PP Neue Montreal";
10+
src: local("PP Neue Montreal"),
11+
url("./fonts/PPNeueMontreal-Bold.otf") format("otf");
12+
font-style: normal;
13+
font-weight: 700;
14+
}
15+
@font-face {
16+
font-family: "PP Neue Montreal";
17+
src: local("PP Neue Montreal"),
18+
url("./fonts/PPNeueMontreal-Book.otf") format("otf");
19+
font-style: normal;
20+
font-weight: 400;
21+
}
22+
123
*,
224
html {
325
margin: 0;

‎src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import React from 'react'
22
import ReactDOM from 'react-dom'
33
import App from './App'
44
import './index.css'
5+
import './fonts/PPNeueMontreal-Medium.otf'
6+
import './fonts/PPNeueMontreal-Bold.otf'
7+
import './fonts/PPNeueMontreal-Book.otf'
8+
import './fonts/PPNeueMontreal-Thin.otf'
59

610

711
const root = ReactDOM.createRoot(document.getElementById('root'))

0 commit comments

Comments
 (0)
Please sign in to comment.