DiscoverThe Loop Tech - VuejsHow to share tailwind configuration between nuxt layers
How to share tailwind configuration between nuxt layers

How to share tailwind configuration between nuxt layers

Update: 2024-06-28
Share

Description

While working in the nuxt-layer-monorepo I encounter an issue with the tailwind styles:



  • UI Layer have a tailwind config file and override the default tailwind CSS configurations

  • Then using the UI Layer in the Content layer


Tailwind configurations got reset to the base for some reason, even that the layers' config should be use


So the solution that I found and is currently working is just to create a new tailwind.config.ts in the Content layer



Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

How to share tailwind configuration between nuxt layers

How to share tailwind configuration between nuxt layers

Leamsigc