mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update $dt doc for new proposed api
This commit is contained in:
parent
be13e705a5
commit
35d0377355
2 changed files with 40 additions and 2 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
`
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue