primevue-mirror/doc/installation/StylesDoc.vue

30 lines
1005 B
Vue

<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>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `//theme
import "primevue/resources/themes/lara-light-indigo/theme.css";
//core
import "primevue/resources/primevue.min.css";`
},
code2: {
basic: `body {
font-family: (--font-family);
} `
}
};
}
};
</script>