Not able to use tailwind in angular library #17652
Unanswered
ashutoshtyagi-xyz
asked this question in
Help
Replies: 1 comment 7 replies
-
For prefix, it is separated by a colon ( |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use tailwind in a angular library, but facing issues.
https://github.com/ashutoshtyagi-xyz/tailwind4-test
the @import 'tailwindcss' in style is working, but any other class that i am trying to use is not getting created.
clone the repo and follow the readme.
The just expand the button component and select Primary.
Then try to check in developer mode all the things that are coming and that are not.
this is the template i am using
only h1 is removed as tailwind presets but the class to increase font, bold and underline are not there.
also the IntelliSense plugin is not working with tailwind 4, as there is no config file now.
I also tried using prefix that is also not working.
TailwindPlay
if you check here, i have given prefix, but not working, if you remove prefix from both html and css, it works.
Beta Was this translation helpful? Give feedback.
All reactions