Update DTDoc.vue
parent
deecce428d
commit
e3046efb9e
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<div class="notification mb-4">This is a proposed api for beta.2, and not yet available in beta.1.</div>
|
|
||||||
<p>The <i>$dt</i> function returns the information about a token like the full path and value. This would be useful if you need to access tokens programmatically.</p>
|
<p>The <i>$dt</i> function returns the information about a token like the full path and value. This would be useful if you need to access tokens programmatically.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||||||
|
@ -16,39 +15,39 @@ import { $dt } from 'primevue/themes';
|
||||||
|
|
||||||
const duration = $dt('transition.duration');
|
const duration = $dt('transition.duration');
|
||||||
/*
|
/*
|
||||||
duration: {
|
duration: {
|
||||||
name: '--transition-duration',
|
name: '--transition-duration',
|
||||||
variable: 'var(--p-transition-duration)',
|
variable: 'var(--p-transition-duration)',
|
||||||
value: '0.2s'
|
value: '0.2s'
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const primaryColor = $dt('primary.color');
|
const primaryColor = $dt('primary.color');
|
||||||
/*
|
/*
|
||||||
primaryColor: {
|
primaryColor: {
|
||||||
name: '--primary-color',
|
name: '--primary-color',
|
||||||
variable: 'var(--p-primary-color)',
|
variable: 'var(--p-primary-color)',
|
||||||
value: {
|
value: {
|
||||||
light: {
|
light: {
|
||||||
value: '#10b981',
|
value: '#10b981',
|
||||||
path: {
|
paths: {
|
||||||
name: 'semantic.primary.color',
|
name: 'semantic.primary.color',
|
||||||
binding: {
|
binding: {
|
||||||
name: 'primitive.emerald.500'
|
name: 'primitive.emerald.500'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dark: {
|
||||||
|
value: '#34d399',
|
||||||
|
paths: {
|
||||||
|
name: 'semantic.primary.color',
|
||||||
|
binding: {
|
||||||
|
name: 'primitive.emerald.400'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
dark: {
|
|
||||||
value: '#34d399',
|
|
||||||
path: {
|
|
||||||
name: 'semantic.primary.color',
|
|
||||||
binding: {
|
|
||||||
name: 'primitive.emerald.400'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue