Skip to content

Commit 54cdf25

Browse files
Merge pull request chakra-ui#113 from chakra-ui/feat/add-theme-config-css-var-prefix
feat(theme): add cssVarPrefix to config of theme
2 parents 6f990a1 + 7f87ec6 commit 54cdf25

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/forty-bulldogs-know.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@chakra-ui/vue-theme": minor
3+
---
4+
5+
add cssVarPrefix with charka as default to theme config

packages/theme/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export type ColorMode = "light" | "dark"
77
export interface ColorModeOptions {
88
initialColorMode?: ColorMode
99
useSystemColorMode?: boolean
10+
cssVarPrefix?: string
1011
}
1112

1213
/**
@@ -15,6 +16,7 @@ export interface ColorModeOptions {
1516
const config: ColorModeOptions = {
1617
useSystemColorMode: false,
1718
initialColorMode: "light",
19+
cssVarPrefix: "chakra",
1820
}
1921

2022
export const theme = {

0 commit comments

Comments
 (0)