2024-03-30 12:19:34 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-07-25 07:21:54 +00:00
|
|
|
<p>The <i>theme</i> property is used to customize the initial theme.</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';
|
2024-06-11 12:21:12 +00:00
|
|
|
import Aura from '@primevue/themes/aura';
|
2024-03-30 12:19:34 +00:00
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(PrimeVue, {
|
|
|
|
// Default theme configuration
|
|
|
|
theme: {
|
|
|
|
preset: Aura,
|
|
|
|
options: {
|
|
|
|
prefix: 'p',
|
|
|
|
darkModeSelector: 'system',
|
|
|
|
cssLayer: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|