tailwindcss-classnames icon indicating copy to clipboard operation
tailwindcss-classnames copied to clipboard

Support variant as functions

Open AdrienLemaire opened this issue 3 years ago • 0 comments

The issue https://github.com/tailwindlabs/tailwindcss/pull/2309 has been released in v1.8, and I'm getting this error:

> tailwindcss-classnames --config src/utilities/tailwind.js -o src/utilities/tailwind.ts

(node:755354) UnhandledPromiseRejectionWarning: TypeError: variantsForKey.map is not a function

Code changed:

  variants: {
-    fontSize: ["responsive", "hover", "focus"],
+    fontSize: ({ after }) => after(["hover", "focus"]),
  }

AdrienLemaire avatar Sep 07 '20 07:09 AdrienLemaire