-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use defineStyleConfig where possible
- Loading branch information
1 parent
9d141bf
commit 3f99cd8
Showing
4 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
const baseStyle = { | ||
maxW: '7xl', | ||
px: { base: '4', md: '8' }, | ||
} | ||
import { defineStyleConfig } from '@chakra-ui/styled-system' | ||
|
||
export default { baseStyle } | ||
export default defineStyleConfig({ | ||
baseStyle: { | ||
maxW: '7xl', | ||
px: { base: '4', md: '8' }, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { defineStyle, defineStyleConfig } from '@chakra-ui/styled-system' | ||
|
||
const baseStyle = defineStyle({ | ||
opacity: 1.0, | ||
}) | ||
import { defineStyleConfig } from '@chakra-ui/styled-system' | ||
|
||
export default defineStyleConfig({ | ||
baseStyle, | ||
baseStyle: { | ||
opacity: 1.0, | ||
}, | ||
}) |
3f99cd8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chakra-ui-pro-theme – ./
chakra-ui-pro-theme-chakra-ui.vercel.app
pro-theme.chakra-ui.com
pro-theme-five.vercel.app
chakra-ui-pro-theme-git-main-chakra-ui.vercel.app