2024-03-30 12:19:34 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-04-02 07:34:23 +00:00
|
|
|
<p>The <i>theme</i> property is used to customize the initial theme, prefer the <i>PrimeVue</i> plugin for custom configuration instead of the preconfigured <i>PrimeVueStyled</i>.</p>
|
2024-03-30 12:19:34 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
import PrimeVue from 'primevue/config';
|
|
|
|
import PrimeOne from 'primevue/themes/primeone';
|
|
|
|
import Aura from 'primevue/themes/primeone/aura';
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(PrimeVue, {
|
|
|
|
// Default theme configuration
|
|
|
|
theme: {
|
|
|
|
base: PrimeOne,
|
|
|
|
preset: Aura,
|
|
|
|
options: {
|
|
|
|
prefix: 'p',
|
|
|
|
darkModeSelector: 'system',
|
|
|
|
cssLayer: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|