36 lines
723 B
Vue
36 lines
723 B
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>The <i>theme</i> property is used to customize the initial theme.</p>
|
|
</DocSectionText>
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
import PrimeVue from 'primevue/config';
|
|
import Aura from '@primevue/themes/aura';
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(PrimeVue, {
|
|
// Default theme configuration
|
|
theme: {
|
|
preset: Aura,
|
|
options: {
|
|
prefix: 'p',
|
|
darkModeSelector: 'system',
|
|
cssLayer: false
|
|
}
|
|
}
|
|
});
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|