Adhoc - Added index.ts for fonts.ts. Mostly because I like it this way.
This commit is contained in:
1 parent
12c05ce865
commit
e722ac9d7d
3 files changed
+3
-2
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ import Formula1BlackTTF from "./Formula1-Black.ttf";
|
||||
import Formula1WideWoff2 from "./Formula1-Wide.woff2";
|
||||
import Formula1WideTTF from "./Formula1-Wide.ttf";
|
||||
|
||||
export default createGlobalStyle`
|
||||
export const GlobalFonts = createGlobalStyle`
|
||||
@font-face {
|
||||
font-family: "Formula1 Regular";
|
||||
src: url(${Formula1RegularWoff2}) format("woff2"),
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./fonts";
|
||||
+1
-1
@@ -8,7 +8,7 @@ import "./clear.css";
|
||||
import App from "./App";
|
||||
import Broadcast from "./routes/BroadcastRoute";
|
||||
import { GlobalStyle, theme } from "./shared/theme";
|
||||
import GlobalFonts from "./fonts/fonts";
|
||||
import { GlobalFonts } from "./fonts";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in new issue
Block a user