mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Update nuxt docs
This commit is contained in:
parent
e25711fb48
commit
bf16dbcf70
5 changed files with 91 additions and 155 deletions
57
doc/nuxt/configuration/ImportThemeDoc.vue
Normal file
57
doc/nuxt/configuration/ImportThemeDoc.vue
Normal file
|
@ -0,0 +1,57 @@
|
|||
<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 />
|
||||
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
|
||||
</DocSectionText>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code1: {
|
||||
basic: `
|
||||
primevue: {
|
||||
importTheme: { from: '@/themes/mytheme.js' },
|
||||
}
|
||||
`
|
||||
},
|
||||
code2: {
|
||||
basic: `
|
||||
import { definePreset } from 'primevue/themes';
|
||||
import PrimeOne from 'primevue/themes/primeone';
|
||||
import Aura from 'primevue/themes/primeone/aura';
|
||||
|
||||
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 {
|
||||
base: PrimeOne,
|
||||
preset: MyPreset,
|
||||
options: {
|
||||
darkModeSelector: '.p-dark'
|
||||
}
|
||||
};
|
||||
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue