【发布时间】:2020-11-18 06:54:56
【问题描述】:
我在 Gatbsy 工作,当我尝试使用 gatsby-plugin-chakra-ui 文件夹中的影子 theme.js 文件覆盖核心 Chakra 主题时,它没有任何效果。
请问有什么想法吗?我正在使用
import { extendTheme } from '@chakra-ui/core'
const theme = extendTheme({
components: {
Input: {
variants: {
outline: {
borderColor: 'blue.500',
},
},
},
},
})
编辑:修改主题适用于 Button 组件,但不适用于 Input
【问题讨论】:
标签: gatsby gatsby-plugin chakracore chakra-ui