I am using metronic with angular, but the issue is for other systems as well:
Tailwind classes are not properly generated for any project, but copy/pasted from the pre builded folder: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/angular
This is not optimal and generates several issues:
My solution for now is:
Copy assets folder AND copy source css folder to angular. Then my tailwind.css has this import:
/* Metronic sources */ @import "./css/styles.css";
I dont include the precompiled styles.css anywhere. This almost works. The last issue is, that the source styles.css relies on 3 npm packages (for now):
If I install these 3 packages, I can now compile tailwind properly (wohoo!).
My suggestion:
Dont rely on these 3 packages as node modules for tailwind/css. Put them in assets or at least the files needed for tailwind compilation. I really dont want to manage these packages and their versions. Sooner or later I rely on a wrong version and my page breaks!
Adapt the tutorial how to use it. Either write the new method or give both options.
Best Sam
Hi Sam
Sorry for the delay in response. We really appreciate your feedback. This is very helpful and well-explained. Your suggestion to reduce dependency coupling and improve docs is valid, and we’ll review them internally with the team.
Thanks