Nuxt Layers

I'm so excited for nuxt layers! I think it's a fantastic feature, so thanks to all that have worked on it!

I've just started working with layers and used the starter theme project to setup a layer and added a few modules (tailwind etc) and it all seems to be working nicely. I include the layer into another project and tailwind and my components are all there and seem to work. The only thing that's not working is that any components from the layer that contain tailwind classes remain unstyled in the project the layer is imported to. These are standard tailwind classes that work if I use them elsewhere in the project, but the classes on these imported components do not work. It seems like some sort of scoping issue, but I can't figure it out.

I've looked at https://github.com/Atinux/content-wind-template and content-wind projects to see if I can figure it out and it all JustWorks(™)...

I started with a private npm layer (hosted on github), but I'm now working on a basic, local layer to keep things simple (still experiencing the same).

Has anyone had any experience with layers that might be able to shed some light?
GitHub
Template for Content Wind Nuxt theme. Contribute to Atinux/content-wind-template development by creating an account on GitHub.
Was this page helpful?