31 lines
882 B
Vue
31 lines
882 B
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>
|
|
Tailwind CSS can be used with styled or unstyled modes of PrimeVue. In both cases, <a href="https://tailwindcss.com/docs/preflight" target="_blank" rel="noopener noreferrer">preflight</a> mode may break styling of the core functionality
|
|
so <i>@layer</i> configuration in your style file that includes tailwind styles is necessary for compatibility.
|
|
</p>
|
|
</DocSectionText>
|
|
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `@layer tailwind-base, primevue, tailwind-utilities;
|
|
|
|
@layer tailwind-base {
|
|
@tailwind base;
|
|
}
|
|
|
|
@layer tailwind-utilities {
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
}`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|