Add body font doc
parent
4021baf232
commit
c317262830
|
@ -1,15 +1,17 @@
|
|||
<template>
|
||||
<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>
|
||||
<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>
|
||||
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
code1: {
|
||||
basic: `//theme
|
||||
import "primevue/resources/themes/lara-light-indigo/theme.css";
|
||||
|
||||
|
@ -18,6 +20,11 @@ import "primevue/resources/primevue.min.css";
|
|||
|
||||
//icons
|
||||
import "primeicons/primeicons.css";`
|
||||
},
|
||||
code2: {
|
||||
basic: `body {
|
||||
font-family: (--font-family);
|
||||
} `
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue