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

Add Tailwind CSS IntelliSense snippet to readme #2

Open
G3root opened this issue Mar 16, 2022 · 2 comments
Open

Add Tailwind CSS IntelliSense snippet to readme #2

G3root opened this issue Mar 16, 2022 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@G3root
Copy link
Owner

G3root commented Mar 16, 2022

tailwind vscode extension has a experimental support for autocompletion by custom regex,
add a working snippet to README

for reference https://github.com/joe-bell/cva#tailwind-css-intellisense

@G3root G3root added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 16, 2022
@alanonthegit
Copy link

@G3root this would be super useful if possible

@kndwin
Copy link

kndwin commented Mar 22, 2023

Would the below work?

{
  "tailwindCSS.experimental.classRegex": [
    ["styled\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
  ]
}

I took this from stylemapper's docs since I believe the regex is pretty similiar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants