Skip to content

Commit

Permalink
feat: fix font issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanmohapatra committed Feb 2, 2024
1 parent 221abe3 commit 535f8aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
15 changes: 0 additions & 15 deletions web/fonts.tsx

This file was deleted.

9 changes: 6 additions & 3 deletions web/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
import { AppProps } from 'next/app';
import localFont from 'next/font/local';

import { Fonts } from '../fonts';
const horizon = localFont({
src: '../public/fonts/horizon.otf',
display: 'swap'
});

const config = {
initialColorMode: 'dark',
Expand All @@ -18,7 +22,7 @@ const theme = extendTheme({
}
},
fonts: {
heading: 'Horizon'
heading: horizon.style.fontFamily
},
colors: {
neonGreen: { 500: '#D0FF3C' }
Expand All @@ -28,7 +32,6 @@ const theme = extendTheme({
const App = ({ Component, pageProps }: AppProps) => {
return (
<ChakraProvider theme={theme}>
<Fonts />
<Component {...pageProps} />
</ChakraProvider>
);
Expand Down

0 comments on commit 535f8aa

Please sign in to comment.