From ffc1dc6754d71a4e5f3a10971a382dd20744cbce Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 2 Aug 2023 10:41:24 +0300 Subject: [PATCH] Update doc to add purge --- doc/tailwind/SetupDoc.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/tailwind/SetupDoc.vue b/doc/tailwind/SetupDoc.vue index 90a1659b1..85fdbfe33 100644 --- a/doc/tailwind/SetupDoc.vue +++ b/doc/tailwind/SetupDoc.vue @@ -5,16 +5,21 @@ The built-in default theme is basically a global pass through configuration that needs to be imported from primevue/tailwind path and then defined during setup. Since the theme is exclusive to unstyled mode, the unstyled setting is required in addition.

+ +

+ Tailwind uses PurgeCSS internally to remove unused classes, since PrimeVue components are loaded from node_modules the content property at tailwind.config.js needs to be aware of PrimeVue, otherwise the classes utilized in + the theme will be removed as well. +

+

Voilà 💚, you now have 90+ awesome Vue UI components styled with Tailwind that will work in harmony with the rest of your application.

-