Theme Doc update
parent
b8e0b4b851
commit
ba00f3bc7b
|
@ -20,8 +20,7 @@ primevue: {
|
|||
code2: {
|
||||
basic: `
|
||||
import { definePreset } from 'primevue/themes';
|
||||
import PrimeOne from 'primevue/themes/primeone';
|
||||
import Aura from 'primevue/themes/primeone/aura';
|
||||
import Aura from 'primevue/themes/aura';
|
||||
|
||||
const MyPreset = definePreset(Aura, {
|
||||
semantic: {
|
||||
|
@ -42,7 +41,6 @@ const MyPreset = definePreset(Aura, {
|
|||
});
|
||||
|
||||
export default {
|
||||
base: PrimeOne,
|
||||
preset: MyPreset,
|
||||
options: {
|
||||
darkModeSelector: '.p-dark'
|
||||
|
|
|
@ -21,15 +21,13 @@ export default {
|
|||
code1: {
|
||||
basic: `
|
||||
import PrimeVue from 'primevue/config';
|
||||
import PrimeOne from 'primevue/themes/primeone';
|
||||
import Aura from 'primevue/themes/primeone/aura';
|
||||
import Aura from 'primevue/themes/aura';
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(PrimeVue, {
|
||||
// Default theme configuration
|
||||
theme: {
|
||||
base: PrimeOne,
|
||||
preset: Aura,
|
||||
options: {
|
||||
darkModeSelector: '.my-app-dark',
|
||||
|
|
|
@ -18,7 +18,7 @@ export default {
|
|||
return {
|
||||
code: {
|
||||
basic: `
|
||||
import accordion from 'primevue/themes/primeone/presets/aura/accordion';
|
||||
import accordion from 'primevue/themes/aura/accordion';
|
||||
// ... imports of other component tokens
|
||||
|
||||
export default {
|
||||
|
|
|
@ -12,15 +12,13 @@ export default {
|
|||
code: {
|
||||
basic: `
|
||||
import PrimeVue from 'primevue/config';
|
||||
import PrimeOne from 'primevue/themes/primeone';
|
||||
import Aura from 'primevue/themes/primeone/aura';
|
||||
import Aura from 'primevue/themes/aura';
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(PrimeVue, {
|
||||
// Default theme configuration
|
||||
theme: {
|
||||
base: PrimeOne,
|
||||
preset: Aura,
|
||||
options: {
|
||||
prefix: 'p',
|
||||
|
|
|
@ -13,8 +13,7 @@ export default {
|
|||
basic: `
|
||||
import PrimeVue from 'primevue/config';
|
||||
import { definePreset } from 'primevue/themes';
|
||||
import PrimeOne from 'primevue/themes/primeone';
|
||||
import Aura from 'primevue/themes/primeone/aura';
|
||||
import Aura from 'primevue/themes/aura';
|
||||
|
||||
const MyPreset = definePreset(Aura, {
|
||||
//Your customizations, see the following sections for examples
|
||||
|
@ -22,7 +21,6 @@ const MyPreset = definePreset(Aura, {
|
|||
|
||||
app.use(PrimeVue, {
|
||||
theme: {
|
||||
base: PrimeOne,
|
||||
preset: MyPreset
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue