2023-10-25 03:17:40 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-01-23 20:21:13 +00:00
|
|
|
<p>Defines the CSS layer order setting for compatibility with libraries like Tailwind and Bootstrap in styled mode. Visit the <NuxtLink to="/csslayer">CSS Layer</NuxtLink> guide for detailed information.</p>
|
2023-10-25 03:17:40 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<DocSectionCode :code="code1" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
|
|
|
<DocSectionCode :code="code2" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
|
|
|
basic: `
|
|
|
|
primevue: {
|
|
|
|
cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities'
|
|
|
|
}
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
|
|
|
basic: `
|
|
|
|
/* tailwind.css */
|
|
|
|
@layer tailwind-base {
|
|
|
|
@tailwind base;
|
|
|
|
}
|
|
|
|
|
|
|
|
@layer tailwind-utilities {
|
|
|
|
@tailwind components;
|
|
|
|
@tailwind utilities;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|