Skip to content

Commit

Permalink
Merge pull request #5 from spencer-rafada/spencer/bug-fonts-not-working
Browse files Browse the repository at this point in the history
BUG - Fixed Font Themes
  • Loading branch information
spencer-rafada authored Dec 29, 2023
2 parents 12873db + 5427522 commit f6c87ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fontsource-variable/roboto-slab": "^5.0.18",
"@fontsource/monda": "^5.0.8",
"@fontsource/rambla": "^5.0.8",
"@fontsource/roboto-slab": "^5.0.18",
"framer-motion": "^10.16.16",
"next": "14.0.4",
"react": "^18",
Expand Down
2 changes: 2 additions & 0 deletions src/app/_providers/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { ChakraProvider } from '@chakra-ui/react'
import React from 'react'
import theme from './theme'
import '@fontsource/roboto-slab'
import '@fontsource/monda'

export default function ThemeProvider({
children,
Expand Down
5 changes: 3 additions & 2 deletions src/app/_providers/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable quotes */
import { extendTheme } from '@chakra-ui/react'

const overrides = {
Expand All @@ -16,8 +17,8 @@ const overrides = {
},
},
fonts: {
heading: 'Monda, sans-serif',
body: 'Roboto Slab, serif',
heading: `"Roboto Slab", serif`,
body: `"Monda", sans-serif`,
},
}

Expand Down

0 comments on commit f6c87ad

Please sign in to comment.