This expression is not callable. Type 'PluginUtils' has no call signatures.ts (2349) #10970
Answered
by
wongjn
frederikhors
asked this question in
Help
-
|
What version of Tailwind CSS are you using? v3.3.1 with a typescript config file. Describe your issue Why is this error present? The code is: import type { Config } from "tailwindcss";
export default {
content: [],
theme: {
extend: {
borderColor: (theme) => ({
DEFAULT: theme("colors.red.500", "currentColor"),
}),
},
},
plugins: [],
} satisfies Config; |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Apr 8, 2023
Replies: 2 comments 2 replies
-
|
Why a discussion, @adamwathan? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I believe theme: {
extend: {
- borderColor: (theme) => ({
+ borderColor: ({ theme }) => ({
DEFAULT: theme("colors.red.500", "currentColor"),
}),
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
frederikhors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


I believe
themeneeds to be destructured from the argument of the function:theme: { extend: { - borderColor: (theme) => ({ + borderColor: ({ theme }) => ({ DEFAULT: theme("colors.red.500", "currentColor"), }), },