From de31066532c12a942b727226b5367c63be42f11e Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 29 Oct 2024 13:42:31 +0300 Subject: [PATCH] Update docs --- apps/showcase/assets/menu/menu.json | 25 ++++++------------- apps/showcase/doc/tailwind/OverviewDoc.vue | 6 ++++- apps/showcase/doc/tailwind/PresetsDoc.vue | 15 ----------- .../doc/tailwind/TailwindThemeDoc.vue | 10 ++++++++ .../doc/tailwind/samples/ColorPaletteDoc.vue | 20 +++++++-------- .../theming/unstyled/pure/PureExampleDoc.vue | 3 +-- apps/showcase/pages/tailwind/index.vue | 8 +++--- 7 files changed, 37 insertions(+), 50 deletions(-) delete mode 100644 apps/showcase/doc/tailwind/PresetsDoc.vue create mode 100644 apps/showcase/doc/tailwind/TailwindThemeDoc.vue diff --git a/apps/showcase/assets/menu/menu.json b/apps/showcase/assets/menu/menu.json index 1b532f34d..ffc9acd21 100644 --- a/apps/showcase/assets/menu/menu.json +++ b/apps/showcase/assets/menu/menu.json @@ -504,22 +504,8 @@ }, { "name": "Tailwind CSS", - "icon": "pi pi-heart", - "children": [ - { - "name": "Integration", - "to": "/tailwind" - }, - { - "name": "Presets", - "href": "https://tailwind.primevue.org" - } - ] - }, - { - "name": "Figma UI Kit", - "icon": "pi pi-pencil", - "to": "/uikit" + "icon": "pi pi-star", + "to": "/tailwind" }, { "name": "Icons", @@ -535,9 +521,14 @@ } ] }, + { + "name": "Figma UI Kit", + "icon": "pi pi-pencil", + "to": "/uikit" + }, { "name": "Templates", - "icon": "pi pi-star", + "icon": "pi pi-heart", "to": "/templates" }, { diff --git a/apps/showcase/doc/tailwind/OverviewDoc.vue b/apps/showcase/doc/tailwind/OverviewDoc.vue index c5d8c4319..e044867d3 100644 --- a/apps/showcase/doc/tailwind/OverviewDoc.vue +++ b/apps/showcase/doc/tailwind/OverviewDoc.vue @@ -7,9 +7,13 @@

Tailwind is an outstanding CSS library, however it lacks a true comprehensive UI suite when combined with Vue.js, this is where PrimeVue comes in by providing a wide range of highly accessible and feature rich UI component library. The - core of PrimeVue does not depend on Tailwind CSS, instead we provide the necessary integration points such as the primeui tailwind plugin and the presets for the unstyled mode. + core of PrimeVue does not depend on Tailwind CSS, instead we provide the necessary integration points such as the primeui tailwind plugin and the Tailwind version for the unstyled mode.

+
+ Tailwind CSS and PrimeVue can be used together via two main approaches. Simple approach is using Tailwind CSS around PrimeVue components for layout purposes as demonstrated in the samples section below, the advanced approach takes the + integration a step further by allowing Tailwind CSS within the component internals to style the entire UI suite in unstyled mode. +
diff --git a/apps/showcase/doc/tailwind/PresetsDoc.vue b/apps/showcase/doc/tailwind/PresetsDoc.vue deleted file mode 100644 index 6e30fa344..000000000 --- a/apps/showcase/doc/tailwind/PresetsDoc.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - diff --git a/apps/showcase/doc/tailwind/TailwindThemeDoc.vue b/apps/showcase/doc/tailwind/TailwindThemeDoc.vue new file mode 100644 index 000000000..49868d3af --- /dev/null +++ b/apps/showcase/doc/tailwind/TailwindThemeDoc.vue @@ -0,0 +1,10 @@ + + + diff --git a/apps/showcase/doc/tailwind/samples/ColorPaletteDoc.vue b/apps/showcase/doc/tailwind/samples/ColorPaletteDoc.vue index 5f7c8e8e4..ff07bf6fb 100644 --- a/apps/showcase/doc/tailwind/samples/ColorPaletteDoc.vue +++ b/apps/showcase/doc/tailwind/samples/ColorPaletteDoc.vue @@ -23,6 +23,7 @@ +