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
Hi, I have a couple of couple of projects all sharing some UI elements all using PrimeVue 4 and Tailwind. i've created a custom component library with peerDependencies of PrimeVue and Tailwind to make some resusable components with custom styling I'd like. For example this component:
This component works fine if I have this component in the main project I'm working on, however if I put in my component library, the PrimeVue styles override the Tailwind styles. It seems the CSS layers are being ignored. I'm doing everything correctly in relation to using Tailwind with Primevue with the css file and CssLayer setup for PrimeVue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have a couple of couple of projects all sharing some UI elements all using PrimeVue 4 and Tailwind. i've created a custom component library with peerDependencies of PrimeVue and Tailwind to make some resusable components with custom styling I'd like. For example this component:
This component works fine if I have this component in the main project I'm working on, however if I put in my component library, the PrimeVue styles override the Tailwind styles. It seems the CSS layers are being ignored. I'm doing everything correctly in relation to using Tailwind with Primevue with the css file and CssLayer setup for PrimeVue.
Beta Was this translation helpful? Give feedback.
All reactions