tailwindcss
tailwindcss copied to clipboard
Config typing doesn’t support opacity function
What version of Tailwind CSS are you using?
v3.4.4
What build tool (or framework if it abstracts the build tool) are you using?
Next.js
Describe your issue
I’m getting a typescript error Type '({ opacityVariable, opacityValue, }: { opacityVariable?: string; opacityValue?: string; }) => string' is not assignable to type 'string | RecursiveKeyValuePair<string, string>’ when following this example: https://github.com/adamwathan/tailwind-css-variable-text-opacity-demo.
The example works, and I can see it is calling this as a function, but it doesn’t look like the typing supports it in tailwind.config.ts using import type { Config } from ‘tailwindcss’.