2024-04-01 10:00:02 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Configures the theme configuration path for the customizations of a theme in styled mode.</p>
|
|
|
|
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
|
2024-06-12 21:12:30 +00:00
|
|
|
<p>The <i>mytheme.js</i> file contains the theme configuration.</p>
|
2024-04-01 10:00:02 +00:00
|
|
|
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
|
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
|
|
|
basic: `
|
|
|
|
primevue: {
|
|
|
|
importTheme: { from: '@/themes/mytheme.js' },
|
|
|
|
}
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
|
|
|
basic: `
|
2024-06-11 12:21:12 +00:00
|
|
|
import { definePreset } from '@primevue/themes';
|
|
|
|
import Aura from '@primevue/themes/aura';
|
2024-04-01 10:00:02 +00:00
|
|
|
|
|
|
|
const MyPreset = definePreset(Aura, {
|
|
|
|
semantic: {
|
|
|
|
primary: {
|
|
|
|
50: '{indigo.50}',
|
|
|
|
100: '{indigo.100}',
|
|
|
|
200: '{indigo.200}',
|
|
|
|
300: '{indigo.300}',
|
|
|
|
400: '{indigo.400}',
|
|
|
|
500: '{indigo.500}',
|
|
|
|
600: '{indigo.600}',
|
|
|
|
700: '{indigo.700}',
|
|
|
|
800: '{indigo.800}',
|
|
|
|
900: '{indigo.900}',
|
|
|
|
950: '{indigo.950}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default {
|
|
|
|
preset: MyPreset,
|
|
|
|
options: {
|
|
|
|
darkModeSelector: '.p-dark'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|