Closed eboileau closed 10 months ago
Set-up unstyle mode
important: true
):
import Tailwind from 'primevue/passthrough/tailwind';
app.use(PrimeVue, { unstyled: true, pt: Tailwind, ptOptions: { mergeProps: true } });
Next step: shared pass through properties per component type (defined globally) or UsePassThrough.
Theming didn't work exactly as I thought... with UsePassthrough, see also here, adding a component pt
didn't always worked (Tailwind theme was completely overriden).
Adding ptOptions
to app.use(PrimeVue, ...)
seems to resolve the issue, although behavior of merging was already defined in 3rd option of usePassThrough
. Maybe I didn't understand exactly how this works...
But things may change again, see e.g. https://github.com/primefaces/primevue/issues/4707, so we need to be careful when updating PrimeVue.
WIP as new components are added. Closing this issue.
Aims/objectives.
Implement unstyled mode from PrimeVue. Currently, we use
primevue@3.28.0
, but regular updates are available.A clear and concise description of todo items.
I started to test the pass through option on selected components, but we need important: true in the tailwind.config.js file (or do not import theme?).
As soon as this feature is fully available/supported, revisit all UI components, and implement our own styling with Tailwind.