Skip to content

Support for tailwind.macro in styled/emotion like tw... or tw.div... #123

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

Closed
tobkle opened this issue May 27, 2020 · 2 comments
Closed

Support for tailwind.macro in styled/emotion like tw... or tw.div... #123

tobkle opened this issue May 27, 2020 · 2 comments

Comments

@tobkle
Copy link

tobkle commented May 27, 2020

Tried to adjust the regex in getClassNameAtPosition.ts
in line 15 and 24 with the following pattern ...

(\bclass(Name)?=[`'"][^`'"]+)|(\btw([.a-zA-Z]*)?[`'"][^`'"]+)

...but the search logic is obviously more sophisticated, so that didn't work.
Any suggestions?

@luizzitol
Copy link

I wonder if you have found any solution as I am also interested on using this plugin with twin.macro? It would be very useful to have the auto completion withing styled components or emotion.sh...

@bradlc
Copy link
Contributor

bradlc commented Jun 16, 2020

Hey @tobkle. I have created a new issue (#129) to consolidate similar requests. Please refer to that issue for comments/updates

@bradlc bradlc closed this as completed Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants