Replies: 3 comments 1 reply
-
You can look at using the |
Beta Was this translation helpful? Give feedback.
-
For those of you looking at this later on this is what worked for me. Add this to your settings.json
|
Beta Was this translation helpful? Give feedback.
-
@leon's regex has one problem: Prettier adds a newline between Additionally, Angular also allows to dynamically add a single class with the I updated the regex to support tailwind's autocomplete for both cases: "tailwindCSS.experimental.classRegex": ["class:\\s*'([^']*)", "'\\[class\\.([^\\]\\s']*)"] |
Beta Was this translation helpful? Give feedback.
-
Since we have started using tailwind in Angular I have switched from using a scss file per component, to not having to have a scss file at all.
And by setting
encapsulation: ViewEncapsulation.None
we let tailwind do all the styling work, which has worked great :)The only problem I have is that because the
host: { class: '...' }
is within the@Component
decorator tailwinds auto complete doesn't work.Would it be possible to also be able to get auto completion here?
Beta Was this translation helpful? Give feedback.
All reactions