mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Theming docs progress update
This commit is contained in:
parent
a7c3bf15e3
commit
a9df0acc65
21 changed files with 788 additions and 11 deletions
27
doc/theming/styled/customization/FontDoc.vue
Normal file
27
doc/theming/styled/customization/FontDoc.vue
Normal file
|
@ -0,0 +1,27 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>
|
||||
Presets use the native font stack by default for optimal rendering depending on the platform. If you have installed a specific font stack in your application, use the <i>fontFamily</i> and the optional <i>fontVariationSettings</i> tokens
|
||||
to define your custom font for PrimeVue components. As example, let's configure the popular <i>Inter</i> for PrimeVue.
|
||||
</p>
|
||||
</DocSectionText>
|
||||
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
const MyPreset = definePreset(Aura, {
|
||||
semantic: {
|
||||
fontFamily: 'Inter, sans-serif'
|
||||
}
|
||||
});
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue