Theme Doc update

pull/5677/head
Mert Sincan 2024-05-01 09:32:55 +01:00
parent b8e0b4b851
commit ba00f3bc7b
5 changed files with 5 additions and 13 deletions

View File

@ -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'

View File

@ -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',

View File

@ -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 {

View File

@ -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',

View File

@ -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
}
});