Estou com esse codigo e estou tomando essa mensagem na variavel primary
Type '({ opacityValue }: { opacityValue: any; }) => string' is not assignable to type 'string | RecursiveKeyValuePair<string, string>'.ts(2322) tailwind.config.ts(12, 18): Did you mean to call this expression?
Mesmo com o type any, ele ainda continua com a mensagem
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
primary: ({ opacityValue }) => `rgba(var(--primary), ${opacityValue})`,
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
},
plugins: [],
}
export default config