Skip to content

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

@tobkle

Description

@tobkle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions