primevue-mirror/doc/theming/styled/utils/PaletteDoc.vue

23 lines
472 B
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>Returns shades and tints of a given color from 50 to 950 as an array.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import { palette } from 'primevue/themes';
const values = palette('#10b981');
`
}
};
}
};
</script>