Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 30, 2024
2 parents bf5aa08 + cd18a36 commit 8e3dd99
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 63 deletions.
25 changes: 8 additions & 17 deletions apps/showcase/assets/menu/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,22 +510,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",
Expand All @@ -541,9 +527,14 @@
}
]
},
{
"name": "Figma UI Kit",
"icon": "pi pi-pencil",
"to": "/uikit"
},
{
"name": "Templates",
"icon": "pi pi-star",
"icon": "pi pi-heart",
"to": "/templates"
},
{
Expand Down
6 changes: 5 additions & 1 deletion apps/showcase/doc/tailwind/OverviewDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
</p>
<p>
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.
</p>
</DocSectionText>
<div class="doc-notification">
Tailwind CSS and PrimeVue can be used together via two main approaches. Simple approach is using Tailwind CSS <b>around</b> 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 <b>within</b> the component internals to style the entire UI suite in <NuxtLink to="/theming/unstyled" class="doc-link">unstyled mode</NuxtLink>.
</div>
</template>

<script></script>
15 changes: 0 additions & 15 deletions apps/showcase/doc/tailwind/PresetsDoc.vue

This file was deleted.

10 changes: 10 additions & 0 deletions apps/showcase/doc/tailwind/TailwindThemeDoc.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<DocSectionText v-bind="$attrs">
<p>
PrimeTek offers the Tailwind CSS version of the entire PrimeVue UI suite in <NuxtLink to="/theming/unstyled" class="doc-link">unstyled mode</NuxtLink> based on the <i>@apply</i> directive with IntelliSense support. Visit the
<a href="https://tailwind.primevue.org" target="_blank" rel="noopener noreferrer">Tailwind version of PrimeVue</a> for the documentation, demos and additional resources.
</p>
</DocSectionText>
</template>

<script></script>
20 changes: 9 additions & 11 deletions apps/showcase/doc/tailwind/samples/ColorPaletteDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</div>
</div>
</div>
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script>
Expand All @@ -31,18 +32,15 @@ export default {
return {
shades: [0, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950],
colors: ['primary', 'surface'],
code1: {
code: {
basic: `
npm i tailwindcss-primeui
`
},
code2: {
basic: `
// tailwind.config.js
module.exports = {
// ...
plugins: [require('tailwindcss-primeui')]
};
<div class="flex flex-col gap-12">
<div class="flex gap-6 flex-wrap">
<div class="rounded-border p-4 border border-transparent flex items-center justify-center bg-primary hover:bg-primary-emphasis text-primary-contrast font-medium flex-auto transition-colors">primary</div>
<div class="rounded-border p-4 border border-transparent flex items-center justify-center bg-highlight hover:bg-highlight-emphasis font-medium flex-auto transition-colors">highlight</div>
<div class="rounded-border p-4 border border-surface flex items-center justify-center text-muted-color hover:text-color hover:bg-emphasis font-medium flex-auto transition-colors">box</div>
</div>
</div>
`
}
};
Expand Down
3 changes: 1 addition & 2 deletions apps/showcase/doc/theming/unstyled/pure/PureExampleDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export default {
unstyled
pt:root="bg-teal-500 hover:bg-teal-700 active:bg-teal-900 cursor-pointer py-2 px-4 rounded-full border-0 flex gap-2"
pt:label="text-white font-bold text-lg"
pt:icon="
"
pt:icon="text-white text-xl"
/>
`
}
Expand Down
8 changes: 4 additions & 4 deletions apps/showcase/pages/tailwind/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import ExtensionsDoc from '@/doc/tailwind/ExtensionsDoc.vue';
import OverrideDoc from '@/doc/tailwind/OverrideDoc.vue';
import OverviewDoc from '@/doc/tailwind/OverviewDoc.vue';
import PluginDoc from '@/doc/tailwind/PluginDoc.vue';
import PresetsDoc from '@/doc/tailwind/PresetsDoc.vue';
import TailwindThemeDoc from '@/doc/tailwind/TailwindThemeDoc.vue';
import ColorPaletteDoc from '@/doc/tailwind/samples/ColorPaletteDoc.vue';
import FormDoc from '@/doc/tailwind/samples/FormDoc.vue';
import HeadlessDoc from '@/doc/tailwind/samples/HeadlessDoc.vue';
Expand All @@ -36,9 +36,9 @@ export default {
component: OverviewDoc
},
{
id: 'presets',
label: 'Presets',
component: PresetsDoc
id: 'tailwind-theme',
label: 'Tailwind Theme',
component: TailwindThemeDoc
},
{
id: 'plugin',
Expand Down
31 changes: 18 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e3dd99

Please sign in to comment.