primevue-mirror/apps/showcase/doc/configuration/ThemeDoc.vue

36 lines
818 B
Vue
Raw Normal View History

2024-05-27 09:56:08 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Style mode offers theming based on a design token based architecture. See the <NuxtLink to="/theming/styled">styled mode</NuxtLink> documentation for details such as building your own theme.</p>
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import PrimeVue from 'primevue/config';
2024-06-11 12:21:12 +00:00
import Aura from '@primevue/themes/aura';
2024-05-27 09:56:08 +00:00
const app = createApp(App);
app.use(PrimeVue, {
theme: {
preset: Aura,
options: {
prefix: 'p',
darkModeSelector: 'system',
cssLayer: false
}
}
});
`
}
};
}
};
</script>