primevue-mirror/doc/installation/StylesDoc.vue

30 lines
1008 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
2023-03-02 12:23:54 +00:00
<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>
2023-03-20 10:14:24 +00:00
<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 />
2023-02-28 08:29:30 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
2023-03-20 10:14:24 +00:00
code1: {
2023-03-02 12:23:54 +00:00
basic: `//theme
2023-02-28 08:29:30 +00:00
import "primevue/resources/themes/lara-light-indigo/theme.css";
//core
2023-04-18 15:05:44 +00:00
import "primevue/resources/primevue.min.css";`
2023-03-20 10:14:24 +00:00
},
code2: {
basic: `body {
2023-04-28 10:12:13 +00:00
font-family: var(--font-family);
2023-03-20 10:14:24 +00:00
} `
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>