我正在尝试创建 1 个可重复使用的间隙变量,我可以在任何有多个按钮的地方使用它。而不是使用gap-3
我只想使用gap-buttons
module.exports = {
theme: {
extend: {
gap: {
buttons: theme(theme.gap.3),
},
},
},
};
我得到的错误是Maximum call stack size exceeded
. 我试过buttons: (theme) => theme(theme.gap.3)
也没有用。还有颜色,它不起作用......
module.exports = {
theme: {
extend: {
colors: {
alert: theme => theme('colors.red')
}
},
},
};