2024-03-30 23:15:56 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-09-10 20:58:34 +00:00
|
|
|
<p>Returns shades and tints of a given color from 50 to 950 as an object.</p>
|
2024-03-30 23:15:56 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
2024-06-24 21:02:21 +00:00
|
|
|
import { palette } from '@primevue/themes';
|
2024-03-30 23:15:56 +00:00
|
|
|
|
2024-03-31 22:33:17 +00:00
|
|
|
// custom color
|
|
|
|
const values1 = palette('#10b981');
|
|
|
|
|
|
|
|
// copy an existing token set
|
|
|
|
const primaryColor = palette('{blue}');
|
2024-03-30 23:15:56 +00:00
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|