Add body font doc
parent
4021baf232
commit
c317262830
|
@ -1,15 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Theme, core and icons are the necessary css files of the components, visit the <NuxtLink to="/theming/#themes">Themes</NuxtLink> section for the complete list of available themes to choose from.</p>
|
<p>Theme, core and icons are the necessary css files of the components, visit the <NuxtLink to="/theming/#themes">Themes</NuxtLink> section for the complete list of available themes to choose from.</p>
|
||||||
|
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
||||||
|
<p>Each PrimeVue theme has its own font family so it is suggested to apply it to your application for a unified look.</p>
|
||||||
|
<DocSectionCode :code="code2" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
code: {
|
code1: {
|
||||||
basic: `//theme
|
basic: `//theme
|
||||||
import "primevue/resources/themes/lara-light-indigo/theme.css";
|
import "primevue/resources/themes/lara-light-indigo/theme.css";
|
||||||
|
|
||||||
|
@ -18,6 +20,11 @@ import "primevue/resources/primevue.min.css";
|
||||||
|
|
||||||
//icons
|
//icons
|
||||||
import "primeicons/primeicons.css";`
|
import "primeicons/primeicons.css";`
|
||||||
|
},
|
||||||
|
code2: {
|
||||||
|
basic: `body {
|
||||||
|
font-family: (--font-family);
|
||||||
|
} `
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue