primevue-mirror/doc/nuxt/StyleDoc.vue

30 lines
1.2 KiB
Vue
Raw Normal View History

2023-10-15 20:57:44 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
2023-10-15 21:00:28 +00:00
Module is used to configure the PrimeVue options, register components, directives and composables. CSS configuration of the styled mode is not included at the moment due to the upcoming enhancements like moving theming to core with CSS
variables. In styled mode, the theme can be defined at Nuxt configuration with the <i>css</i> property. Note that this only applies to styled mode, in unstyled mode a theme file is not required as styling is done externally.
2023-10-15 20:57:44 +00:00
</p>
<DocSectionCode :code="code1" importCode hideToggleCode hideCodeSandbox hideStackBlitz />
<p>
Until the new styled mode implementation is ready, dynamic theming at runtime is currently done by switching theme css files. Visit the <NuxtLink to="/theming/#switchthemes">Switch Themes</NuxtLink>
section at styled mode for an example.
</p>
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
export default defineNuxtConfig({
2023-11-20 08:33:43 +00:00
css: ['primevue/resources/themes/lara-dark-green/theme.css']
2023-10-15 20:57:44 +00:00
})
`
}
};
}
};
</script>