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 @@
-
-
-
- In unstyled mode of PrimeVue, default styling elements like design tokens and css classes are turned off so that you have full control over the component styling with pass-through properties. This feature is quite useful when you'd like
- to build your own UI library based on a custom design by wrapping PrimeVue components or simply utilitze Tailwind CSS to style the PrimeVue components.
-
-
- The unstyled mode also use the preset concept just like the styled mode to define a theme. In styled mode a preset is a set of design tokens implemented with CSS variables whereas in unstyled mode a preset is a Pass-Through
- configuration object to inject Tailwind CSS classes into components. If you prefer to ignore the default styled mode theming api and use Tailwind CSS to style the PrimeVue UI components instead, learn more at the standalone
- Tailwind CSS Presets project website.
-
-
-
-
-
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 @@
+
+
+
+ PrimeTek offers the Tailwind CSS version of the entire PrimeVue UI suite in unstyled mode based on the @apply directive with IntelliSense support. Visit the
+ Tailwind version of PrimeVue for the documentation, demos and additional resources.
+
+
+
+
+
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 @@
+