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

Allow autocomplete inside Twig files for Drupal #1118

Open
yannickoo opened this issue Jan 9, 2025 · 0 comments
Open

Allow autocomplete inside Twig files for Drupal #1118

yannickoo opened this issue Jan 9, 2025 · 0 comments

Comments

@yannickoo
Copy link

What version of VS Code are you using?

1.96.2

What version of Tailwind CSS IntelliSense are you using?

0.12.17

What version of Tailwind CSS are you using?

3.0.23

What package manager are you using?

npm

What operating system are you using?

macOS

Describe your issue

When using Twig in Drupal there is a nice way to define attributes, also setting classes – https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates

There are several ways possible:

One class

<div{{ attributes.addClass('another-class') }}>

Multiple classes

Separated by comma

<div{{ attributes.addClass('another-class', 'another-one', 'foo') }}>

Separated by space

<div{{ attributes.addClass('another-class another-one foo') }}>

Now my question is how I could adjust the tailwindCSS.experimental.classRegex setting to have support for autocomplete.

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

1 participant