2023-07-09 21:13:49 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
2024-10-29 09:24:51 +00:00
|
|
|
The term <i>unstyled</i> is used to define an alternative styling approach instead of the default theming with design tokens. PrimeVue offers two options for styling the components with your own css; the <i>hybrid</i> mode and the
|
|
|
|
<i>pure</i> mode.
|
2023-07-09 21:13:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2024-10-29 09:24:51 +00:00
|
|
|
In both options, the css variables of the design tokens and the css rule sets that utilize them are not included. The main difference is, the <i>hybrid</i> mode keeps the selectors in the DOM such as <i>p-select</i> whereas the
|
|
|
|
<i>pure</i> mode do not include them. Unstyled components still need to be styled on your end, in the next sections, we'll cover the styling solutions for both modes.
|
2023-07-09 21:13:49 +00:00
|
|
|
</p>
|
|
|
|
</DocSectionText>
|
2024-10-29 09:24:51 +00:00
|
|
|
<table class="doc-table table-fixed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Hybrid</th>
|
|
|
|
<th>Pure</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>p-* selectors in DOM</td>
|
|
|
|
<td><i class="pi pi-check ms-4" /></td>
|
|
|
|
<td><i class="pi pi-times ms-4" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>CSS rule sets</td>
|
|
|
|
<td><i class="pi pi-times ms-4" /></td>
|
|
|
|
<td><i class="pi pi-times ms-4" /></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>CSS variables</td>
|
|
|
|
<td><i class="pi pi-times ms-4" /></td>
|
|
|
|
<td><i class="pi pi-times ms-4" /></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-07-09 21:13:49 +00:00
|
|
|
</template>
|