Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 2230ae3

Browse files
Merge pull request #245 from chakra-ui/fix/extendTheme
fix(theme): fix extendChakra theme
2 parents a27eae3 + 3acce7c commit 2230ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const ChakraUIVuePlugin: Plugin = {
4545
// 2. Parse theme tokens to CSS variables
4646
// 3. Inject all CSS variables as theme object
4747
const theme: Theme | (Omit<Theme, "components"> & { components: Dict }) =
48-
options.extendTheme || options.isBaseTheme ? baseTheme : defaultTheme
48+
options.extendTheme ?? (options.isBaseTheme ? baseTheme : defaultTheme)
4949
const computedTheme = computed<WithCSSVar<ThemeOverride>>(() =>
5050
toCSSVar(theme)
5151
)

0 commit comments

Comments
 (0)