Update $dt doc for new proposed api

This commit is contained in:
Cagatay Civici 2024-04-01 01:21:51 +03:00
parent be13e705a5
commit 35d0377355
2 changed files with 40 additions and 2 deletions

View file

@ -13,7 +13,42 @@ export default {
basic: `
import { $dt } from 'primevue/themes';
const value = $dt('primary.color', 'value');
const duration = $dt('transition.duration');
/*
duration: {
name: '--transition-duration',
variable: 'var(--p-transition-duration)',
value: '0.2s'
}
*/
const primaryColor = $dt('primary.color');
/*
primaryColor: {
name: '--primary-color',
variable: 'var(--p-primary-color)',
value: {
light: {
value: '#10b981',
path: {
name: 'semantic.primary.color',
binding: {
name: 'primitive.emerald.500'
}
}
},
dark: {
value: '#34d399',
path: {
name: 'semantic.primary.color',
binding: {
name: 'primitive.emerald.400'
}
}
}
}
}
*/
`
}
};