mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
58
doc/colors/SurfacesDoc.vue
Normal file
58
doc/colors/SurfacesDoc.vue
Normal file
|
@ -0,0 +1,58 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Surface palette is used when designing the layers such as headers, content, footers, overlays and dividers. Surface palette varies between 0 - 900 and named surfaces are also available.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<div class="flex flex-column">
|
||||
<div v-for="shade in shades" :key="shade" class="w-18rem flex align-items-center p-3 font-bold" :style="{ backgroundColor: `var(--surface-${shade})`, color: $appState.darkTheme ? '#fff' : shade > 500 ? '#fff' : '#000' }">
|
||||
surface-{{ shade }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Variable</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>--surface-ground</td>
|
||||
<td>Base ground color.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>--surface-section</td>
|
||||
<td>Background color of a section on a ground surface.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>--surface-card</td>
|
||||
<td>Color of a surface used as a card.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>--surface-overlay</td>
|
||||
<td>Color of overlay surfaces.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>--surface-border</td>
|
||||
<td>Color of a divider.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>--surface-hover</td>
|
||||
<td>Color of an element in hover state.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
shades: [0, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900]
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue