You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
How can I achieve compiling the following with Postcss? I know to avoid conflict I can use the prefix which I'm currently doing but I also want to wrap the project in the .tailwind class so I won't have conflicts with elements such as H1. I also want to write a custom base that overwrites the previous projects base styles. I managed to do this with gulp but it broke the responsive tags. I would like to not use gulp in the project.
Not being able to use import statements nested in a selector like this is unfortunately a limitation of postcss-import and not really an issue with Tailwind.
If you only want to add the class prefix to Tailwind's classes (and not your own custom classes), you should be able to do this, assuming there are no import statements in the file:
This also assumes you are using postcss-nested or postcss-nesting to handle nesting.
Alternatively you could write your own PostCSS plugin that uses comments as markers or something to work around the postcss-import limitation, so you're CSS might look like this:
How can I achieve compiling the following with Postcss? I know to avoid conflict I can use the prefix which I'm currently doing but I also want to wrap the project in the .tailwind class so I won't have conflicts with elements such as H1. I also want to write a custom base that overwrites the previous projects base styles. I managed to do this with gulp but it broke the responsive tags. I would like to not use gulp in the project.
The text was updated successfully, but these errors were encountered: