Skip to content

Commit

Permalink
Update using-fonts.mdx
Browse files Browse the repository at this point in the history
Added import statements for the installed fonts from fontsource for consistency.

The fonts wouldn't work in my project unless I added these import statements, so I thought it might help others who come across a similar situation as mine.
  • Loading branch information
rumanstheddy authored Jan 4, 2024
1 parent 0e41db0 commit 1dfaea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/community/recipes/using-fonts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ theming [here](/docs/styled-system/customize-theme).

```jsx live=false
import { extendTheme } from '@chakra-ui/react'
import '@fontsource-variable/open-sans';
import '@fontsource-variable/raleway';

const theme = extendTheme({
fonts: {
Expand Down

0 comments on commit 1dfaea4

Please sign in to comment.