Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createBreakpoints deprecated #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions styles/theme.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import { theme as chakraTheme } from '@chakra-ui/react'
import { extendTheme } from "@chakra-ui/react"
import { createBreakpoints } from "@chakra-ui/theme-tools"

const fonts = {
...chakraTheme.fonts,
body: `Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`,
heading: `Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`
}

const breakpoints = createBreakpoints({
sm: "40em",
md: "52em",
lg: "64em",
lg: "62em",
})

const overrides = {
...chakraTheme,
fonts,
breakpoints,
breakpoints: {
sm: "40em",
md: "52em",
lg: "64em",
lg: "62em",
},
fontWeights: {
normal: 300,
medium: 600,
Expand All @@ -40,4 +37,4 @@ const overrides = {

const customTheme = extendTheme(overrides)

export default customTheme
export default customTheme