Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support variant as functions #47

Open
AdrienLemaire opened this issue Sep 7, 2020 · 0 comments
Open

Support variant as functions #47

AdrienLemaire opened this issue Sep 7, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@AdrienLemaire
Copy link

The issue tailwindlabs/tailwindcss#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"]),
  }
@muhammadsammy muhammadsammy added the enhancement New feature or request label Sep 10, 2020
@muhammadsammy muhammadsammy added this to the Backlog milestone Jan 3, 2021
@muhammadsammy muhammadsammy self-assigned this Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants