primevue-mirror/doc/installation/StyledModeDoc.vue

30 lines
1.1 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
2023-07-09 21:13:49 +00:00
<p>
2023-07-10 08:47:46 +00:00
Styled mode is based on pre-skinned components with opinionated themes like Material, Bootstrap or PrimeOne themes. Theme is the required css file to be imported, visit the
2023-07-09 21:13:49 +00:00
<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 />
2023-07-09 21:13:49 +00:00
<p>Each PrimeVue theme has its own font family so it is suggested to apply it to your application as well for a unified look.</p>
2023-03-20 10:14:24 +00:00
<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-07-10 08:47:46 +00:00
import "primevue/resources/themes/lara-light-indigo/theme.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>