primevue-mirror/apps/showcase/doc/nuxt/configuration/CSSLayerOrderDoc.vue

40 lines
989 B
Vue
Raw Normal View History

2023-10-25 03:17:40 +00:00
<template>
<DocSectionText v-bind="$attrs">
2024-05-27 09:13:32 +00:00
<p>
When the layer is enabled at the theme configuration, defines the CSS layer order setting for compatibility with libraries like Tailwind and Bootstrap in styled mode. Visit the
<NuxtLink to="/theming/styled/#csslayer">CSS Layer</NuxtLink> guide for detailed information.
</p>
2023-10-25 03:17:40 +00:00
</DocSectionText>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
2023-10-25 03:17:40 +00:00
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
2024-01-30 08:16:35 +00:00
primevue: {
2023-10-25 03:17:40 +00:00
cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities'
}
`
},
code2: {
basic: `
/* tailwind.css */
@layer tailwind-base {
@tailwind base;
}
@layer tailwind-utilities {
@tailwind components;
@tailwind utilities;
}
`
}
};
}
};
</script>